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() in DepthShader()
65 << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT) in DepthShader()
66 << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT) in DepthShader()
67 << sglr::pdec::Uniform("u_color", glu::TYPE_FLOAT_VEC4) in DepthShader()
68 << sglr::pdec::VertexSource("#version 300 es\n" in DepthShader()
74 << sglr::pdec::FragmentSource("#version 300 es\n" in DepthShader()
85 void DepthShader::setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color) in setColor()
116 virtual void render (sglr::Context& context) = DE_NULL;
147 …sglr::GLContext context(renderCtx, log, sglr::GLCONTEXT_LOG_CALLS, tcu::IVec4(x, y, width, height)… in iterate()
159 …sglr::ReferenceContextBuffers buffers (tcu::PixelFormat(8,8,8,renderTarget.getPixelFormat().alphaB… in iterate()
160 …sglr::ReferenceContext context (sglr::ReferenceContextLimits(renderCtx), buffers.getColorbuffer(… in iterate()
203 void render (sglr::Context& context) in render()
223 sglr::drawQuad(context, shaderID, Vec3(-1.0f, -1.0f, 0.2f), Vec3(0.0f, 0.0f, 0.2f)); in render()
226 sglr::drawQuad(context, shaderID, Vec3(-1.0f, -1.0f, 0.2f), Vec3(0.0f, 0.0f, 0.2f)); in render()
231 sglr::drawQuad(context, shaderID, Vec3(-1.0f, 0.0f, -0.4f), Vec3(0.0f, 1.0f, -0.4f)); in render()
234 sglr::drawQuad(context, shaderID, Vec3(-1.0f, 0.0f, -0.1f), Vec3(0.0f, 1.0f, -0.1f)); in render()
239 sglr::drawQuad(context, shaderID, Vec3(0.0f, -1.0f, 0.5f), Vec3(1.0f, 0.0f, 0.5f)); in render()
242 sglr::drawQuad(context, shaderID, Vec3(0.0f, -1.0f, 0.3f), Vec3(1.0f, 0.0f, 0.3f)); in render()
247 sglr::drawQuad(context, shaderID, Vec3(0.0f, 0.0f, 0.0f), Vec3(1.0f, 1.0f, 0.0f)); in render()
250 sglr::drawQuad(context, shaderID, Vec3(0.0f, 0.0f, -1.0f), Vec3(1.0f, 1.0f, 1.0f)); in render()