Lines Matching defs:const

61 static std::string sampleMaskToString (const std::vector<deUint32>& bitfield, int numBits)
70 const int targetCharNdx = numBits - (wordNdx*32+bit) - 1;
89 const int wordSize = 32;
90 const int maskLen = highestBitNdx + 1;
100 const int wordSize = 32;
101 const int numWords = getEffectiveSampleMaskWordCount(nthBit - 1);
102 const deUint32 topWordBits = (deUint32)(nthBit - (numWords - 1) * wordSize);
115 SamplePosQueryCase (Context& context, const char* name, const char* desc);
121 SamplePosQueryCase::SamplePosQueryCase (Context& context, const char* name, const char* desc)
169 DefaultFBOMultisampleCase (Context& context, const char* name, const char* desc, int desiredViewportSize);
176 void renderTriangle (const Vec3& p0, const Vec3& p1, const Vec3& p2, const Vec4& c0, const Vec4& c1, const Vec4& c2) const;
177 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Vec4& c1, const Vec4& c2) const;
178 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const;
179 void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4& c0, const Vec4& c1, const Vec4& c2, const Vec4& c3) const;
180 void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4& color) const;
183 void readImage (tcu::Surface& dst) const;
190 DefaultFBOMultisampleCase (const DefaultFBOMultisampleCase& other);
191 DefaultFBOMultisampleCase& operator= (const DefaultFBOMultisampleCase& other);
193 const int m_desiredViewportSize;
206 DefaultFBOMultisampleCase::DefaultFBOMultisampleCase (Context& context, const char* name, const char* desc, int desiredViewportSize)
228 const bool supportsES32 = glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2));
232 static const char* vertShaderSource =
243 static const char* fragShaderSource =
253 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
302 void DefaultFBOMultisampleCase::renderTriangle (const Vec3& p0, const Vec3& p1, const Vec3& p2, const Vec4& c0, const Vec4& c1, const Vec4& c2) const
304 const float vertexPositions[] =
310 const float vertexColors[] =
317 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
346 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Vec4& c1, const Vec4& c2) const
354 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const
359 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4& c0, const Vec4& c1, const Vec4& c2, const Vec4& c3) const
365 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4& color) const
372 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
381 void DefaultFBOMultisampleCase::readImage (tcu::Surface& dst) const
400 MaskInvertCase (Context& context, const char* name, const char* description);
407 void drawPattern (bool invert) const;
410 MaskInvertCase::MaskInvertCase (Context& context, const char* name, const char* description)
417 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
432 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
489 void MaskInvertCase::drawPattern (bool invert) const
491 const int numTriangles = 25;
492 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
496 const float angle0 = 2.0f*DE_PI * (float)triNdx / (float)numTriangles;
497 const float angle1 = 2.0f*DE_PI * ((float)triNdx + 0.5f) / (float)numTriangles;
498 const Vec4 color = Vec4(0.4f + (float)triNdx/(float)numTriangles*0.6f,
504 const int wordCount = getEffectiveSampleMaskWordCount(m_numSamples - 1);
505 const GLbitfield finalWordBits = m_numSamples - 32 * ((m_numSamples-1) / 32);
506 const GLbitfield finalWordMask = (GLbitfield)deBitMask32(0, (int)finalWordBits);
510 const GLbitfield rawMask = (GLbitfield)deUint32Hash(wordNdx * 32 + triNdx);
511 const GLbitfield mask = (invert) ? (~rawMask) : (rawMask);
512 const bool isFinalWord = (wordNdx + 1) == wordCount;
513 const GLbitfield maskMask = (isFinalWord) ? (finalWordMask) : (0xFFFFFFFFUL); // maskMask prevents setting coverage bits higher than sample count
537 MaskProportionalityCase (Context& context, const char* name, const char* description);
551 MaskProportionalityCase::MaskProportionalityCase (Context& context, const char* name, const char* description)
561 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
584 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
600 const Vec2 pt0 (-1.0f, -1.0f);
601 const Vec2 pt1 ( 1.0f, -1.0f);
602 const Vec2 pt2 (-1.0f, 1.0f);
603 const Vec2 pt3 ( 1.0f, 1.0f);
605 const std::vector<deUint32> sampleMask = genAllSetToNthBitSampleMask(m_currentIteration);
613 const GLbitfield mask = (wordNdx < (int)sampleMask.size()) ? ((GLbitfield)(sampleMask[wordNdx])) : (0);
698 MaskConstancyCase (Context& context, const char* name, const char* description, deUint32 typeBits);
705 const bool m_isAlphaToCoverageCase;
706 const bool m_isSampleCoverageCase;
707 const bool m_isInvertedSampleCoverageCase;
708 const bool m_isSampleMaskCase;
711 MaskConstancyCase::MaskConstancyCase (Context& context, const char* name, const char* description, deUint32 typeBits)
725 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
742 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
790 const int numQuadRowsCols = m_numSamples*4;
800 const Vec4 baseGreen (0.0f, 1.0f, 0.0f, 0.0f);
801 const Vec4 baseRed (1.0f, 0.0f, 0.0f, 0.0f);
814 const int wordCount = getEffectiveSampleMaskWordCount(m_numSamples - 1);
815 const GLbitfield finalWordBits = m_numSamples - 32 * ((m_numSamples-1) / 32);
816 const GLbitfield finalWordMask = (GLbitfield)deBitMask32(0, (int)finalWordBits);
820 const GLbitfield mask = (GLbitfield)deUint32Hash((col << (m_numSamples / 2)) ^ row);
821 const bool isFinalWord = (wordNdx + 1) == wordCount;
822 const GLbitfield maskMask = (isFinalWord) ? (finalWordMask) : (0xFFFFFFFFUL); // maskMask prevents setting coverage bits higher than sample count
876 SampleMaskHighBitsCase (Context& context, const char* name, const char* description);
883 SampleMaskHighBitsCase::SampleMaskHighBitsCase (Context& context, const char* name, const char* description)
890 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
904 const glw::Functions& gl = m_context.getRenderContext().getFunctions();
928 const int numQuadRowsCols = m_numSamples*4;
938 const Vec4 baseGreen (0.0f, 1.0f, 0.0f, 1.0f);
939 const Vec4 baseRed (1.0f, 0.0f, 0.0f, 1.0f);
941 const int wordCount = getEffectiveSampleMaskWordCount(m_numSamples - 1);
942 const GLbitfield finalWordBits = m_numSamples - 32 * ((m_numSamples-1) / 32);
943 const GLbitfield finalWordMask = (GLbitfield)deBitMask32(0, (int)finalWordBits);
947 const GLbitfield mask = (GLbitfield)deUint32Hash((col << (m_numSamples / 2)) ^ row);
948 const bool isFinalWord = (wordNdx + 1) == wordCount;
949 const GLbitfield maskMask = (isFinalWord) ? (finalWordMask) : (0xFFFFFFFFUL); // maskMask is 1 on bits in lower positions than sample count
950 const GLbitfield highBits = rnd.getUint32();
959 const GLbitfield mask = (GLbitfield)deUint32Hash((col << (m_numSamples / 2)) ^ row);
960 const bool isFinalWord = (wordNdx + 1) == wordCount;
961 const GLbitfield maskMask = (isFinalWord) ? (finalWordMask) : (0xFFFFFFFFUL); // maskMask is 1 on bits in lower positions than sample count
962 const GLbitfield highBits = rnd.getUint32();
1005 tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "default_framebuffer", "Test with default framebuffer");