| 178 | |
| 179 | template <class T> |
| 180 | bool vtkShaderProgram::SetAttributeArray( |
| 181 | const char* name, const T& array, int tupleSize, NormalizeOption normalize) |
| 182 | { |
| 183 | if (array.empty()) |
| 184 | { |
| 185 | this->Error = "Refusing to upload empty array for attribute " + std::string(name) + "."; |
| 186 | return false; |
| 187 | } |
| 188 | int type = vtkTypeTraits<typename T::value_type>::VTKTypeID(); |
| 189 | return this->SetAttributeArrayInternal(name, &array[0], type, tupleSize, normalize); |
| 190 | } |
| 191 | |
| 192 | bool vtkShaderProgram::AttachShader(const vtkShader* shader) |
| 193 | { |
nothing calls this directly
no test coverage detected