| 1107 | } |
| 1108 | |
| 1109 | bool 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 | //------------------------------------------------------------------------------ |
| 1121 | bool vtkShaderProgram::IsAttributeUsed(const char* cname) |
no test coverage detected