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

Function create_bool3

src/CommonLibrary.cpp:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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"));
133 bv_object* retObj = bv_variable_get_object(ret);
134
135 bv_object_set_property(retObj, "x", bv_variable_create_uchar(val.x));
136 bv_object_set_property(retObj, "y", bv_variable_create_uchar(val.y));
137 bv_object_set_property(retObj, "z", bv_variable_create_uchar(val.z));
138
139 return ret;
140 }
141
142 bv_variable create_float4(bv_program* prog, glm::vec4 val)
143 {

Callers 1

create_vecFunction · 0.85

Calls 1

isGLSLFunction · 0.85

Tested by

no test coverage detected