Home
last modified time | relevance | path

Searched refs:tessLevel (Results 1 - 14 of 14) sorted by relevance

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/
H A DvktTessellationFractionalSpacingTests.cpp96 float tessLevel; member
100 LineData (float lev, float len, int loc) : tessLevel(lev), additionalSegmentLength(len), additionalSegmentLocation(loc) {} in LineData()
115 * with outer levels { 1.0, tessLevel }) with a given fractional spacing
133 const float tessLevel, in verifyFractionalSpacingSingle()
140 const float clampedLevel = getClampedTessLevel(spacingMode, tessLevel); in verifyFractionalSpacingSingle()
143 std::string failNote = "Note: tessellation level is " + de::toString(tessLevel) + "\nNote: sorted coordinates are:\n " + containerStr(sortedCoords); in verifyFractionalSpacingSingle()
289 const std::vector<LineData> lineDatasSortedByLevel = sorted(lineDatas, memberPred<std::less>(&LineData::tessLevel));
301 if (getClampedTessLevel(spacingMode, curData.tessLevel) == getClampedTessLevel(spacingMode, prevData.tessLevel) &&
305 << tcu::TestLog::Message << "Note: tessellation levels are " << curData.tessLevel << " an
131 verifyFractionalSpacingSingle(tcu::TestLog& log, const SpacingMode spacingMode, const float tessLevel, const std::vector<float>& coords, float* const pOutAdditionalSegmentLength, int* const pOutAdditionalSegmentLocation) verifyFractionalSpacingSingle() argument
[all...]
H A DvktTessellationUtil.cpp371 float getClampedTessLevel (const SpacingMode mode, const float tessLevel) in getClampedTessLevel() argument
375 case SPACINGMODE_EQUAL: return de::max(1.0f, tessLevel); in getClampedTessLevel()
376 case SPACINGMODE_FRACTIONAL_ODD: return de::max(1.0f, tessLevel); in getClampedTessLevel()
377 case SPACINGMODE_FRACTIONAL_EVEN: return de::max(2.0f, tessLevel); in getClampedTessLevel()
404 int getClampedRoundedTessLevel (const SpacingMode mode, const float tessLevel) in getClampedRoundedTessLevel() argument
406 return getRoundedTessLevel(mode, getClampedTessLevel(mode, tessLevel)); in getClampedRoundedTessLevel()
H A DvktTessellationUtil.hpp160 float getClampedTessLevel (const SpacingMode mode, const float tessLevel);
162 int getClampedRoundedTessLevel (const SpacingMode mode, const float tessLevel);
H A DvktTessellationInvarianceTests.cpp532 void logOuterTessellationLevel (tcu::TestLog& log, const float tessLevel, const OuterEdgeDescription& edgeDesc) in logOuterTessellationLevel() argument
535 << "Testing with outer tessellation level " << tessLevel << " for the " << edgeDesc.description() << " edge, and with various levels for other edges, and with all programs" in logOuterTessellationLevel()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/
H A DvktTessellationFractionalSpacingTests.cpp96 float tessLevel; member
100 LineData (float lev, float len, int loc) : tessLevel(lev), additionalSegmentLength(len), additionalSegmentLocation(loc) {} in LineData()
115 * with outer levels { 1.0, tessLevel }) with a given fractional spacing
133 const float tessLevel, in verifyFractionalSpacingSingle()
140 const float clampedLevel = getClampedTessLevel(spacingMode, tessLevel); in verifyFractionalSpacingSingle()
143 std::string failNote = "Note: tessellation level is " + de::toString(tessLevel) + "\nNote: sorted coordinates are:\n " + containerStr(sortedCoords); in verifyFractionalSpacingSingle()
289 const std::vector<LineData> lineDatasSortedByLevel = sorted(lineDatas, memberPred<std::less>(&LineData::tessLevel));
301 if (getClampedTessLevel(spacingMode, curData.tessLevel) == getClampedTessLevel(spacingMode, prevData.tessLevel) &&
305 << tcu::TestLog::Message << "Note: tessellation levels are " << curData.tessLevel << " an
131 verifyFractionalSpacingSingle(tcu::TestLog& log, const SpacingMode spacingMode, const float tessLevel, const std::vector<float>& coords, float* const pOutAdditionalSegmentLength, int* const pOutAdditionalSegmentLocation) verifyFractionalSpacingSingle() argument
[all...]
H A DvktTessellationUtil.cpp379 float getClampedTessLevel (const SpacingMode mode, const float tessLevel) in getClampedTessLevel() argument
383 case SPACINGMODE_EQUAL: return de::max(1.0f, tessLevel); in getClampedTessLevel()
384 case SPACINGMODE_FRACTIONAL_ODD: return de::max(1.0f, tessLevel); in getClampedTessLevel()
385 case SPACINGMODE_FRACTIONAL_EVEN: return de::max(2.0f, tessLevel); in getClampedTessLevel()
412 int getClampedRoundedTessLevel (const SpacingMode mode, const float tessLevel) in getClampedRoundedTessLevel() argument
414 return getRoundedTessLevel(mode, getClampedTessLevel(mode, tessLevel)); in getClampedRoundedTessLevel()
H A DvktTessellationUtil.hpp161 float getClampedTessLevel (const SpacingMode mode, const float tessLevel);
163 int getClampedRoundedTessLevel (const SpacingMode mode, const float tessLevel);
H A DvktTessellationInvarianceTests.cpp522 void logOuterTessellationLevel (tcu::TestLog& log, const float tessLevel, const OuterEdgeDescription& edgeDesc) in logOuterTessellationLevel() argument
525 << "Testing with outer tessellation level " << tessLevel << " for the " << edgeDesc.description() << " edge, and with various levels for other edges, and with all programs" in logOuterTessellationLevel()
/third_party/vk-gl-cts/modules/gles31/stress/
H A Des31sTessellationGeometryInteractionTests.cpp83 std::string getTessellationControlSource (int tessLevel);
84 std::string getTessellationEvaluationSource (int tessLevel);
447 std::string GridRenderCase::getTessellationControlSource (int tessLevel) in getTessellationControlSource() argument
458 " gl_TessLevelOuter[0] = " << tessLevel << ".0;\n" in getTessellationControlSource()
459 " gl_TessLevelOuter[1] = " << tessLevel << ".0;\n" in getTessellationControlSource()
460 " gl_TessLevelOuter[2] = " << tessLevel << ".0;\n" in getTessellationControlSource()
461 " gl_TessLevelOuter[3] = " << tessLevel << ".0;\n" in getTessellationControlSource()
462 " gl_TessLevelInner[0] = " << tessLevel << ".0;\n" in getTessellationControlSource()
463 " gl_TessLevelInner[1] = " << tessLevel << ".0;\n" in getTessellationControlSource() local
469 std::string GridRenderCase::getTessellationEvaluationSource (int tessLevel) in getTessellationEvaluationSource() argument
485 " v_tessellationGridPosition = ivec2(round(gl_TessCoord.xy * float(" << tessLevel << ")));\\n" getTessellationEvaluationSource() local
[all...]
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fTessellationGeometryInteractionTests.cpp2156 std::string getTessellationControlSource (int tessLevel);
2157 std::string getTessellationEvaluationSource (int tessLevel);
2158 std::string getGeometryShaderSource (int numPrimitives, int numInstances, int tessLevel);
2610 std::string GridRenderCase::getTessellationControlSource (int tessLevel)
2621 " gl_TessLevelOuter[0] = " << tessLevel << ".0;\n"
2622 " gl_TessLevelOuter[1] = " << tessLevel << ".0;\n"
2623 " gl_TessLevelOuter[2] = " << tessLevel << ".0;\n"
2624 " gl_TessLevelOuter[3] = " << tessLevel << ".0;\n"
2625 " gl_TessLevelInner[0] = " << tessLevel << ".0;\n"
2626 " gl_TessLevelInner[1] = " << tessLevel << "
[all...]
H A Des31fTessellationTests.cpp564 static inline float getClampedTessLevel (SpacingMode mode, float tessLevel)
568 case SPACINGMODE_EQUAL: return de::max(1.0f, tessLevel);
569 case SPACINGMODE_FRACTIONAL_ODD: return de::max(1.0f, tessLevel);
570 case SPACINGMODE_FRACTIONAL_EVEN: return de::max(2.0f, tessLevel);
594 static int getClampedRoundedTessLevel (SpacingMode mode, float tessLevel)
596 return getRoundedTessLevel(mode, getClampedTessLevel(mode, tessLevel));
1211 * with outer levels { 1.0, tessLevel }) with a given fractional spacing
1227 static bool verifyFractionalSpacingSingle (TestLog& log, SpacingMode spacingMode, float tessLevel, const vector<float>& coords, float& additionalSegmentLengthDst, int& additionalSegmentLocationDst)
1233 const float clampedLevel = getClampedTessLevel(spacingMode, tessLevel);
1236 string failNote = "Note: tessellation level is " + de::toString(tessLevel)
[all...]
H A Des31fPrimitiveBoundingBoxTests.cpp1368 const glw::GLfloat tessLevel = 2.8f; // will be rounded up
1372 m_testCtx.getLog() << tcu::TestLog::Message << "u_tessellationLevel = " << tessLevel << tcu::TestLog::EndMessage;
1374 gl.uniform1f(tessLevelPos, tessLevel);
1880 const glw::GLfloat tessLevel = 2.8f; // will be rounded up
1884 m_testCtx.getLog() << tcu::TestLog::Message << "u_tessellationLevel = " << tessLevel << tcu::TestLog::EndMessage;
1886 gl.uniform1f(tessLevelPos, tessLevel);
2889 const glw::GLfloat tessLevel = 0.8f; // will be rounded up
2893 m_testCtx.getLog() << tcu::TestLog::Message << "u_tessellationLevel = " << tessLevel << tcu::TestLog::EndMessage;
2895 gl.uniform1f(tessLevelPos, tessLevel);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/device_group/
H A DvktDeviceGroupRendering.cpp402 const float tessLevel = 16.0f; in iterate() local
734 (VkDeviceSize)sizeof(tessLevel), // size in iterate()
745 deMemcpy(sboBufPtr, &tessLevel, sizeof(tessLevel)); in iterate()
755 (VkDeviceSize)sizeof(tessLevel), // size in iterate()
996 (VkDeviceSize)sizeof(tessLevel) in iterate()
1370 sizeof(tessLevel) // VkDeviceSize size; in iterate()
1383 sizeof(tessLevel) // VkDeviceSize size; in iterate()
1387 VkBufferCopy sboBufferCopy = { 0u, 0u, sizeof(tessLevel) }; in iterate()
1808 "layout(set=0, binding=1) buffer tessLevel { \ in initPrograms()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/device_group/
H A DvktDeviceGroupRendering.cpp402 const float tessLevel = 16.0f; in iterate() local
734 (VkDeviceSize)sizeof(tessLevel), // size in iterate()
745 deMemcpy(sboBufPtr, &tessLevel, sizeof(tessLevel)); in iterate()
755 (VkDeviceSize)sizeof(tessLevel), // size in iterate()
996 (VkDeviceSize)sizeof(tessLevel) in iterate()
1370 sizeof(tessLevel) // VkDeviceSize size; in iterate()
1383 sizeof(tessLevel) // VkDeviceSize size; in iterate()
1387 VkBufferCopy sboBufferCopy = { 0u, 0u, sizeof(tessLevel) }; in iterate()
1809 "layout(set=0, binding=1) buffer tessLevel { \ in initPrograms()
[all...]

Completed in 30 milliseconds