Lines Matching defs:test

927 						BuiltinVariableShader	(const glu::ContextType& contextType, VariableTest test);
933 static const char* getTestAttributeName (VariableTest test);
936 std::string genGeometrySource (const glu::ContextType& contextType, VariableTest test) const;
937 std::string genVertexSource (const glu::ContextType& contextType, VariableTest test) const;
938 std::string genFragmentSource (const glu::ContextType& contextType, VariableTest test) const;
943 BuiltinVariableShader::BuiltinVariableShader (const glu::ContextType& contextType, VariableTest test)
946 << sglr::pdec::VertexAttribute(getTestAttributeName(test), rr::GENERICVECTYPE_FLOAT)
950 << sglr::pdec::VertexSource(genVertexSource(contextType, test))
951 << sglr::pdec::FragmentSource(genFragmentSource(contextType, test))
953 ((test == TEST_POINT_SIZE) ? (rr::GEOMETRYSHADEROUTPUTTYPE_POINTS) : (rr::GEOMETRYSHADEROUTPUTTYPE_TRIANGLE_STRIP)),
954 ((test == TEST_POINT_SIZE) ? (1) : (3)))
955 << sglr::pdec::GeometrySource(genGeometrySource(contextType, test)))
956 , m_test (test)
1043 const char* BuiltinVariableShader::getTestAttributeName (VariableTest test)
1045 switch (test)
1056 std::string BuiltinVariableShader::genGeometrySource (const glu::ContextType& contextType, VariableTest test) const
1066 if (!supportsGL45 && test == TEST_POINT_SIZE)
1071 if (test == TEST_POINT_SIZE)
1076 if (test == TEST_POINT_SIZE)
1078 else if (test == TEST_PRIMITIVE_ID)
1081 if (test != TEST_PRIMITIVE_ID)
1088 if (test == TEST_POINT_SIZE)
1095 else if (test == TEST_PRIMITIVE_ID_IN)
1115 else if (test == TEST_PRIMITIVE_ID)
1138 std::string BuiltinVariableShader::genVertexSource (const glu::ContextType& contextType, VariableTest test) const
1145 if (test == TEST_POINT_SIZE)
1147 else if (test == TEST_PRIMITIVE_ID)
1150 if (test == TEST_POINT_SIZE)
1152 else if (test == TEST_PRIMITIVE_ID)
1160 if (test == TEST_POINT_SIZE)
1162 else if (test == TEST_PRIMITIVE_ID)
1170 std::string BuiltinVariableShader::genFragmentSource (const glu::ContextType& contextType, VariableTest test) const
1174 if (test == TEST_POINT_SIZE || test == TEST_PRIMITIVE_ID_IN)
1176 else if (test == TEST_PRIMITIVE_ID)
1226 static const char* getAttributeName (VaryingSource test);
1229 static std::string genGeometrySource (const glu::ContextType& contextType, VaryingSource test, int maxEmitCount, bool instanced);
1230 static std::string genVertexSource (const glu::ContextType& contextType, VaryingSource test);
1354 const char* VaryingOutputCountShader::getAttributeName (VaryingSource test)
1356 switch (test)
1367 std::string VaryingOutputCountShader::genGeometrySource (const glu::ContextType& contextType, VaryingSource test, int maxEmitCount, bool instanced)
1376 if (test == READ_ATTRIBUTE)
1378 else if (test == READ_UNIFORM)
1392 if (test == READ_ATTRIBUTE)
1397 else if (test == READ_UNIFORM)
1402 else if (test == READ_TEXTURE)
1422 if (test == READ_ATTRIBUTE)
1427 else if (test == READ_UNIFORM || test == READ_TEXTURE)
1457 std::string VaryingOutputCountShader::genVertexSource (const glu::ContextType& contextType, VaryingSource test)
1464 if (test == READ_ATTRIBUTE)
1469 else if (test == READ_UNIFORM || test == READ_TEXTURE)
1479 if (test == READ_ATTRIBUTE)
1481 else if (test == READ_UNIFORM || test == READ_TEXTURE)
2539 // Log what the test tries to do
2586 BuiltinVariableRenderTest (Context& context, const char* name, const char* desc, BuiltinVariableShader::VariableTest test, int flags = 0);
2599 BuiltinVariableRenderTest::BuiltinVariableRenderTest (Context& context, const char* name, const char* desc, BuiltinVariableShader::VariableTest test, int flags)
2600 : GeometryShaderRenderTest (context, name, desc, GL_POINTS, GL_POINTS, BuiltinVariableShader::getTestAttributeName(test), flags)
2602 , m_test (test)
2670 // Only used by primitive ID restart test
2706 LayeredRenderCase (Context& context, const char* name, const char* desc, LayeredRenderTargetType target, TestType test);
2755 LayeredRenderCase::LayeredRenderCase (Context& context, const char* name, const char* desc, LayeredRenderTargetType target, TestType test)
2758 , m_test (test)
2796 // log what the test tries to do
3752 VaryingOutputCountCase (Context& context, const char* name, const char* desc, VaryingOutputCountShader::VaryingSource test, ShaderInstancingMode mode);
3769 VaryingOutputCountCase::VaryingOutputCountCase (Context& context, const char* name, const char* desc, VaryingOutputCountShader::VaryingSource test, ShaderInstancingMode mode)
3770 : GeometryShaderRenderTest (context, name, desc, GL_POINTS, GL_TRIANGLE_STRIP, VaryingOutputCountShader::getAttributeName(test))
3772 , m_test (test)
3819 // Log what the test tries to do
4423 // Log what the test tries to do
4673 m_testCtx.getLog() << tcu::TestLog::Message << "Building a test shader to verify GLSL constant " << m_glslName << " value." << tcu::TestLog::EndMessage;
4705 PrimitivesGeneratedQueryCase (Context& context, const char* name, const char* description, QueryTest test);
4719 PrimitivesGeneratedQueryCase::PrimitivesGeneratedQueryCase (Context& context, const char* name, const char* description, QueryTest test)
4721 , m_test (test)
4739 // log what test tries to do
5499 // log what test tries to do
5862 // log what test tries to do
6137 // query test
6205 basicGroup->addChild(new BuiltinVariableRenderTest (m_context, "point_size", "test gl_PointSize", BuiltinVariableShader::TEST_POINT_SIZE));
6206 basicGroup->addChild(new BuiltinVariableRenderTest (m_context, "primitive_id_in", "test gl_PrimitiveIDIn", BuiltinVariableShader::TEST_PRIMITIVE_ID_IN));
6207 basicGroup->addChild(new BuiltinVariableRenderTest (m_context, "primitive_id_in_restarted","test gl_PrimitiveIDIn with primitive restart", BuiltinVariableShader::TEST_PRIMITIVE_ID_IN, GeometryShaderRenderTest::FLAG_USE_RESTART_INDEX | GeometryShaderRenderTest::FLAG_USE_INDICES));
6208 basicGroup->addChild(new BuiltinVariableRenderTest (m_context, "primitive_id", "test gl_PrimitiveID", BuiltinVariableShader::TEST_PRIMITIVE_ID));
6334 LayeredRenderCase::TestType test;
6353 layeredGroup->addChild(new LayeredRenderCase(m_context, name.c_str(), desc.c_str(), layerTargets[targetNdx].target, tests[testNdx].test));