MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / lib_glsl_textureGrad

Function lib_glsl_textureGrad

src/GLSLLibrary.cpp:883–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881 return Common::create_float4(prog);
882 }
883 bv_variable lib_glsl_textureGrad(bv_program* prog, u8 count, bv_variable* args)
884 {
885 /* TODO */
886 if (count >= 1) {
887 float bias = 0.0f;
888 if (args[0].type == bv_type_object) {
889 bv_object* sampler = bv_variable_get_object(args[0]);
890 Common::create_vec(prog, get_texture_type(sampler->type->name), 4);
891 }
892 }
893
894 return Common::create_float4(prog);
895 }
896 bv_variable lib_glsl_textureGradOffset(bv_program* prog, u8 count, bv_variable* args)
897 {
898 /* TODO */

Callers

nothing calls this directly

Calls 3

create_vecFunction · 0.85
get_texture_typeFunction · 0.85
create_float4Function · 0.85

Tested by

no test coverage detected