Home
last modified time | relevance | path

Searched refs:spacingMode (Results 1 – 9 of 9) sorted by relevance

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationUtil.cpp446 void getClampedRoundedTriangleTessLevels (const SpacingMode spacingMode, in getClampedRoundedTriangleTessLevels() argument
452 innerDst[0] = getClampedRoundedTessLevel(spacingMode, innerSrc[0]); in getClampedRoundedTriangleTessLevels()
454 outerDst[i] = getClampedRoundedTessLevel(spacingMode, outerSrc[i]); in getClampedRoundedTriangleTessLevels()
457 void getClampedRoundedQuadTessLevels (const SpacingMode spacingMode, in getClampedRoundedQuadTessLevels() argument
464 innerDst[i] = getClampedRoundedTessLevel(spacingMode, innerSrc[i]); in getClampedRoundedQuadTessLevels()
466 outerDst[i] = getClampedRoundedTessLevel(spacingMode, outerSrc[i]); in getClampedRoundedQuadTessLevels()
469 void getClampedRoundedIsolineTessLevels (const SpacingMode spacingMode, in getClampedRoundedIsolineTessLevels() argument
474 outerDst[1] = getClampedRoundedTessLevel(spacingMode, outerSrc[1]); in getClampedRoundedIsolineTessLevels()
539 std::vector<tcu::Vec3> generateReferenceTriangleTessCoords (const SpacingMode spacingMode, in generateReferenceTriangleTessCoords() argument
557 …return generateReferenceTriangleTessCoords(spacingMode, spacingMode == SPACINGMODE_FRACTIONAL_ODD … in generateReferenceTriangleTessCoords()
[all …]
DvktTessellationFractionalSpacingTests.cpp104 SpacingMode spacingMode; member
106 TestParams(ShaderLanguage sl, SpacingMode sm) : shaderLanguage(sl), spacingMode(sm) {} in TestParams()
130 const SpacingMode spacingMode, in verifyFractionalSpacingSingle() argument
136 DE_ASSERT(spacingMode == SPACINGMODE_FRACTIONAL_ODD || spacingMode == SPACINGMODE_FRACTIONAL_EVEN); in verifyFractionalSpacingSingle()
138 const float clampedLevel = getClampedTessLevel(spacingMode, tessLevel); in verifyFractionalSpacingSingle()
139 const int finalLevel = getRoundedTessLevel(spacingMode, clampedLevel); in verifyFractionalSpacingSingle()
147 …<< "; final level (clamped level rounded up to " << (spacingMode == SPACINGMODE_FRACTIONAL_EVEN ? … in verifyFractionalSpacingSingle()
273 const SpacingMode spacingMode, in verifyFractionalSpacingMultiple() argument
278 DE_ASSERT(spacingMode == SPACINGMODE_FRACTIONAL_ODD || spacingMode == SPACINGMODE_FRACTIONAL_EVEN); in verifyFractionalSpacingMultiple()
299 …if (getClampedTessLevel(spacingMode, curData.tessLevel) == getClampedTessLevel(spacingMode, prevDa… in verifyFractionalSpacingMultiple()
[all …]
DvktTessellationMiscDrawTests.cpp63 SpacingMode spacingMode; member
68 const SpacingMode spacingMode, in makeCaseDefinition() argument
73 caseDef.spacingMode = spacingMode; in makeCaseDefinition()
78 std::vector<TessLevels> genTessLevelCases (const SpacingMode spacingMode) in genTessLevelCases() argument
94 …tessLevels.inner[i] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, tessLevelCases[te… in genTessLevelCases()
97 …tessLevels.outer[i] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, tessLevelCases[te… in genTessLevelCases()
138 const std::vector<TessLevels> tessLevelCases = genTessLevelCases(caseDef.spacingMode); in runTest()
400 << getSpacingModeShaderName(caseDef.spacingMode) << ") in;\n" in initProgramsFillCoverCase()
452 << getSpacingModeShaderName(caseDef.spacingMode) << ") in;\n" in initProgramsFillNonOverlapCase()
509 << getSpacingModeShaderName(caseDef.spacingMode) << ") in;\n" in initProgramsIsolinesCase()
[all …]
DvktTessellationCoordinatesTests.cpp65 std::string getCaseName (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, bool… in getCaseName() argument
68 …r << getTessPrimitiveTypeShaderName(primitiveType) << "_" << getSpacingModeShaderName(spacingMode); in getCaseName()
75 const SpacingMode spacingMode) in genTessLevelCases() argument
90 if (spacingMode == SPACINGMODE_EQUAL) in genTessLevelCases()
104 …for (int j = 0; j < 2; ++j) inner[j] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, … in genTessLevelCases()
105 …for (int j = 0; j < 4; ++j) outer[j] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, … in genTessLevelCases()
112 inner[0] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, inner[0] + 0.1f)); in genTessLevelCases()
119 …if (inner[0] == 1.0f) inner[0] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, inner[… in genTessLevelCases()
120 …if (inner[1] == 1.0f) inner[1] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, inner[… in genTessLevelCases()
133 const SpacingMode spacingMode, in generateReferenceTessCoords() argument
[all …]
DvktTessellationInvarianceTests.cpp239 const SpacingMode spacingMode, in addDefaultPrograms() argument
343 << getSpacingModeShaderName(spacingMode) << ", " in addDefaultPrograms()
473 SpacingMode spacingMode; member
504 …imitiveCount (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool use… in multiplePatchReferencePrimitiveCount() argument
508 …result += referencePrimitiveCount(primitiveType, spacingMode, usePointMode, &levels[NUM_TESS_LEVEL… in multiplePatchReferencePrimitiveCount()
513 …atchesToDraw, const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool use… in computeMaxPrimitiveCount() argument
517 …return multiplePatchReferencePrimitiveCount(primitiveType, spacingMode, usePointMode, &patchTessLe… in computeMaxPrimitiveCount()
595 …teMaxPrimitiveCount(m_numPatchesToDraw, caseDef.primitiveType, caseDef.spacingMode, caseDef.usePoi… in BaseTestInstance()
681 …ultiplePatchReferencePrimitiveCount(m_caseDef.primitiveType, m_caseDef.spacingMode, usePointMode, … in draw()
1022 …addDefaultPrograms(programCollection, m_caseDef.primitiveType, m_caseDef.spacingMode, WINDING_USAG… in initPrograms()
[all …]
DvktTessellationCommonEdgeTests.cpp69 SpacingMode spacingMode; member
197 << getSpacingModeShaderName(caseDef.spacingMode) << ") in;\n" in initPrograms()
460 std::string getCaseName (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, cons… in getCaseName() argument
463 …tr << getTessPrimitiveTypeShaderName(primitiveType) << "_" << getSpacingModeShaderName(spacingMode) in getCaseName()
487 const SpacingMode spacingMode = static_cast<SpacingMode>(spacingModeNdx); in createCommonEdgeTests() local
488 const CaseDefinition caseDef = { primitiveType, spacingMode, caseType }; in createCommonEdgeTests()
490 …addFunctionCaseWithPrograms(group.get(), getCaseName(primitiveType, spacingMode, caseType), "", in… in createCommonEdgeTests()
DvktTessellationPrimitiveDiscardTests.cpp59 SpacingMode spacingMode; member
73 caseDef.spacingMode == vkt::tessellation::SPACINGMODE_FRACTIONAL_ODD); in lessThanOneInnerLevelsDefined()
248 const SpacingMode spacingMode, in expectedVertexCount() argument
253 …count += referenceVertexCount(primitiveType, spacingMode, true, &attributes[numAttribsPerPrimitive… in expectedVertexCount()
326 << getSpacingModeShaderName(caseDef.spacingMode) << ", " in initPrograms()
391 …unt(numPrimitives, numAttribsPerPrimitive, caseDef.primitiveType, caseDef.spacingMode, attributes); in test()
624 + "_" + getSpacingModeShaderName(caseDef.spacingMode) in createPrimitiveDiscardTests()
DvktTessellationUtil.hpp228 std::vector<tcu::Vec3> generateReferenceTriangleTessCoords (const SpacingMode spacingMode, cons…
229 std::vector<tcu::Vec3> generateReferenceQuadTessCoords (const SpacingMode spacingMode, const i…
231 …exCount (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool use…
232 …veCount (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool use…
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fTessellationTests.cpp661 static vector<Vec3> generateReferenceTriangleTessCoords (SpacingMode spacingMode, int inner, int ou… in generateReferenceTriangleTessCoords() argument
675 …return generateReferenceTriangleTessCoords(spacingMode, spacingMode == SPACINGMODE_FRACTIONAL_ODD … in generateReferenceTriangleTessCoords()
715 static int referenceTriangleNonPointModePrimitiveCount (SpacingMode spacingMode, int inner, int out… in referenceTriangleNonPointModePrimitiveCount() argument
722 …return referenceTriangleNonPointModePrimitiveCount(spacingMode, spacingMode == SPACINGMODE_FRACTIO… in referenceTriangleNonPointModePrimitiveCount()
745 static vector<Vec3> generateReferenceQuadTessCoords (SpacingMode spacingMode, int inner0, int inner… in generateReferenceQuadTessCoords() argument
760 …return generateReferenceQuadTessCoords(spacingMode, inner0 > 1 ? inner0 : spacingMode == SPACINGMO… in generateReferenceQuadTessCoords()
761 inner1 > 1 ? inner1 : spacingMode == SPACINGMODE_FRACTIONAL_ODD ? 3 : 2, in generateReferenceQuadTessCoords()
781 static int referenceQuadNonPointModePrimitiveCount (SpacingMode spacingMode, int inner0, int inner1… in referenceQuadNonPointModePrimitiveCount() argument
790 …return referenceQuadNonPointModePrimitiveCount(spacingMode, inner0 > 1 ? inner0 : spacingMode == S… in referenceQuadNonPointModePrimitiveCount()
791 inner1 > 1 ? inner1 : spacingMode == SPACINGMODE_FRACTIONAL_ODD ? 3 : 2, in referenceQuadNonPointModePrimitiveCount()
[all …]