Lines Matching refs:glu
197 void ShaderViewportLayerArrayUtils::ShaderPipeline::create(const glu::RenderContext& context)
199 glu::ProgramSources sources;
200 sources.sources[glu::SHADERTYPE_VERTEX].push_back(m_vs);
203 sources.sources[glu::SHADERTYPE_TESSELLATION_CONTROL].push_back(m_tcs);
204 sources.sources[glu::SHADERTYPE_TESSELLATION_EVALUATION].push_back(m_tes);
208 sources.sources[glu::SHADERTYPE_GEOMETRY].push_back(m_gs);
210 sources.sources[glu::SHADERTYPE_FRAGMENT].push_back(m_fs);
212 m_program = new glu::ShaderProgram(context, sources);
219 void ShaderViewportLayerArrayUtils::ShaderPipeline::use(const glu::RenderContext& context)
226 void ShaderViewportLayerArrayUtils::renderQuad(const glu::RenderContext& context, ShaderPipeline& shaderPipeline,
244 glu::VertexArrayBinding vertexArrays[] = { glu::va::Float("inPosition", 2, 4, 0, position),
245 glu::va::Int32(varName, 1, 4, 0, viewportLayerIndices),
246 glu::va::Float("inColor", 4, 4, 0, colors) };
250 glu::PrimitiveList primitiveList = shaderPipeline.hasTessellationShader() ?
251 glu::pr::Patches(DE_LENGTH_OF_ARRAY(quadIndices), quadIndices) :
252 glu::pr::TriangleStrip(DE_LENGTH_OF_ARRAY(quadIndices), quadIndices);
254 glu::draw(context, shaderPipeline.getShaderProgram()->getProgram(), DE_LENGTH_OF_ARRAY(vertexArrays), vertexArrays,
255 primitiveList, (glu::DrawUtilCallback*)DE_NULL);
257 GLU_EXPECT_NO_ERROR(gl.getError(), "glu::draw error");
369 const glu::RenderContext& renderContext = m_context.getRenderContext();
484 const glu::RenderContext& renderContext = m_context.getRenderContext();