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

Function lib_common_dFdy

src/CommonLibrary.cpp:1302–1314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1300 return bv_variable_create_float(0.0f);
1301 }
1302 bv_variable lib_common_dFdy(bv_program* prog, u8 count, bv_variable* args)
1303 {
1304 /* TODO */
1305 /* dFdy(genType) */
1306 if (count == 1) {
1307 if (args[0].type == bv_type_object) { // dFdy(vec3), ...
1308 bv_object* vec = bv_variable_get_object(args[0]);
1309 return Common::create_vec(prog, bv_type_float, vec->type->props.name_count);
1310 }
1311 else {} // dFdy(scalar)
1312 }
1313 return bv_variable_create_float(0.0f);
1314 }
1315 bv_variable lib_common_dFdxCoarse(bv_program* prog, u8 count, bv_variable* args)
1316 {
1317 /* TODO */

Callers

nothing calls this directly

Calls 1

create_vecFunction · 0.85

Tested by

no test coverage detected