| 576 | return ret; |
| 577 | } |
| 578 | bv_variable lib_glsl_notEqual(bv_program* prog, u8 count, bv_variable* args) |
| 579 | { |
| 580 | /* bvecX notEqual(vecX, vecX) */ |
| 581 | bv_object* x = bv_variable_get_object(args[0]); |
| 582 | bv_object* y = bv_variable_get_object(args[1]); |
| 583 | |
| 584 | u8 vecSize = x->type->props.name_count; |
| 585 | bv_variable ret = Common::create_vec(prog, bv_type_uchar, vecSize); |
| 586 | bv_object* retObj = bv_variable_get_object(ret); |
| 587 | |
| 588 | for (u8 i = 0; i < vecSize; i++) |
| 589 | retObj->prop[i] = bv_variable_create_uchar(bv_variable_op_not_equal(prog, x->prop[i], y->prop[i])); |
| 590 | |
| 591 | return ret; |
| 592 | } |
| 593 | |
| 594 | /* component comparison */ |
| 595 | bv_variable lib_glsl_greaterThan(bv_program* prog, u8 count, bv_variable* args) |
nothing calls this directly
no test coverage detected