Lines Matching refs:decl
133 ShaderProgram::ShaderProgram (const pdec::ShaderProgramDeclaration& decl) in ShaderProgram() argument
134 : rr::VertexShader (decl.getVertexInputCount(), decl.getVertexOutputCount()) in ShaderProgram()
135 , rr::GeometryShader (decl.getGeometryInputCount(), in ShaderProgram()
136 decl.getGeometryOutputCount(), in ShaderProgram()
137 decl.m_geometryDecl.inputType, in ShaderProgram()
138 decl.m_geometryDecl.outputType, in ShaderProgram()
139 decl.m_geometryDecl.numOutputVertices, in ShaderProgram()
140 decl.m_geometryDecl.numInvocations) in ShaderProgram()
141 , rr::FragmentShader (decl.getFragmentInputCount(), decl.getFragmentOutputCount()) in ShaderProgram()
142 , m_attributeNames (decl.getVertexInputCount()) in ShaderProgram()
143 , m_uniforms (decl.m_uniforms.size()) in ShaderProgram()
144 , m_vertSrc (decl.m_vertexSource) in ShaderProgram()
145 , m_fragSrc (decl.m_fragmentSource) in ShaderProgram()
146 , m_geomSrc (decl.hasGeometryShader() ? (decl.m_geometrySource) : ("")) in ShaderProgram()
147 , m_hasGeometryShader (decl.hasGeometryShader()) in ShaderProgram()
149 DE_ASSERT(decl.valid()); in ShaderProgram()
153 for (size_t ndx = 0; ndx < decl.m_vertexAttributes.size(); ++ndx) in ShaderProgram()
155 this->rr::VertexShader::m_inputs[ndx].type = decl.m_vertexAttributes[ndx].type; in ShaderProgram()
156 m_attributeNames[ndx] = decl.m_vertexAttributes[ndx].name; in ShaderProgram()
161 for (size_t ndx = 0; ndx < decl.m_vertexToGeometryVaryings.size(); ++ndx) in ShaderProgram()
163 this->rr::VertexShader::m_outputs[ndx].type = decl.m_vertexToGeometryVaryings[ndx].type; in ShaderProgram()
164 … this->rr::VertexShader::m_outputs[ndx].flatshade = decl.m_vertexToGeometryVaryings[ndx].flatshade; in ShaderProgram()
168 for (size_t ndx = 0; ndx < decl.m_geometryToFragmentVaryings.size(); ++ndx) in ShaderProgram()
170 this->rr::GeometryShader::m_outputs[ndx].type = decl.m_geometryToFragmentVaryings[ndx].type; in ShaderProgram()
171 …this->rr::GeometryShader::m_outputs[ndx].flatshade = decl.m_geometryToFragmentVaryings[ndx].flatsh… in ShaderProgram()
178 for (size_t ndx = 0; ndx < decl.m_vertexToFragmentVaryings.size(); ++ndx) in ShaderProgram()
180 this->rr::VertexShader::m_outputs[ndx].type = decl.m_vertexToFragmentVaryings[ndx].type; in ShaderProgram()
181 … this->rr::VertexShader::m_outputs[ndx].flatshade = decl.m_vertexToFragmentVaryings[ndx].flatshade; in ShaderProgram()
187 for (size_t ndx = 0; ndx < decl.m_fragmentOutputs.size(); ++ndx) in ShaderProgram()
188 this->rr::FragmentShader::m_outputs[ndx].type = decl.m_fragmentOutputs[ndx].type; in ShaderProgram()
192 for (size_t ndx = 0; ndx < decl.m_uniforms.size(); ++ndx) in ShaderProgram()
194 this->m_uniforms[ndx].name = decl.m_uniforms[ndx].name; in ShaderProgram()
195 this->m_uniforms[ndx].type = decl.m_uniforms[ndx].type; in ShaderProgram()