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

Function create_float4

src/CommonLibrary.cpp:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 bv_variable create_float4(bv_program* prog, glm::vec4 val)
143 {
144 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "vec4" : "float4"));
145 bv_object* retObj = bv_variable_get_object(ret);
146
147 bv_object_set_property(retObj, "x", bv_variable_create_float(val.x));
148 bv_object_set_property(retObj, "y", bv_variable_create_float(val.y));
149 bv_object_set_property(retObj, "z", bv_variable_create_float(val.z));
150 bv_object_set_property(retObj, "w", bv_variable_create_float(val.w));
151
152 return ret;
153 }
154 bv_variable create_int4(bv_program* prog, glm::ivec4 val)
155 {
156 bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "ivec4" : "int4"));

Callers 15

lib_hlsl_Texture_SampleFunction · 0.85
lib_glsl_noise4Function · 0.85
lib_glsl_unpackUnorm4x8Function · 0.85
lib_glsl_unpackSnorm4x8Function · 0.85
lib_glsl_texelFetchFunction · 0.85
lib_glsl_textureFunction · 0.85
lib_glsl_textureGatherFunction · 0.85
lib_glsl_textureGradFunction · 0.85

Calls 1

isGLSLFunction · 0.85

Tested by

no test coverage detected