| 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 */ |
nothing calls this directly
no test coverage detected