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

Function create_uint2

src/CommonLibrary.cpp:211–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209 return ret;
210 }
211 bv_variable create_uint2(bv_program* prog, glm::uvec2 val)
212 {
213 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "uvec2" : "uint2"));
214 bv_object* retObj = bv_variable_get_object(ret);
215
216 bv_object_set_property(retObj, "x", bv_variable_create_uint(val.x));
217 bv_object_set_property(retObj, "y", bv_variable_create_uint(val.y));
218
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"));

Callers 2

create_vecFunction · 0.85

Calls 1

isGLSLFunction · 0.85

Tested by

no test coverage detected