Lines Matching refs:glu
84 virtual tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const = 0;
101 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
135 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
169 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
203 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
241 AttributeCase (Context& ctx, const char* name, const char* desc, const char* funcName, bool normalizing, bool useNegative, glu::DataType dataType);
244 static AttributeCase* create (Context& ctx, glu::DataType dataType);
252 glu::DataType getTargetType (void) const;
261 const glu::DataType m_dataType;
263 glu::ShaderProgram* m_program;
274 AttributeCase::AttributeCase (Context& ctx, const char* name, const char* desc, const char* funcName, bool normalizing, bool useNegative, glu::DataType dataType)
289 AttributeCase* AttributeCase::create (Context& ctx, glu::DataType dataType)
321 << "Attribute type: " << glu::getDataTypeName(m_dataType) << "\n"
328 m_program = new glu::ShaderProgram(m_context.getRenderContext(), glu::ProgramSources() << glu::VertexSource(genVertexSource()) << glu::FragmentSource(s_passThroughFragmentShaderSource));
402 const int vectorSize = (glu::isDataTypeMatrix(m_dataType)) ? (glu::getDataTypeMatrixNumRows(m_dataType)) : (glu::isDataTypeVector(m_dataType)) ? (glu::getDataTypeScalarSize(m_dataType)) : (-1);
403 const char* const vectorType = glu::getDataTypeName((glu::isDataTypeMatrix(m_dataType)) ? (glu::getDataTypeVector(glu::TYPE_FLOAT, vectorSize)) : (glu::isDataTypeVector(m_dataType)) ? (glu::getDataTypeVector(glu::TYPE_FLOAT, vectorSize)) : (glu::TYPE_FLOAT));
404 const int components = (glu::isDataTypeMatrix(m_dataType)) ? (glu::getDataTypeMatrixNumRows(m_dataType)) : (glu::getDataTypeScalarSize(m_dataType));
409 "in highp " << glu::getDataTypeName(m_dataType) << " a_value;\n"
417 buf << " highp " << vectorType << " normalizedValue = " << ((glu::getDataTypeScalarType(m_dataType) == glu::TYPE_FLOAT) ? ("") : (vectorType)) << "(a_value" << ((glu::isDataTypeMatrix(m_dataType)) ? ("[1]") : ("")) << ");\n";
419 buf << " highp " << vectorType << " normalizedValue = " << ((glu::getDataTypeScalarType(m_dataType) == glu::TYPE_FLOAT) ? ("") : (vectorType)) << "(a_value" << ((glu::isDataTypeMatrix(m_dataType)) ? ("[1]") : ("")) << ") / float(" << s_valueRange << ");\n";
444 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
464 loadedValue = m_loader->load(gl, (glu::isDataTypeMatrix(m_dataType)) ? (valueIndex + 1) : (valueIndex), v);
472 glu::readPixels(m_context.getRenderContext(), 0, 0, dest.getAccess());
482 const int components = (glu::isDataTypeMatrix(m_dataType)) ? (glu::getDataTypeMatrixNumRows(m_dataType)) : (glu::getDataTypeScalarSize(m_dataType));
567 glu::DataType dataType;
573 { "float", glu::TYPE_FLOAT, false },
574 { "vec2", glu::TYPE_FLOAT_VEC2, true },
575 { "vec3", glu::TYPE_FLOAT_VEC3, true },
576 { "vec4", glu::TYPE_FLOAT_VEC4, false },
577 { "mat2", glu::TYPE_FLOAT_MAT2, true },
578 { "mat2x3", glu::TYPE_FLOAT_MAT2X3, true },
579 { "mat2x4", glu::TYPE_FLOAT_MAT2X4, true },
580 { "mat3", glu::TYPE_FLOAT_MAT3, true },
581 { "mat3x2", glu::TYPE_FLOAT_MAT3X2, true },
582 { "mat3x4", glu::TYPE_FLOAT_MAT3X4, true },
583 { "mat4", glu::TYPE_FLOAT_MAT4, false },
584 { "mat4x2", glu::TYPE_FLOAT_MAT4X2, true },
585 { "mat4x3", glu::TYPE_FLOAT_MAT4X3, true },
590 { "int", glu::TYPE_INT, false },
591 { "ivec2", glu::TYPE_INT_VEC2, true },
592 { "ivec3", glu::TYPE_INT_VEC3, true },
593 { "ivec4", glu::TYPE_INT_VEC4, false },
598 { "uint", glu::TYPE_UINT, false },
599 { "uvec2", glu::TYPE_UINT_VEC2, true },
600 { "uvec3", glu::TYPE_UINT_VEC3, true },
601 { "uvec4", glu::TYPE_UINT_VEC4, false },