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

Function lib_glsl_fwidthFine

src/GLSLLibrary.cpp:226–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 return bv_variable_create_float(0.0f);
225 }
226 bv_variable lib_glsl_fwidthFine(bv_program* prog, u8 count, bv_variable* args)
227 {
228 /* TODO: requires dFdx/yFine */
229 /* fwidthFine(genType) */
230 if (count == 1) {
231 if (args[0].type == bv_type_object) { // fwidthFine(vec3), ...
232 bv_object* vec = bv_variable_get_object(args[0]);
233 return Common::create_vec(prog, bv_type_float, vec->type->props.name_count);
234 }
235 else {} // fwidthFine(scalar)
236 }
237 return bv_variable_create_float(0.0f);
238 }
239 bv_variable lib_glsl_mod(bv_program* prog, u8 count, bv_variable* args)
240 {
241 /* mod(genType, genType), mod(genType, float), also for genDType */

Callers

nothing calls this directly

Calls 1

create_vecFunction · 0.85

Tested by

no test coverage detected