Home
last modified time | relevance | path

Searched refs:numPatches (Results 1 - 7 of 7) sorted by relevance

/third_party/skia/src/gpu/tessellate/
H A DPatchWriter.cpp28 void PatchWriter::chopAndWriteQuads(float2 p0, float2 p1, float2 p2, int numPatches) { in chopAndWriteQuads() argument
31 MiddleOutPolygonTriangulator innerTriangulator(numPatches, to_skpoint(p0)); in chopAndWriteQuads()
32 for (; numPatches >= 3; numPatches -= 2) { in chopAndWriteQuads()
34 float4 T = float4(1,1,2,2) / numPatches; in chopAndWriteQuads()
51 if (numPatches == 2) { in chopAndWriteQuads()
63 SkASSERT(numPatches == 1); in chopAndWriteQuads()
72 void PatchWriter::chopAndWriteConics(float2 p0, float2 p1, float2 p2, float w, int numPatches) { in chopAndWriteConics() argument
75 MiddleOutPolygonTriangulator innerTriangulator(numPatches, to_skpoint(p0)); in chopAndWriteConics()
80 for (; numPatches > in chopAndWriteConics()
110 chopAndWriteCubics(float2 p0, float2 p1, float2 p2, float2 p3, int numPatches) chopAndWriteCubics() argument
[all...]
H A DPathCurveTessellator.cpp69 int numPatches = in writePatches() local
71 patchWriter.chopAndWriteQuads(p0, p1, p2, numPatches); in writePatches()
92 int numPatches = SkScalarCeilToInt(sqrtf(n2/maxSegments_pow2)); in writePatches() local
93 patchWriter.chopAndWriteConics(p0, p1, p2, *w, numPatches); in writePatches()
113 int numPatches = in writePatches() local
115 patchWriter.chopAndWriteCubics(p0, p1, p2, p3, numPatches); in writePatches()
H A DPathWedgeTessellator.cpp181 int numPatches = in writePatches() local
183 patchWriter.chopAndWriteQuads(p0, p1, p2, numPatches); in writePatches()
202 int numPatches = SkScalarCeilToInt(sqrtf(n2/maxSegments_pow2)); in writePatches() local
203 patchWriter.chopAndWriteConics(p0, p1, p2, *w, numPatches); in writePatches()
221 int numPatches = in writePatches() local
223 patchWriter.chopAndWriteCubics(p0, p1, p2, p3, numPatches); in writePatches()
H A DPatchWriter.h106 // Chops the given quadratic into 'numPatches' equal segments (in the parametric sense) and
110 void chopAndWriteQuads(float2 p0, float2 p1, float2 p2, int numPatches);
112 // Chops the given conic into 'numPatches' equal segments (in the parametric sense) and
116 void chopAndWriteConics(float2 p0, float2 p1, float2 p2, float w, int numPatches);
118 // Chops the given cubic into 'numPatches' equal segments (in the parametric sense) and
122 void chopAndWriteCubics(float2 p0, float2 p1, float2 p2, float2 p3, int numPatches);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/
H A DvktTessellationInvarianceTests.cpp492 std::vector<float> generateRandomPatchTessLevels (const int numPatches, const int constantOuterLevelIndex, const float constantOuterLevel, de::Random& rnd) in generateRandomPatchTessLevels() argument
494 std::vector<float> tessLevels(numPatches*NUM_TESS_LEVELS); in generateRandomPatchTessLevels()
496 for (int patchNdx = 0; patchNdx < numPatches; ++patchNdx) in generateRandomPatchTessLevels()
510 std::vector<float> generatePatchTessLevels (const int numPatches, const int constantOuterLevelIndex, const float constantOuterLevel) in generatePatchTessLevels() argument
513 return generateRandomPatchTessLevels(numPatches, constantOuterLevelIndex, constantOuterLevel, rnd); in generatePatchTessLevels()
516 int multiplePatchReferencePrimitiveCount (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool usePointMode, const float* levels, int numPatches) in multiplePatchReferencePrimitiveCount() argument
519 for (int patchNdx = 0; patchNdx < numPatches; ++patchNdx) in multiplePatchReferencePrimitiveCount()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/
H A DvktTessellationInvarianceTests.cpp482 std::vector<float> generateRandomPatchTessLevels (const int numPatches, const int constantOuterLevelIndex, const float constantOuterLevel, de::Random& rnd) in generateRandomPatchTessLevels() argument
484 std::vector<float> tessLevels(numPatches*NUM_TESS_LEVELS); in generateRandomPatchTessLevels()
486 for (int patchNdx = 0; patchNdx < numPatches; ++patchNdx) in generateRandomPatchTessLevels()
500 std::vector<float> generatePatchTessLevels (const int numPatches, const int constantOuterLevelIndex, const float constantOuterLevel) in generatePatchTessLevels() argument
503 return generateRandomPatchTessLevels(numPatches, constantOuterLevelIndex, constantOuterLevel, rnd); in generatePatchTessLevels()
506 int multiplePatchReferencePrimitiveCount (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool usePointMode, const float* levels, int numPatches) in multiplePatchReferencePrimitiveCount() argument
509 for (int patchNdx = 0; patchNdx < numPatches; ++patchNdx) in multiplePatchReferencePrimitiveCount()
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fTessellationTests.cpp998 static int multiplePatchReferenceVertexCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, bool usePointMode, const float* levels, int numPatches)
1001 for (int patchNdx = 0; patchNdx < numPatches; patchNdx++)
1006 vector<float> generateRandomPatchTessLevels (int numPatches, int constantOuterLevelIndex, float constantOuterLevel, de::Random& rnd)
1008 vector<float> tessLevels(numPatches*6);
1010 for (int patchNdx = 0; patchNdx < numPatches; patchNdx++)
3984 static vector<float> generatePatchTessLevels (int numPatches, int constantOuterLevelIndex, float constantOuterLevel);
3994 vector<float> InvariantOuterEdgeCase::generatePatchTessLevels (int numPatches, int constantOuterLevelIndex, float constantOuterLevel)
3997 return generateRandomPatchTessLevels(numPatches, constantOuterLevelIndex, constantOuterLevel, rnd);
4270 static vector<float> generatePatchTessLevels (int numPatches, int constantOuterLevelIndex, float constantOuterLevel);
4282 vector<float> SymmetricOuterEdgeCase::generatePatchTessLevels (int numPatches, in
[all...]

Completed in 16 milliseconds