Home | History | Annotate | Download | only in opengl

Lines Matching defs:ShaderSource

243 struct ShaderSource
248 ShaderSource (void) : shaderType(SHADERTYPE_LAST) {}
249 ShaderSource (glu::ShaderType shaderType_, const std::string& source_) : shaderType(shaderType_), source(source_) { DE_ASSERT(!source_.empty()); }
252 struct VertexSource : public ShaderSource
254 VertexSource (const std::string& source_) : ShaderSource(glu::SHADERTYPE_VERTEX, source_) {}
257 struct FragmentSource : public ShaderSource
259 FragmentSource (const std::string& source_) : ShaderSource(glu::SHADERTYPE_FRAGMENT, source_) {}
262 struct GeometrySource : public ShaderSource
264 GeometrySource (const std::string& source_) : ShaderSource(glu::SHADERTYPE_GEOMETRY, source_) {}
267 struct ComputeSource : public ShaderSource
269 ComputeSource (const std::string& source_) : ShaderSource(glu::SHADERTYPE_COMPUTE, source_) {}
272 struct TessellationControlSource : public ShaderSource
274 TessellationControlSource (const std::string& source_) : ShaderSource(glu::SHADERTYPE_TESSELLATION_CONTROL, source_) {}
277 struct TessellationEvaluationSource : public ShaderSource
279 TessellationEvaluationSource (const std::string& source_) : ShaderSource(glu::SHADERTYPE_TESSELLATION_EVALUATION, source_) {}
296 ProgramSources& operator<< (const ShaderSource& shaderSource) { sources[shaderSource.shaderType].push_back(shaderSource.source); return *this; }