MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / lib_glsl_equal

Function lib_glsl_equal

src/GLSLLibrary.cpp:563–577  ·  view source on GitHub ↗

vector */

Source from the content-addressed store, hash-verified

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) */

Callers

nothing calls this directly

Calls 1

create_vecFunction · 0.85

Tested by

no test coverage detected