vector */
| 561 | |
| 562 | /* vector */ |
| 563 | bv_variable lib_glsl_equal(bv_program* prog, u8 count, bv_variable* args) |
| 564 | { |
| 565 | /* bvecX equal(vecX, vecX) */ |
| 566 | bv_object* x = bv_variable_get_object(args[0]); |
| 567 | bv_object* y = bv_variable_get_object(args[1]); |
| 568 | |
| 569 | u8 vecSize = x->type->props.name_count; |
| 570 | bv_variable ret = Common::create_vec(prog, bv_type_uchar, vecSize); |
| 571 | bv_object* retObj = bv_variable_get_object(ret); |
| 572 | |
| 573 | for (u8 i = 0; i < vecSize; i++) |
| 574 | retObj->prop[i] = bv_variable_create_uchar(bv_variable_op_equal(prog, x->prop[i], y->prop[i])); |
| 575 | |
| 576 | return ret; |
| 577 | } |
| 578 | bv_variable lib_glsl_notEqual(bv_program* prog, u8 count, bv_variable* args) |
| 579 | { |
| 580 | /* bvecX notEqual(vecX, vecX) */ |
nothing calls this directly
no test coverage detected