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

Function lib_glsl_notEqual

src/GLSLLibrary.cpp:578–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

create_vecFunction · 0.85

Tested by

no test coverage detected