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

Function create_int3

src/CommonLibrary.cpp:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 return ret;
107 }
108 bv_variable create_int3(bv_program* prog, glm::ivec3 val)
109 {
110 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "ivec3" : "int3"));
111 bv_object* retObj = bv_variable_get_object(ret);
112
113 bv_object_set_property(retObj, "x", bv_variable_create_int(val.x));
114 bv_object_set_property(retObj, "y", bv_variable_create_int(val.y));
115 bv_object_set_property(retObj, "z", bv_variable_create_int(val.z));
116
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"));

Callers 2

lib_glsl_textureSizeFunction · 0.85
create_vecFunction · 0.85

Calls 1

isGLSLFunction · 0.85

Tested by

no test coverage detected