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

Function create_bool4

src/CommonLibrary.cpp:178–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 return ret;
177 }
178 bv_variable create_bool4(bv_program* prog, glm::bvec4 val)
179 {
180 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "bvec4" : "bool4"));
181 bv_object* retObj = bv_variable_get_object(ret);
182
183 bv_object_set_property(retObj, "x", bv_variable_create_uchar(val.x));
184 bv_object_set_property(retObj, "y", bv_variable_create_uchar(val.y));
185 bv_object_set_property(retObj, "z", bv_variable_create_uchar(val.z));
186 bv_object_set_property(retObj, "w", bv_variable_create_uchar(val.w));
187
188 return ret;
189 }
190
191 bv_variable create_float2(bv_program* prog, glm::vec2 val)
192 {

Callers 1

create_vecFunction · 0.85

Calls 1

isGLSLFunction · 0.85

Tested by

no test coverage detected