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

Function lib_glsl_not

src/GLSLLibrary.cpp:655–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

create_vecFunction · 0.85

Tested by

no test coverage detected