| 653 | return ret; |
| 654 | } |
| 655 | bv_variable lib_glsl_not(bv_program* prog, u8 count, bv_variable* args) |
| 656 | { |
| 657 | /* bvecX greaterThan(bvecX) */ |
| 658 | bv_object* x = bv_variable_get_object(args[0]); |
| 659 | |
| 660 | u8 vecSize = x->type->props.name_count; |
| 661 | bv_variable ret = Common::create_vec(prog, bv_type_uchar, vecSize); |
| 662 | bv_object* retObj = bv_variable_get_object(ret); |
| 663 | |
| 664 | for (u8 i = 0; i < vecSize; i++) |
| 665 | retObj->prop[i] = bv_variable_create_uchar(!bv_variable_get_uchar(x->prop[i])); |
| 666 | |
| 667 | return ret; |
| 668 | } |
| 669 | |
| 670 | /* texture */ |
| 671 | bv_variable lib_glsl_texelFetch(bv_program* prog, u8 count, bv_variable* args) |
nothing calls this directly
no test coverage detected