Lines Matching refs:sglr
183 class VertexExpanderShader : public sglr::ShaderProgram
198 : sglr::ShaderProgram(sglr::pdec::ShaderProgramDeclaration()
199 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
200 << sglr::pdec::VertexAttribute("a_color", rr::GENERICVECTYPE_FLOAT)
201 << sglr::pdec::VertexToGeometryVarying(rr::GENERICVECTYPE_FLOAT)
202 << sglr::pdec::GeometryToFragmentVarying(rr::GENERICVECTYPE_FLOAT)
203 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
204 << sglr::pdec::VertexSource(s_commonShaderSourceVertex)
205 << sglr::pdec::FragmentSource(s_commonShaderSourceFragment)
206 << sglr::pdec::GeometryShaderDeclaration(inputType, outputType, calcOutputVertices(inputType))
207 << sglr::pdec::GeometrySource(genGeometrySource(inputType, outputType).c_str()))
282 class VertexEmitterShader : public sglr::ShaderProgram
301 : sglr::ShaderProgram(sglr::pdec::ShaderProgramDeclaration()
302 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
303 << sglr::pdec::VertexAttribute("a_color", rr::GENERICVECTYPE_FLOAT)
304 << sglr::pdec::VertexToGeometryVarying(rr::GENERICVECTYPE_FLOAT)
305 << sglr::pdec::GeometryToFragmentVarying(rr::GENERICVECTYPE_FLOAT)
306 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
307 << sglr::pdec::VertexSource(s_commonShaderSourceVertex)
308 << sglr::pdec::FragmentSource(s_commonShaderSourceFragment)
309 << sglr::pdec::GeometryShaderDeclaration(rr::GEOMETRYSHADERINPUTTYPE_POINTS, outputType, emitCountA + emitCountB)
310 << sglr::pdec::GeometrySource(genGeometrySource(emitCountA, endCountA, emitCountB, endCountB, outputType).c_str()))
418 class VertexVaryingShader : public sglr::ShaderProgram
428 static sglr::pdec::ShaderProgramDeclaration genProgramDeclaration (int vertexOut, int geometryOut);
435 : sglr::ShaderProgram (genProgramDeclaration(vertexOut, geometryOut))
597 sglr::pdec::ShaderProgramDeclaration VertexVaryingShader::genProgramDeclaration (int vertexOut, int geometryOut)
599 sglr::pdec::ShaderProgramDeclaration decl;
605 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
606 << sglr::pdec::VertexAttribute("a_color", rr::GENERICVECTYPE_FLOAT);
609 decl << sglr::pdec::VertexToGeometryVarying(rr::GENERICVECTYPE_FLOAT);
611 decl << sglr::pdec::GeometryToFragmentVarying(rr::GENERICVECTYPE_FLOAT);
614 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
615 << sglr::pdec::GeometryShaderDeclaration(rr::GEOMETRYSHADERINPUTTYPE_TRIANGLES, rr::GEOMETRYSHADEROUTPUTTYPE_TRIANGLE_STRIP, 3);
762 << sglr::pdec::VertexSource(vertexSource.str().c_str())
763 << sglr::pdec::FragmentSource(fragmentSource.str().c_str())
764 << sglr::pdec::GeometrySource(geometrySource.str().c_str());
768 class OutputCountShader : public sglr::ShaderProgram
787 : sglr::ShaderProgram (sglr::pdec::ShaderProgramDeclaration()
788 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
789 << sglr::pdec::VertexAttribute("a_color", rr::GENERICVECTYPE_FLOAT)
790 << sglr::pdec::VertexToGeometryVarying(rr::GENERICVECTYPE_FLOAT)
791 << sglr::pdec::GeometryToFragmentVarying(rr::GENERICVECTYPE_FLOAT)
792 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
793 << sglr::pdec::VertexSource(s_commonShaderSourceVertex)
794 << sglr::pdec::FragmentSource(s_commonShaderSourceFragment)
795 << sglr::pdec::GeometryShaderDeclaration(rr::GEOMETRYSHADERINPUTTYPE_POINTS, rr::GEOMETRYSHADEROUTPUTTYPE_TRIANGLE_STRIP, getPatternEmitCount(spec))
796 << sglr::pdec::GeometrySource(genGeometrySource(spec).c_str()))
893 class BuiltinVariableShader : public sglr::ShaderProgram
922 : sglr::ShaderProgram (sglr::pdec::ShaderProgramDeclaration()
923 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
924 << sglr::pdec::VertexAttribute(getTestAttributeName(test), rr::GENERICVECTYPE_FLOAT)
925 << sglr::pdec::VertexToGeometryVarying(rr::GENERICVECTYPE_FLOAT)
926 << sglr::pdec::GeometryToFragmentVarying(rr::GENERICVECTYPE_FLOAT)
927 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
928 << sglr::pdec::VertexSource(genVertexSource(test))
929 << sglr::pdec::FragmentSource(genFragmentSource(test))
930 << sglr::pdec::GeometryShaderDeclaration(rr::GEOMETRYSHADERINPUTTYPE_POINTS,
933 << sglr::pdec::GeometrySource(genGeometrySource(test).c_str()))
1171 class VaryingOutputCountShader : public sglr::ShaderProgram
1204 const sglr::UniformSlot& m_sampler;
1205 const sglr::UniformSlot& m_emitCount;
1211 : sglr::ShaderProgram (sglr::pdec::ShaderProgramDeclaration()
1212 << sglr::pdec::Uniform("u_sampler", glu::TYPE_SAMPLER_2D)
1213 << sglr::pdec::Uniform("u_emitCount", glu::TYPE_INT_VEC4)
1214 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
1215 << sglr::pdec::VertexAttribute(getAttributeName(source), rr::GENERICVECTYPE_FLOAT)
1216 << sglr::pdec::VertexToGeometryVarying(rr::GENERICVECTYPE_FLOAT)
1217 << sglr::pdec::GeometryToFragmentVarying(rr::GENERICVECTYPE_FLOAT)
1218 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
1219 << sglr::pdec::VertexSource(genVertexSource(source))
1220 << sglr::pdec::FragmentSource(s_commonShaderSourceFragment)
1221 << sglr::pdec::GeometryShaderDeclaration(rr::GEOMETRYSHADERINPUTTYPE_POINTS,
1225 << sglr::pdec::GeometrySource(genGeometrySource(source, maxEmitCount, instanced).c_str()))
1460 class InvocationCountShader : public sglr::ShaderProgram
1486 : sglr::ShaderProgram (sglr::pdec::ShaderProgramDeclaration()
1487 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
1488 << sglr::pdec::VertexAttribute("a_color", rr::GENERICVECTYPE_FLOAT)
1489 << sglr::pdec::VertexToGeometryVarying(rr::GENERICVECTYPE_FLOAT)
1490 << sglr::pdec::GeometryToFragmentVarying(rr::GENERICVECTYPE_FLOAT)
1491 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
1492 << sglr::pdec::VertexSource(s_commonShaderSourceVertex)
1493 << sglr::pdec::FragmentSource(s_commonShaderSourceFragment)
1494 << sglr::pdec::GeometryShaderDeclaration(rr::GEOMETRYSHADERINPUTTYPE_POINTS,
1498 << sglr::pdec::GeometrySource(genGeometrySource(numInvocations, testCase).c_str()))
1651 class InstancedExpansionShader : public sglr::ShaderProgram
1669 : sglr::ShaderProgram (sglr::pdec::ShaderProgramDeclaration()
1670 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
1671 << sglr::pdec::VertexAttribute("a_offset", rr::GENERICVECTYPE_FLOAT)
1672 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
1673 << sglr::pdec::VertexSource(genVertexSource())
1674 << sglr::pdec::FragmentSource(genFragmentSource())
1675 << sglr::pdec::GeometryShaderDeclaration(rr::GEOMETRYSHADERINPUTTYPE_POINTS,
1679 << sglr::pdec::GeometrySource(genGeometrySource(numInvocations).c_str()))
1786 virtual sglr::ShaderProgram& getProgram (void) = 0;
1790 void renderWithContext (sglr::Context& ctx, sglr::ShaderProgram& program, tcu::Surface& dstSurface);
1791 virtual void preRender (sglr::Context& ctx, GLuint programID);
1792 sglr::Context& ctx, GLuint programID);
1809 sglr::ReferenceContextBuffers* m_refBuffers;
1810 sglr::ReferenceContext* m_refContext;
1811 sglr::Context* m_glContext;
1854 sglr::ReferenceContextLimits limits;
1859 m_refBuffers = new sglr::ReferenceContextBuffers(m_context.getRenderTarget().getPixelFormat(), m_context.getRenderTarget().getDepthBits(), 0, m_viewportSize.x(), m_viewportSize.y());
1860 m_refContext = new sglr::ReferenceContext(limits, m_refBuffers->getColorbuffer(), m_refBuffers->getDepthbuffer(), m_refBuffers->getStencilbuffer());
1861 m_glContext = new sglr::GLContext(m_context.getRenderContext(), m_testCtx.getLog(), sglr::GLCONTEXT_LOG_CALLS | sglr::GLCONTEXT_LOG_PROGRAMS, tcu::IVec4(0, 0, m_viewportSize.x(), m_viewportSize.y()));
1907 sglr::ShaderProgram& program = getProgram();
2015 void GeometryShaderRenderTest::renderWithContext (sglr::Context& ctx, sglr::ShaderProgram& program, tcu::Surface& dstSurface)
2118 void GeometryShaderRenderTest::preRender (sglr::Context& ctx, GLuint programID)
2124 void GeometryShaderRenderTest::postRender (sglr::Context& ctx, GLuint programID)
2136 sglr::ShaderProgram& getProgram (void);
2144 , m_program (sglr::rr_util::mapGLGeometryShaderInputType(inputPrimitives), sglr::rr_util::mapGLGeometryShaderOutputType(outputPrimitives))
2152 sglr::ShaderProgram& GeometryExpanderRenderTest::getProgram (void)
2162 sglr::ShaderProgram& getProgram (void);
2171 , m_program (emitCountA, endCountA, emitCountB, endCountB, sglr::rr_util::mapGLGeometryShaderOutputType(outputType))
2175 sglr::ShaderProgram& EmitTest::getProgram (void)
2196 sglr::ShaderProgram& getProgram (void);
2209 sglr::ShaderProgram& VaryingTest::getProgram (void)
2264 sglr::Context* m_ctx;
2289 m_ctx = new sglr::GLContext(m_context.getRenderContext(), m_testCtx.getLog(), sglr::GLCONTEXT_LOG_CALLS | sglr::GLCONTEXT_LOG_PROGRAMS, tcu::IVec4(0, 0, 1, 1));
2290 m_program = new VertexExpanderShader(sglr::rr_util::mapGLGeometryShaderInputType(m_inputType), rr::GEOMETRYSHADEROUTPUTTYPE_POINTS);
2362 sglr::ShaderProgram& getProgram (void);
2445 sglr::ShaderProgram& OutputCountCase::getProgram (void)
2472 sglr::ShaderProgram& getProgram (void);
2507 sglr::ShaderProgram& BuiltinVariableRenderTest::getProgram (void)
3586 void preRender (sglr::Context& ctx, GLuint programID);
3588 sglr::ShaderProgram& getProgram (void);
3685 void VaryingOutputCountCase::preRender (sglr::Context& ctx, GLuint programID)
3713 // \note we don't need to explicitly delete the texture, the sglr context will delete it
3722 sglr::ShaderProgram& VaryingOutputCountCase::getProgram (void)
4163 sglr::ShaderProgram& getProgram (void);
4260 sglr::ShaderProgram& GeometryInvocationCase::getProgram (void)
4297 sglr::ShaderProgram& getProgram (void);
4328 sglr::ShaderProgram& DrawInstancedGeometryInstancedCase::getProgram (void)
6160 const std::string name = std::string("type_") + inputTypeToGLString(sglr::rr_util::mapGLGeometryShaderInputType(inputType)) + "_primitive_" + primitiveTypeToString(primitiveType);
6161 const std::string desc = std::string("Shader input type ") + inputTypeToGLString(sglr::rr_util::mapGLGeometryShaderInputType(inputType)) + ", draw primitive type " + primitiveTypeToString(primitiveType);