Lines Matching refs:sglr
58 class StencilShader : public sglr::ShaderProgram
62 : sglr::ShaderProgram(sglr::pdec::ShaderProgramDeclaration()
63 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
64 << sglr::pdec::VertexToFragmentVarying(rr::GENERICVECTYPE_FLOAT)
65 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
66 << sglr::pdec::Uniform("u_color", glu::TYPE_FLOAT_VEC4)
67 << sglr::pdec::VertexSource("#version 300 es\n"
73 << sglr::pdec::FragmentSource("#version 300 es\n"
84 void setColor (sglr::Context& ctx, deUint32 program, const tcu::Vec4& color)
112 const sglr::UniformSlot& u_color;
183 void executeOps (sglr::Context& context, const IVec4& cell, const vector<StencilOp>& ops);
184 void visualizeStencil (sglr::Context& context, int stencilBits, int stencilStep);
208 void StencilCase::executeOps (sglr::Context& context, const IVec4& cell, const vector<StencilOp>& ops)
246 sglr::drawQuad(context, m_shaderID, Vec3(x0, y0, op.depth), Vec3(x1, y1, op.depth));
257 void StencilCase::visualizeStencil (sglr::Context& context, int stencilBits, int stencilStep)
273 sglr::drawQuad(context, m_shaderID, Vec3(-1.0f, -1.0f, 0.0f), Vec3(+1.0f, +1.0f, 0.0f));
327 sglr::GLContext context(m_context.getRenderContext(), log, 0 /* don't log calls or program */, viewport);
345 sglr::ReferenceContextBuffers buffers (tcu::PixelFormat(8,8,8,renderTarget.getPixelFormat().alphaBits?8:0), renderTarget.getDepthBits(), renderTarget.getStencilBits(), width, height);
346 sglr::ReferenceContext context (sglr::ReferenceContextLimits(m_context.getRenderContext()), buffers.getColorbuffer(), buffers.getDepthbuffer(), buffers.getStencilbuffer());