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

Function create_float2

src/CommonLibrary.cpp:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 }
190
191 bv_variable create_float2(bv_program* prog, glm::vec2 val)
192 {
193 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "vec2" : "float2"));
194 bv_object* retObj = bv_variable_get_object(ret);
195
196 bv_object_set_property(retObj, "x", bv_variable_create_float(val.x));
197 bv_object_set_property(retObj, "y", bv_variable_create_float(val.y));
198
199 return ret;
200 }
201 bv_variable create_int2(bv_program* prog, glm::ivec2 val)
202 {
203 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "ivec2" : "int2"));

Callers 6

lib_glsl_noise2Function · 0.85
lib_glsl_unpackHalf2x16Function · 0.85
lib_glsl_unpackUnorm2x16Function · 0.85
lib_glsl_unpackSnorm2x16Function · 0.85
lib_glsl_textureQueryLodFunction · 0.85
create_vecFunction · 0.85

Calls 1

isGLSLFunction · 0.85

Tested by

no test coverage detected