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

Function create_uint3

src/CommonLibrary.cpp:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 return ret;
118 }
119 bv_variable create_uint3(bv_program* prog, glm::uvec3 val)
120 {
121 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "uvec3" : "uint3"));
122 bv_object* retObj = bv_variable_get_object(ret);
123
124 bv_object_set_property(retObj, "x", bv_variable_create_uint(val.x));
125 bv_object_set_property(retObj, "y", bv_variable_create_uint(val.y));
126 bv_object_set_property(retObj, "z", bv_variable_create_uint(val.z));
127
128 return ret;
129 }
130 bv_variable create_bool3(bv_program* prog, glm::bvec3 val)
131 {
132 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "bvec3" : "bool3"));

Callers 1

create_vecFunction · 0.85

Calls 1

isGLSLFunction · 0.85

Tested by

no test coverage detected