/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/ |
D | vktTessellationUtil.cpp | 446 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 …]
|
D | vktTessellationFractionalSpacingTests.cpp | 104 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 …]
|
D | vktTessellationMiscDrawTests.cpp | 63 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 …]
|
D | vktTessellationCoordinatesTests.cpp | 65 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 …]
|
D | vktTessellationInvarianceTests.cpp | 239 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 …]
|
D | vktTessellationCommonEdgeTests.cpp | 69 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()
|
D | vktTessellationPrimitiveDiscardTests.cpp | 59 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()
|
D | vktTessellationUtil.hpp | 228 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/ |
D | es31fTessellationTests.cpp | 661 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 …]
|