Lines Matching refs:rsg
78 VertexArray::VertexArray (const rsg::ShaderInput* input, int numVertices) in VertexArray()
118 …RenderContext& renderCtx, const char* name, const char* description, const rsg::ProgramParameters&… in RandomShaderCase()
124 , m_vertexShader (rsg::Shader::TYPE_VERTEX) in RandomShaderCase()
125 , m_fragmentShader (rsg::Shader::TYPE_FRAGMENT) in RandomShaderCase()
140 rsg::ProgramGenerator programGenerator; in init()
148 std::vector<const rsg::ShaderInput*> unifiedUniforms; in init()
150 rsg::computeUnifiedUniforms(m_vertexShader, m_fragmentShader, unifiedUniforms); in init()
151 rsg::computeUniformValues(rnd, m_uniforms, unifiedUniforms); in init()
154 const vector<rsg::ShaderInput*>& inputs = m_vertexShader.getInputs(); in init()
157 for (vector<rsg::ShaderInput*>::const_iterator i = inputs.begin(); i != inputs.end(); i++) in init()
159 const rsg::ShaderInput* input = *i; in init()
160 rsg::ConstValueRangeAccess valueRange = input->getValueRange(); in init()
165 TCU_CHECK(input->getVariable()->getType().getBaseType() == rsg::VariableType::TYPE_FLOAT); in init()
192 rsg::getVertexInterpolationCoords(xd, yd, xf, yf, compNdx); in init()
222 …for (vector<rsg::VariableValue>::const_iterator uniformIter = m_uniforms.begin(); uniformIter != m… in init()
224 const rsg::VariableType& type = uniformIter->getVariable()->getType(); in init()
231 if (type == rsg::VariableType(rsg::VariableType::TYPE_SAMPLER_2D, 1)) in init()
233 else if (type == rsg::VariableType(rsg::VariableType::TYPE_SAMPLER_CUBE, 1)) in init()
240 static int getNumSamplerUniforms (const std::vector<rsg::ShaderInput*>& uniforms) in getNumSamplerUniforms()
244 …for (std::vector<rsg::ShaderInput*>::const_iterator it = uniforms.begin(); it != uniforms.end(); +… in getNumSamplerUniforms()
253 void RandomShaderCase::checkShaderLimits (const rsg::Shader& shader) const in checkShaderLimits()
259 …const GLenum pname = (shader.getType() == rsg::Shader::TYPE_VERTEX) ? (GL_MAX_VERTEX_TEXTURE_IMA… in checkShaderLimits()
274 void RandomShaderCase::checkProgramLimits (const rsg::Shader& vtxShader, const rsg::Shader& frgShad… in checkProgramLimits()
371 void setUniformValue (int location, rsg::ConstValueAccess value) in setUniformValue()
373 DE_STATIC_ASSERT(sizeof(rsg::Scalar) == sizeof(float)); in setUniformValue()
374 DE_STATIC_ASSERT(sizeof(rsg::Scalar) == sizeof(int)); in setUniformValue()
378 case rsg::VariableType::TYPE_FLOAT: in setUniformValue()
389 case rsg::VariableType::TYPE_INT: in setUniformValue()
390 case rsg::VariableType::TYPE_BOOL: in setUniformValue()
391 case rsg::VariableType::TYPE_SAMPLER_2D: in setUniformValue()
392 case rsg::VariableType::TYPE_SAMPLER_CUBE: in setUniformValue()
408 tcu::MessageBuilder& operator<< (tcu::MessageBuilder& message, rsg::ConstValueAccess value) in operator <<()
415 case rsg::VariableType::TYPE_FLOAT: scalarType = "float"; vecType = "vec"; break; in operator <<()
416 case rsg::VariableType::TYPE_INT: scalarType = "int"; vecType = "ivec"; break; in operator <<()
417 case rsg::VariableType::TYPE_BOOL: scalarType = "bool"; vecType = "bvec"; break; in operator <<()
418 case rsg::VariableType::TYPE_SAMPLER_2D: scalarType = "sampler2D"; break; in operator <<()
419 case rsg::VariableType::TYPE_SAMPLER_CUBE: scalarType = "samplerCube"; break; in operator <<()
437 …case rsg::VariableType::TYPE_FLOAT: message << value.component(elementNdx).asFloat(); break; in operator <<()
438 case rsg::VariableType::TYPE_INT: message << value.component(elementNdx).asInt(); break; in operator <<()
439 …case rsg::VariableType::TYPE_BOOL: message << (value.component(elementNdx).asBool() ? "true" : "… in operator <<()
440 …case rsg::VariableType::TYPE_SAMPLER_2D: message << value.component(elementNdx).asInt(); bre… in operator <<()
441 …case rsg::VariableType::TYPE_SAMPLER_CUBE: message << value.component(elementNdx).asInt(); b… in operator <<()
452 tcu::MessageBuilder& operator<< (tcu::MessageBuilder& message, rsg::ConstValueRangeAccess valueRang… in operator <<()
484 rsg::ProgramExecutor executor (reference.getAccess(), m_gridWidth, m_gridHeight); in iterate()
505 …for (vector<rsg::VariableValue>::const_iterator uniformIter = m_uniforms.begin(); uniformIter != m… in iterate()