9 #ifndef vtkOpenGLShaderDeclaration_h
10 #define vtkOpenGLShaderDeclaration_h
12 #include "vtkRenderingOpenGL2Module.h"
15 VTK_ABI_NAMESPACE_BEGIN
66 , VariableName(varName)
75 case GLSLQualifierType::Uniform:
78 case GLSLQualifierType::In:
81 case GLSLQualifierType::Out:
89 case GLSLPrecisionType::Low:
93 case GLSLPrecisionType::Medium:
97 case GLSLPrecisionType::High:
110 case GLSLDataType::Unsigned:
114 case GLSLDataType::Integer:
118 case GLSLDataType::Float:
127 case GLSLAttributeType::Mat3:
130 case GLSLAttributeType::Mat4:
133 case GLSLAttributeType::SamplerBuffer:
134 os <<
"samplerBuffer";
136 case GLSLAttributeType::SamplerCube:
139 case GLSLAttributeType::Sampler2D:
142 case GLSLAttributeType::Sampler1D:
145 case GLSLAttributeType::Scalar:
148 case GLSLDataType::Unsigned:
152 case GLSLDataType::Integer:
156 case GLSLDataType::Float:
163 case GLSLAttributeType::Vec2:
166 case GLSLAttributeType::Vec3:
169 case GLSLAttributeType::Vec4:
179 VTK_ABI_NAMESPACE_END
180 #endif // vtkOpenGLShaderDeclaration_h
friend std::ostream & operator<<(std::ostream &os, const vtkOpenGLShaderDeclaration &decl)
GLSLAttributeType AttributeType
GLSLQualifierType QualifierType
vtkStringToken VariableName
vtkOpenGLShaderDeclaration(GLSLQualifierType qual, GLSLPrecisionType prec, GLSLDataType dtype, GLSLAttributeType attr, vtkStringToken varName)
GLSLPrecisionType PrecisionType
Represent a string by its integer hash.
const std::string & Data() const
Return the string corresponding to the token.