• Home
  • Raw
  • Download

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("attribute highp vec4 a_position;\n" in DepthShader()
73 << sglr::pdec::FragmentSource("uniform mediump vec4 u_color;\n" in DepthShader()
82 void DepthShader::setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color) in setColor()
113 virtual void render (sglr::Context& context) = DE_NULL;
144sglr::GLContext context(renderCtx, log, sglr::GLCONTEXT_LOG_CALLS, tcu::IVec4(x, y, width, height)… in iterate()
156sglr::ReferenceContextBuffers buffers (tcu::PixelFormat(8,8,8,renderTarget.getPixelFormat().alphaB… in iterate()
157sglr::ReferenceContext context (sglr::ReferenceContextLimits(renderCtx), buffers.getColorbuffer(… in iterate()
200 void render (sglr::Context& context) in render()
220 sglr::drawQuad(context, shaderID, Vec3(-1.0f, -1.0f, 0.2f), Vec3(0.0f, 0.0f, 0.2f)); in render()
223 sglr::drawQuad(context, shaderID, Vec3(-1.0f, -1.0f, 0.2f), Vec3(0.0f, 0.0f, 0.2f)); in render()
228 sglr::drawQuad(context, shaderID, Vec3(-1.0f, 0.0f, -0.4f), Vec3(0.0f, 1.0f, -0.4f)); in render()
231 sglr::drawQuad(context, shaderID, Vec3(-1.0f, 0.0f, -0.1f), Vec3(0.0f, 1.0f, -0.1f)); in render()
236 sglr::drawQuad(context, shaderID, Vec3(0.0f, -1.0f, 0.5f), Vec3(1.0f, 0.0f, 0.5f)); in render()
239 sglr::drawQuad(context, shaderID, Vec3(0.0f, -1.0f, 0.3f), Vec3(1.0f, 0.0f, 0.3f)); in render()
244 sglr::drawQuad(context, shaderID, Vec3(0.0f, 0.0f, 0.0f), Vec3(1.0f, 1.0f, 0.0f)); in render()
247 sglr::drawQuad(context, shaderID, Vec3(0.0f, 0.0f, -1.0f), Vec3(1.0f, 1.0f, 1.0f)); in render()