Lines Matching refs:sglr
49 class DepthShader : public sglr::ShaderProgram
54 void setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color);
60 const sglr::UniformSlot& u_color;
64 : sglr::ShaderProgram(sglr::pdec::ShaderProgramDeclaration()
65 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT)
66 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT)
67 << sglr::pdec::Uniform("u_color", glu::TYPE_FLOAT_VEC4)
68 << sglr::pdec::VertexSource("attribute highp vec4 a_position;\n"
73 << sglr::pdec::FragmentSource("uniform mediump vec4 u_color;\n"
82 void DepthShader::setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color)
113 virtual void render (sglr::Context& context) = DE_NULL;
144 sglr::GLContext context(renderCtx, log, sglr::GLCONTEXT_LOG_CALLS, tcu::IVec4(x, y, width, height));
156 sglr::ReferenceContextBuffers buffers (tcu::PixelFormat(8,8,8,renderTarget.getPixelFormat().alphaBits?8:0), renderTarget.getDepthBits(), renderTarget.getStencilBits(), width, height);
157 sglr::ReferenceContext context (sglr::ReferenceContextLimits(renderCtx), buffers.getColorbuffer(), buffers.getDepthbuffer(), buffers.getStencilbuffer());
200 void render (sglr::Context& context)
220 sglr::drawQuad(context, shaderID, Vec3(-1.0f, -1.0f, 0.2f), Vec3(0.0f, 0.0f, 0.2f));
223 sglr::drawQuad(context, shaderID, Vec3(-1.0f, -1.0f, 0.2f), Vec3(0.0f, 0.0f, 0.2f));
228 sglr::drawQuad(context, shaderID, Vec3(-1.0f, 0.0f, -0.4f), Vec3(0.0f, 1.0f, -0.4f));
231 sglr::drawQuad(context, shaderID, Vec3(-1.0f, 0.0f, -0.1f), Vec3(0.0f, 1.0f, -0.1f));
236 sglr::drawQuad(context, shaderID, Vec3(0.0f, -1.0f, 0.5f), Vec3(1.0f, 0.0f, 0.5f));
239 sglr::drawQuad(context, shaderID, Vec3(0.0f, -1.0f, 0.3f), Vec3(1.0f, 0.0f, 0.3f));
244 sglr::drawQuad(context, shaderID, Vec3(0.0f, 0.0f, 0.0f), Vec3(1.0f, 1.0f, 0.0f));
247 sglr::drawQuad(context, shaderID, Vec3(0.0f, 0.0f, -1.0f), Vec3(1.0f, 1.0f, 1.0f));