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