MCPcopy Create free account
hub / github.com/Kitware/VTK / IsUniformUsed

Method IsUniformUsed

Rendering/OpenGL2/vtkShaderProgram.cxx:1109–1118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109bool vtkShaderProgram::IsUniformUsed(const char* cname)
1110{
1111 int result = this->FindUniform(cname);
1112
1113 if (result == -1 && !this->Linked)
1114 {
1115 vtkErrorMacro("attempt to find uniform when the shader program is not linked");
1116 }
1117 return (result != -1);
1118}
1119
1120//------------------------------------------------------------------------------
1121bool vtkShaderProgram::IsAttributeUsed(const char* cname)

Calls 1

FindUniformMethod · 0.95

Tested by

no test coverage detected