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

Function create_bool2

src/CommonLibrary.cpp:221–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 return ret;
220 }
221 bv_variable create_bool2(bv_program* prog, glm::bvec2 val)
222 {
223 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "bvec2" : "bool2"));
224 bv_object* retObj = bv_variable_get_object(ret);
225
226 bv_object_set_property(retObj, "x", bv_variable_create_uchar(val.x));
227 bv_object_set_property(retObj, "y", bv_variable_create_uchar(val.y));
228
229 return ret;
230 }
231
232 // TODO: remove all other functions
233 bv_variable create_vec(bv_program* prog, bv_type type, u16 components)

Callers 1

create_vecFunction · 0.85

Calls 1

isGLSLFunction · 0.85

Tested by

no test coverage detected