Lines Matching defs:const
51 static std::string specializeShader(const std::string& shaderSource, const glu::ContextType& contextType)
53 const bool isES32orGL45 = glu::contextSupports(contextType, glu::ApiType::es(3, 2)) ||
71 static bool verifyGreenImage (const tcu::Surface& image, tcu::TestLog& log)
82 const tcu::RGBA color = image.getPixel(x, y);
83 const int greenThreshold = 8;
106 MultisampleShadeCountRenderCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target);
117 virtual std::string getIterationDescription (int iteration) const;
118 bool verifyImage (const tcu::Surface& resultImage);
121 MultisampleShadeCountRenderCase::MultisampleShadeCountRenderCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target)
140 std::string MultisampleShadeCountRenderCase::getIterationDescription (int iteration) const
148 bool MultisampleShadeCountRenderCase::verifyImage (const tcu::Surface& resultImage)
150 const bool isSingleSampleTarget = (m_renderTarget != TARGET_DEFAULT && m_numRequestedSamples == 0) || (m_renderTarget == TARGET_DEFAULT && m_context.getRenderTarget().getNumSamples() <= 1);
151 const int numShadesRequired = (isSingleSampleTarget) ? (2) : (m_numTargetSamples + 1);
152 const int rareThreshold = 100;
166 const tcu::RGBA color = resultImage.getPixel(x, y);
167 const deUint32 packed = ((deUint32)color.getRed()) + ((deUint32)color.getGreen() << 8) + ((deUint32)color.getGreen() << 16);
201 SampleQualifierRenderCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target);
207 std::string genVertexSource (int numTargetSamples) const;
208 std::string genFragmentSource (int numTargetSamples) const;
209 std::string getIterationDescription (int iteration) const;
212 SampleQualifierRenderCase::SampleQualifierRenderCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target)
224 const bool isSingleSampleTarget = (m_renderTarget != TARGET_DEFAULT && m_numRequestedSamples == 0) || (m_renderTarget == TARGET_DEFAULT && m_context.getRenderTarget().getNumSamples() <= 1);
249 std::string SampleQualifierRenderCase::genVertexSource (int numTargetSamples) const
301 std::string SampleQualifierRenderCase::genFragmentSource (int numTargetSamples) const
354 std::string SampleQualifierRenderCase::getIterationDescription (int iteration) const
383 InterpolateAtSampleRenderCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, IndexingMode mode);
390 std::string genVertexSource (int numTargetSamples) const;
391 std::string genFragmentSource (int numTargetSamples) const;
392 std::string getIterationDescription (int iteration) const;
394 const IndexingMode m_indexMode;
397 InterpolateAtSampleRenderCase::InterpolateAtSampleRenderCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, IndexingMode mode)
412 const bool isSingleSampleTarget = (m_renderTarget != TARGET_DEFAULT && m_numRequestedSamples == 0) || (m_renderTarget == TARGET_DEFAULT && m_context.getRenderTarget().getNumSamples() <= 1);
441 const deInt32 range = m_numTargetSamples;
442 const deInt32 offset = 1;
443 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
444 const deInt32 offsetLoc = gl.getUniformLocation(m_program->getProgram(), "u_offset");
445 const deInt32 rangeLoc = gl.getUniformLocation(m_program->getProgram(), "u_range");
464 std::string InterpolateAtSampleRenderCase::genVertexSource (int numTargetSamples) const
509 std::string InterpolateAtSampleRenderCase::genFragmentSource (int numTargetSamples) const
618 std::string InterpolateAtSampleRenderCase::getIterationDescription (int iteration) const
642 SingleSampleInterpolateAtSampleCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, SampleCase sampleCase);
653 std::string genVertexSource (int numTargetSamples) const;
654 std::string genFragmentSource (int numTargetSamples) const;
655 bool verifyImage (const tcu::Surface& resultImage);
657 const SampleCase m_sampleCase;
660 SingleSampleInterpolateAtSampleCase::SingleSampleInterpolateAtSampleCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, SampleCase sampleCase)
691 std::string SingleSampleInterpolateAtSampleCase::genVertexSource (int numTargetSamples) const
709 std::string SingleSampleInterpolateAtSampleCase::genFragmentSource (int numTargetSamples) const
721 " const highp float threshold = 0.15625; // 4 subpixel bits. Assume 3 accurate bits + 0.03125 for other errors\n"; // 0.03125 = mediump epsilon when value = 32 (RENDER_SIZE)
757 bool SingleSampleInterpolateAtSampleCase::verifyImage (const tcu::Surface& resultImage)
765 CentroidRenderCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, int renderSize);
774 CentroidRenderCase::CentroidRenderCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, int renderSize)
794 const int numTriangles = 200;
795 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
811 const float angle = ((float)triangleNdx) / (float)numTriangles * 2.0f * DE_PI;
812 const float nextAngle = ((float)triangleNdx + 1.0f) / (float)numTriangles * 2.0f * DE_PI;
834 CentroidQualifierAtSampleCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target);
845 std::string genVertexSource (int numTargetSamples) const;
846 std::string genFragmentSource (int numTargetSamples) const;
847 bool verifyImage (const tcu::Surface& resultImage);
850 CentroidQualifierAtSampleCase::CentroidQualifierAtSampleCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target)
874 std::string CentroidQualifierAtSampleCase::genVertexSource (int numTargetSamples) const
896 std::string CentroidQualifierAtSampleCase::genFragmentSource (int numTargetSamples) const
909 " const highp float threshold = 0.0005;\n"
930 bool CentroidQualifierAtSampleCase::verifyImage (const tcu::Surface& resultImage)
938 InterpolateAtSampleIDCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target);
948 std::string genVertexSource (int numTargetSamples) const;
949 std::string genFragmentSource (int numTargetSamples) const;
950 bool verifyImage (const tcu::Surface& resultImage);
953 InterpolateAtSampleIDCase::InterpolateAtSampleIDCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target)
981 std::string InterpolateAtSampleIDCase::genVertexSource (int numTargetSamples) const
1000 std::string InterpolateAtSampleIDCase::genFragmentSource (int numTargetSamples) const
1013 " const highp float threshold = 0.15625; // 4 subpixel bits. Assume 3 accurate bits + 0.03125 for other errors\n" // 0.03125 = mediump epsilon when value = 32 (RENDER_SIZE)
1028 bool InterpolateAtSampleIDCase::verifyImage (const tcu::Surface& resultImage)
1044 InterpolateAtCentroidCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, TestType type);
1055 std::string genVertexSource (int numTargetSamples) const;
1056 std::string genFragmentSource (int numTargetSamples) const;
1057 bool verifyImage (const tcu::Surface& resultImage);
1059 const TestType m_type;
1062 InterpolateAtCentroidCase::InterpolateAtCentroidCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, TestType type)
1099 std::string InterpolateAtCentroidCase::genVertexSource (int numTargetSamples) const
1136 std::string InterpolateAtCentroidCase::genFragmentSource (int numTargetSamples) const
1150 " const highp float threshold = 0.0005;\n"
1173 " const highp float threshold = 0.0005;\n"
1190 bool InterpolateAtCentroidCase::verifyImage (const tcu::Surface& resultImage)
1207 InterpolateAtOffsetCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, TestType testType);
1217 std::string genVertexSource (int numTargetSamples) const;
1218 std::string genFragmentSource (int numTargetSamples) const;
1219 bool verifyImage (const tcu::Surface& resultImage);
1221 const TestType m_testType;
1224 InterpolateAtOffsetCase::InterpolateAtOffsetCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target, TestType testType)
1252 std::string InterpolateAtOffsetCase::genVertexSource (int numTargetSamples) const
1263 const char* const qualifier = (m_testType == TEST_QUALIFIER_CENTROID) ? ("centroid ") : (m_testType == TEST_QUALIFIER_SAMPLE) ? ("sample ") : ("");
1291 std::string InterpolateAtOffsetCase::genFragmentSource (int numTargetSamples) const
1295 const char* const arrayIndexing = (m_testType == TEST_ARRAY_ELEMENT) ? ("[1]") : ("");
1303 const char* const qualifier = (m_testType == TEST_QUALIFIER_CENTROID) ? ("centroid ") : (m_testType == TEST_QUALIFIER_SAMPLE) ? ("sample ") : ("");
1318 " const highp float threshold = 0.15625; // 4 subpixel bits. Assume 3 accurate bits + 0.03125 for other errors\n" // 0.03125 = mediump epsilon when value = 32 (RENDER_SIZE)
1334 bool InterpolateAtOffsetCase::verifyImage (const tcu::Surface& resultImage)
1342 InterpolateAtSamplePositionCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target);
1352 std::string genVertexSource (int numTargetSamples) const;
1353 std::string genFragmentSource (int numTargetSamples) const;
1354 bool verifyImage (const tcu::Surface& resultImage);
1357 InterpolateAtSamplePositionCase::InterpolateAtSamplePositionCase (Context& context, const char* name, const char* description, int numSamples, RenderTarget target)
1385 std::string InterpolateAtSamplePositionCase::genVertexSource (int numTargetSamples) const
1404 std::string InterpolateAtSamplePositionCase::genFragmentSource (int numTargetSamples) const
1417 " const highp float threshold = 0.15625; // 4 subpixel bits. Assume 3 accurate bits + 0.03125 for other errors\n" // 0.03125 = mediump epsilon when value = 32 (RENDER_SIZE)
1433 bool InterpolateAtSamplePositionCase::verifyImage (const tcu::Surface& resultImage)
1466 NegativeCompileInterpolationCase (Context& context, const char* name, const char* description, CaseType caseType, InterpolatorType interpolator);
1472 std::string genShaderSource (void) const;
1474 const CaseType m_caseType;
1475 const InterpolatorType m_interpolation;
1478 NegativeCompileInterpolationCase::NegativeCompileInterpolationCase (Context& context, const char* name, const char* description, CaseType caseType, InterpolatorType interpolator)
1508 const std::string source = genShaderSource();
1510 const char* const sourceStrPtr = source.c_str();
1538 std::string NegativeCompileInterpolationCase::genShaderSource (void) const
1542 const char* interpolationTemplate;
1543 const char* description;
1544 const char* globalDeclarations = "";
1545 const char* localDeclarations = "";
1546 const char* interpolationTarget = "";
1547 const char* postSelector = "";
1617 globalDeclarations = "const highp vec4 const_var = vec4(0.2);\n";
1682 static const struct RenderTarget
1684 const char* name;
1685 const char* desc;
1705 static const struct
1707 const char* name;
1708 const char* description;
1727 tcu::TestCaseGroup* const sampleQualifierGroup = new tcu::TestCaseGroup(m_testCtx, "sample_qualifier", "Test sample qualifier");
1736 tcu::TestCaseGroup* const interpolateAtSampleGroup = new tcu::TestCaseGroup(m_testCtx, "interpolate_at_sample", "Test interpolateAtSample");
1741 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "static_sample_number", "Test interpolateAtSample sample number");
1750 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "dynamic_sample_number", "Test interpolateAtSample sample number");
1759 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "non_multisample_buffer", "Test interpolateAtSample with non-multisample buffers");
1773 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "centroid_qualified", "Test interpolateAtSample with centroid qualified varying");
1782 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "at_sample_id", "Test interpolateAtSample at current sample id");
1791 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "negative", "interpolateAtSample negative tests");
1805 tcu::TestCaseGroup* const methodGroup = new tcu::TestCaseGroup(m_testCtx, "interpolate_at_centroid", "Test interpolateAtCentroid");
1810 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "consistency", "Test interpolateAtCentroid return value is consistent to centroid qualified value");
1819 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "array_element", "Test interpolateAtCentroid with array element");
1828 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "negative", "interpolateAtCentroid negative tests");
1842 static const struct TestConfig
1844 const char* name;
1853 tcu::TestCaseGroup* const methodGroup = new tcu::TestCaseGroup(m_testCtx, "interpolate_at_offset", "Test interpolateAtOffset");
1861 tcu::TestCaseGroup* const qualifierGroup = new tcu::TestCaseGroup(m_testCtx, configs[configNdx].name, "Test interpolateAtOffset with qualified/non-qualified varying");
1870 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "at_sample_position", "Test interpolateAtOffset at sample position");
1879 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "array_element", "Test interpolateAtOffset with array element");
1888 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "negative", "interpolateAtOffset negative tests");