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

Function lib_glsl_textureProjGrad

src/GLSLLibrary.cpp:1069–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067 return Common::create_float4(prog);
1068 }
1069 bv_variable lib_glsl_textureProjGrad(bv_program* prog, u8 count, bv_variable* args)
1070 {
1071 /* TODO */
1072 if (count >= 1) {
1073 float bias = 0.0f;
1074 if (args[0].type == bv_type_object) {
1075 bv_object* sampler = bv_variable_get_object(args[0]);
1076 Common::create_vec(prog, get_texture_type(sampler->type->name), 4);
1077 }
1078 }
1079
1080 return Common::create_float4(prog);
1081 }
1082 bv_variable lib_glsl_textureProjGradOffset(bv_program* prog, u8 count, bv_variable* args)
1083 {
1084 /* 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