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

Method SetAttributeArray

Rendering/OpenGL2/vtkShaderProgram.cxx:180–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178
179template <class T>
180bool 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
192bool vtkShaderProgram::AttachShader(const vtkShader* shader)
193{

Callers

nothing calls this directly

Calls 3

stringClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected