9#ifndef vtkOpenGLShaderDeclaration_h
10#define vtkOpenGLShaderDeclaration_h
12#include "vtkRenderingOpenGL2Module.h"
15VTK_ABI_NAMESPACE_BEGIN
66 , VariableName(varName)
72 const std::string space =
" ";
75 case GLSLQualifierType::Uniform:
78 case GLSLQualifierType::In:
81 case GLSLQualifierType::Out:
89 case GLSLPrecisionType::Low:
93 case GLSLPrecisionType::Medium:
97 case GLSLPrecisionType::High:
101 case GLSLPrecisionType::None:
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:
GLSLPrecisionType PrecisionType
vtkOpenGLShaderDeclaration()=default
GLSLQualifierType QualifierType
GLSLAttributeType AttributeType
friend std::ostream & operator<<(std::ostream &os, const vtkOpenGLShaderDeclaration &decl)
vtkStringToken VariableName
vtkOpenGLShaderDeclaration(GLSLQualifierType qual, GLSLPrecisionType prec, GLSLDataType dtype, GLSLAttributeType attr, vtkStringToken varName)
Represent a string by its integer hash.
const std::string & Data() const
Return the string corresponding to the token.