MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / setUniform2f

Method setUniform2f

cpp/5_Domain_Specific/smokeParticles/GLSLProgram.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void GLSLProgram::setUniform2f(const char *name, float x, float y)
67{
68 GLint loc = glGetUniformLocation(mProg, name);
69
70 if (loc >= 0) {
71 glUniform2f(loc, x, y);
72 }
73 else {
74#if _DEBUG
75 fprintf(stderr, "Error setting parameter '%s'\n", name);
76#endif
77 }
78}
79
80void GLSLProgram::setUniform3f(const char *name, float x, float y, float z)
81{

Callers 1

blurLightBufferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected