Lines Matching refs:sglr
21 * \brief sglr-rsg adaptation.
70 static void generateProgramDeclaration (sglr::pdec::ShaderProgramDeclaration& decl, const rsg::Shader& vertexShader, const rsg::Shader& fragmentShader, int numUnifiedUniforms, const rsg::ShaderInput* const* unifiedUniforms)
72 decl << sglr::pdec::VertexSource(vertexShader.getSource())
73 << sglr::pdec::FragmentSource(fragmentShader.getSource());
78 decl << sglr::pdec::VertexAttribute(vertexInput->getVariable()->getName(), mapToGenericVecType(vertexInput->getVariable()->getType()));
84 decl << sglr::pdec::VertexToFragmentVarying(mapToGenericVecType(fragInput->getVariable()->getType()));
90 decl << sglr::pdec::Uniform(uniform->getVariable()->getName(), mapToBasicType(uniform->getVariable()->getType()));
93 decl << sglr::pdec::FragmentOutput(rr::GENERICVECTYPE_FLOAT);
96 static sglr::pdec::ShaderProgramDeclaration generateProgramDeclaration (const rsg::Shader& vertexShader, const rsg::Shader& fragmentShader, int numUnifiedUniforms, const rsg::ShaderInput* const* unifiedUniforms)
98 sglr::pdec::ShaderProgramDeclaration decl;
132 : sglr::ShaderProgram (generateProgramDeclaration(vertexShader, fragmentShader, numUnifiedUniforms, unifiedUniforms))
163 const sglr::UniformSlot& uniformSlot = m_uniforms[uniformNdx];