Lines Matching refs:sglr
248 static sglr::pdec::ShaderProgramDeclaration generateShaderProgramDeclaration (int numUnits, const vector<GLenum>& unitTypes, const vector<glu::DataType>& samplerTypes)
250 sglr::pdec::ShaderProgramDeclaration decl;
252 decl << sglr::pdec::VertexAttribute("a_position", rr::GENERICVECTYPE_FLOAT);
253 decl << sglr::pdec::VertexAttribute("a_coord", rr::GENERICVECTYPE_FLOAT);
254 decl << sglr::pdec::VertexToFragmentVarying(rr::GENERICVECTYPE_FLOAT);
255 decl << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT);
264 decl << sglr::pdec::Uniform(samplerName, samplerTypes[ndx]);
265 decl << sglr::pdec::Uniform(transformationName, glu::TYPE_FLOAT_MAT4);
266 decl << sglr::pdec::Uniform(scaleName, glu::TYPE_FLOAT_VEC4);
267 decl << sglr::pdec::Uniform(biasName, glu::TYPE_FLOAT_VEC4);
270 decl << sglr::pdec::VertexSource("#version 300 es\n"
280 decl << sglr::pdec::FragmentSource(generateMultiTexFragmentShader(numUnits, unitTypes, samplerTypes));
330 class MultiTexShader : public sglr::ShaderProgram
341 void setUniforms (sglr::Context& context, deUint32 program) const;
363 : sglr::ShaderProgram (generateShaderProgramDeclaration(numUnits, unitTypes, samplerTypes))
543 void MultiTexShader::setUniforms (sglr::Context& ctx, deUint32 program) const
718 void upload2dTexture (int texNdx, sglr::Context& context);
719 void uploadCubeTexture (int texNdx, sglr::Context& context);
720 void upload2dArrayTexture (int texNdx, sglr::Context& context);
721 void upload3dTexture (int texNdx, sglr::Context& context);
723 void render (sglr::Context& context);
1026 sglr::GLContext context(renderCtx, log, sglr::GLCONTEXT_LOG_CALLS|sglr::GLCONTEXT_LOG_PROGRAMS, tcu::IVec4(viewportX, viewportY, viewportWidth, viewportHeight));
1035 sglr::ReferenceContextBuffers buffers (tcu::PixelFormat(8,8,8,renderTarget.getPixelFormat().alphaBits?8:0), 0 /* depth */, 0 /* stencil */, viewportWidth, viewportHeight);
1036 sglr::ReferenceContext context (sglr::ReferenceContextLimits(renderCtx), buffers.getColorbuffer(), buffers.getDepthbuffer(), buffers.getStencilbuffer());
1054 void TextureUnitCase::upload2dTexture (int texNdx, sglr::Context& context)
1078 void TextureUnitCase::uploadCubeTexture (int texNdx, sglr::Context& context)
1105 void TextureUnitCase::upload2dArrayTexture (int texNdx, sglr::Context& context)
1131 void TextureUnitCase::upload3dTexture (int texNdx, sglr::Context& context)
1157 void TextureUnitCase::render (sglr::Context& context)
1215 sglr::drawQuad(context, shaderID, Vec3(-1.0f, -1.0f, 0.0f), Vec3(1.0f, 1.0f, 0.0f));