Home
last modified time | relevance | path

Searched refs:vertexCount (Results 1 – 25 of 273) sorted by relevance

1234567891011

/third_party/flutter/skia/src/core/
DSkVertices.cpp30 Sizes(SkVertices::VertexMode mode, int vertexCount, int indexCount, bool hasTexs, in Sizes()
34 fVSize = safe.mul(vertexCount, sizeof(SkPoint)); in Sizes()
35 fTSize = hasTexs ? safe.mul(vertexCount, sizeof(SkPoint)) : 0; in Sizes()
36 fCSize = hasColors ? safe.mul(vertexCount, sizeof(SkColor)) : 0; in Sizes()
37 fBISize = hasBones ? safe.mul(vertexCount, sizeof(BoneIndices)) : 0; in Sizes()
38 fBWSize = hasBones ? safe.mul(vertexCount, sizeof(BoneWeights)) : 0; in Sizes()
48 numFanTris = vertexCount - 2; in Sizes()
51 if (vertexCount > (SkTo<int>(UINT16_MAX) + 1)) { in Sizes()
94 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder() argument
100 this->init(mode, vertexCount, indexCount, isVolatile, in Builder()
[all …]
DSkDraw_vertices.cpp160 void SkDraw::drawVertices(SkVertices::VertexMode vmode, int vertexCount, in drawVertices() argument
167 SkASSERT(0 == vertexCount || vertices); in drawVertices()
170 if (vertexCount < 3 || (indices && indexCount < 3) || fRC->isEmpty()) { in drawVertices()
214 SkPoint* deformed = outerAlloc.makeArray<SkPoint>(vertexCount); in drawVertices()
218 for (int i = 0; i < vertexCount; i ++) { in drawVertices()
246 worldTransform.mapPoints(deformed, vertices, vertexCount); in drawVertices()
253 SkPoint* devVerts = outerAlloc.makeArray<SkPoint>(vertexCount); in drawVertices()
254 fMatrix->mapPoints(devVerts, vertices, vertexCount); in drawVertices()
259 bounds.set(devVerts, vertexCount); in drawVertices()
265 VertState state(vertexCount, indices, indexCount); in drawVertices()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DDynamicPromotionPerfTest.cpp29 size_t vertexCount = 1024; member
88 const size_t vertexCount = GetParam().vertexCount; in initializeBenchmark() local
94 ASSERT_GE(static_cast<size_t>(std::numeric_limits<GLushort>::max()), vertexCount); in initializeBenchmark()
98 for (size_t index = 0; index < vertexCount; ++index) in initializeBenchmark()
115 GLsizeiptr elementArraySize = sizeof(GLushort) * vertexCount; in initializeBenchmark()
116 GLsizeiptr positionArraySize = sizeof(Vector2) * vertexCount; in initializeBenchmark()
117 GLsizeiptr colorArraySize = sizeof(Vector3) * vertexCount; in initializeBenchmark()
151 size_t vertexCount = GetParam().vertexCount; in drawBenchmark() local
156 glDrawElements(GL_TRIANGLES, static_cast<GLsizei>(vertexCount), GL_UNSIGNED_SHORT, nullptr); in drawBenchmark()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
DDynamicPromotionPerfTest.cpp29 size_t vertexCount = 1024; member
88 const size_t vertexCount = GetParam().vertexCount; in initializeBenchmark() local
94 ASSERT_GE(static_cast<size_t>(std::numeric_limits<GLushort>::max()), vertexCount); in initializeBenchmark()
98 for (size_t index = 0; index < vertexCount; ++index) in initializeBenchmark()
115 GLsizeiptr elementArraySize = sizeof(GLushort) * vertexCount; in initializeBenchmark()
116 GLsizeiptr positionArraySize = sizeof(Vector2) * vertexCount; in initializeBenchmark()
117 GLsizeiptr colorArraySize = sizeof(Vector3) * vertexCount; in initializeBenchmark()
151 size_t vertexCount = GetParam().vertexCount; in drawBenchmark() local
156 glDrawElements(GL_TRIANGLES, static_cast<GLsizei>(vertexCount), GL_UNSIGNED_SHORT, nullptr); in drawBenchmark()
/third_party/flutter/skia/include/core/
DSkVertices.h112 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
122 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
130 vertexCount,
141 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
149 vertexCount,
160 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
165 return MakeCopy(mode, vertexCount, positions, texs, colors, nullptr, nullptr, isVolatile);
178 Builder(VertexMode mode, int vertexCount, int indexCount, uint32_t flags);
183 int vertexCount() const;
197 Builder(VertexMode mode, int vertexCount, int indexCount, bool isVolatile, const Sizes&);
[all …]
/third_party/flutter/skia/src/gpu/
DGrMesh.h41 void setNonIndexedNonInstanced(int vertexCount);
45 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
49 int vertexCount);
58 virtual void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
67 int vertexCount, int baseVertex,
147 inline void GrMesh::setNonIndexedNonInstanced(int vertexCount) { in setNonIndexedNonInstanced() argument
150 fNonIndexNonInstanceData.fVertexCount = vertexCount; in setNonIndexedNonInstanced()
172 int vertexCount, int patternRepeatCount, in setIndexedPatterned() argument
176 SkASSERT(vertexCount >= 1); in setIndexedPatterned()
183 fPatternData.fVertexCount = vertexCount; in setIndexedPatterned()
[all …]
/third_party/flutter/skia/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp199 void recordDraw(Target* target, sk_sp<const GrGeometryProcessor> gp, int vertexCount, in recordDraw() argument
201 if (vertexCount == 0 || indexCount == 0) { in recordDraw()
206 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in recordDraw()
212 memcpy(verts, vertices, vertexCount * vertexStride); in recordDraw()
223 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in recordDraw()
244 int64_t vertexCount = 0; in onPrepareDraws() local
260 if (vertexCount + currentVertices > static_cast<int>(UINT16_MAX)) { in onPrepareDraws()
264 target, gp, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
265 vertexCount = 0; in onPrepareDraws()
268 if (vertexCount + currentVertices > maxVertices) { in onPrepareDraws()
[all …]
/third_party/skia/src/gpu/ops/
DAALinearizingConvexPathRenderer.cpp177 int vertexCount, size_t vertexStride, void* vertices, in recordDraw() argument
179 if (vertexCount == 0 || indexCount == 0) { in recordDraw()
184 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in recordDraw()
190 memcpy(verts, vertices, vertexCount * vertexStride); in recordDraw()
201 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in recordDraw()
217 int64_t vertexCount = 0; in onPrepareDraws() local
233 if (vertexCount + currentVertices > static_cast<int>(UINT16_MAX)) { in onPrepareDraws()
236 this->recordDraw(target, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
237 vertexCount = 0; in onPrepareDraws()
240 if (vertexCount + currentVertices > maxVertices) { in onPrepareDraws()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/
DConvertIndirectLineLoop.comp48 // uint32_t vertexCount;
67 uint vertexCount = indirectBuf[indirectBufferOffsetDiv4];
74 for (uint i = 0; i < vertexCount; i++)
78 if (vertexCount > 1)
80 dstData[dstDataOffsetDiv4 + vertexCount] = firstVertex;
81 vertexCount++;
85 indexIndirectBuf[indexIndirectBufOffsetDiv4] = vertexCount;
/third_party/skia/experimental/graphite/src/
DCommandBuffer.h70 void draw(PrimitiveType type, unsigned int baseVertex, unsigned int vertexCount) { in draw() argument
71 this->onDraw(type, baseVertex, vertexCount); in draw()
79 void drawInstanced(PrimitiveType type, unsigned int baseVertex, unsigned int vertexCount, in drawInstanced() argument
81 this->onDrawInstanced(type, baseVertex, vertexCount, baseInstance, instanceCount); in drawInstanced()
115 virtual void onDraw(PrimitiveType type, unsigned int baseVertex, unsigned int vertexCount) = 0;
119 unsigned int baseVertex, unsigned int vertexCount,
/third_party/skia/src/core/
DSkDraw_vertices.cpp314 const int vertexCount = info.vertexCount(); in drawFixedVertices() local
353 VertState state(vertexCount, indices, indexCount); in drawFixedVertices()
361 dstColors = convert_colors(colors, vertexCount, fDst.colorSpace(), outerAlloc); in drawFixedVertices()
362 triShader = outerAlloc->make<SkTriColorShader>(compute_is_opaque(colors, vertexCount), in drawFixedVertices()
465 VertState state(vertexCount, indices, indexCount); in drawFixedVertices()
480 colorShader = outerAlloc->make<SkTriColorShader>(compute_is_opaque(colors, vertexCount), in drawFixedVertices()
482 dstColors = convert_colors(colors, vertexCount, fDst.colorSpace(), outerAlloc); in drawFixedVertices()
518 const int vertexCount = info.vertexCount(); in drawVertices() local
522 if (vertexCount < 3 || (indexCount > 0 && indexCount < 3) || fRC->isEmpty()) { in drawVertices()
541 dev3 = outerAlloc.makeArray<SkPoint3>(vertexCount); in drawVertices()
[all …]
DSkVertices.cpp98 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder() argument
102 this->init({mode, vertexCount, indexCount, hasTexs, hasColors}); in Builder()
199 sk_sp<SkVertices> SkVertices::MakeCopy(VertexMode mode, int vertexCount, in MakeCopy() argument
203 auto desc = Desc{mode, vertexCount, indexCount, !!texs, !!colors}; in MakeCopy()
272 const int vertexCount = safe.checkGE(buffer.readInt(), 0); in Decode() local
286 const SkVertices::Desc desc{mode, vertexCount, indexCount, hasTexs, hasColors}; in Decode()
319 if (indices[i] >= (unsigned)vertexCount) { in Decode()
/third_party/skia/include/core/
DSkVertices.h38 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
45 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount, in MakeCopy() argument
50 vertexCount, in MakeCopy()
64 Builder(VertexMode mode, int vertexCount, int indexCount, uint32_t flags);
/third_party/skia/third_party/externals/swiftshader/src/Device/
DContext.cpp25 uint32_t ComputePrimitiveCount(VkPrimitiveTopology topology, uint32_t vertexCount) in ComputePrimitiveCount() argument
30 return vertexCount; in ComputePrimitiveCount()
32 return vertexCount / 2; in ComputePrimitiveCount()
34 return std::max<uint32_t>(vertexCount, 1) - 1; in ComputePrimitiveCount()
36 return vertexCount / 3; in ComputePrimitiveCount()
38 return std::max<uint32_t>(vertexCount, 2) - 2; in ComputePrimitiveCount()
40 return std::max<uint32_t>(vertexCount, 2) - 2; in ComputePrimitiveCount()
56 uint32_t vertexCount = 0; in ProcessPrimitiveRestart() local
62 if(vertexCount > 0) in ProcessPrimitiveRestart()
64 uint32_t primitiveCount = ComputePrimitiveCount(topology, vertexCount); in ProcessPrimitiveRestart()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DVulkanSecondaryCommandBuffer.h109 void draw(uint32_t vertexCount,
113 void draw(uint32_t vertexCount, uint32_t firstVertex);
114 void drawInstanced(uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex);
115 void drawInstancedBaseInstance(uint32_t vertexCount,
348 ANGLE_INLINE void VulkanSecondaryCommandBuffer::draw(uint32_t vertexCount, in draw() argument
355 CommandBuffer::draw(vertexCount, instanceCount, firstVertex, firstInstance); in draw()
358 ANGLE_INLINE void VulkanSecondaryCommandBuffer::draw(uint32_t vertexCount, uint32_t firstVertex) in draw() argument
362 CommandBuffer::draw(vertexCount, 1, firstVertex, 0); in draw()
365 ANGLE_INLINE void VulkanSecondaryCommandBuffer::drawInstanced(uint32_t vertexCount, in drawInstanced() argument
371 CommandBuffer::draw(vertexCount, instanceCount, firstVertex, 0); in drawInstanced()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DAttributeLayoutTest.cpp286 virtual void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) = 0;
429 void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) override in Draw() argument
431 glDrawArrays(GL_TRIANGLES, firstVertex, vertexCount); in Draw()
437 void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) override in Draw() argument
440 glDrawElements(GL_TRIANGLES, vertexCount, GL_UNSIGNED_SHORT, indices); in Draw()
446 void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) override in Draw() argument
449 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(*mIndices) * vertexCount, indices, in Draw()
451 glDrawElements(GL_TRIANGLES, vertexCount, GL_UNSIGNED_SHORT, nullptr); in Draw()
/third_party/skia/src/gpu/d3d/
DGrD3DOpsRenderPass.h48 void onDraw(int vertexCount, int baseVertex) override { in onDraw() argument
49 this->onDrawInstanced(1, 0, vertexCount, baseVertex); in onDraw()
55 void onDrawInstanced(int instanceCount, int baseInstance, int vertexCount,
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DAttributeLayoutTest.cpp286 virtual void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) = 0;
429 void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) override in Draw() argument
431 glDrawArrays(GL_TRIANGLES, firstVertex, vertexCount); in Draw()
437 void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) override in Draw() argument
440 glDrawElements(GL_TRIANGLES, vertexCount, GL_UNSIGNED_SHORT, indices); in Draw()
446 void Draw(int firstVertex, unsigned vertexCount, const GLushort *indices) override in Draw() argument
449 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(*mIndices) * vertexCount, indices, in Draw()
451 glDrawElements(GL_TRIANGLES, vertexCount, GL_UNSIGNED_SHORT, nullptr); in Draw()
/third_party/skia/experimental/graphite/src/mtl/
DMtlRenderCommandEncoder.h184 NSUInteger vertexCount) { in drawPrimitives() argument
187 vertexCount:vertexCount]; in drawPrimitives()
190 NSUInteger vertexCount, NSUInteger instanceCount, in drawPrimitives() argument
194 vertexCount:vertexCount in drawPrimitives()
/third_party/skia/src/gpu/mtl/
DGrMtlRenderCommandEncoder.h180 NSUInteger vertexCount) { in drawPrimitives() argument
183 vertexCount:vertexCount]; in drawPrimitives()
186 NSUInteger vertexCount, NSUInteger instanceCount, in drawPrimitives() argument
190 vertexCount:vertexCount in drawPrimitives()
/third_party/skia/src/gpu/tessellate/
DPathCurveTessellator.cpp137 int vertexCount = bufferSize / sizeof(SkPoint); in WriteFixedVertexBuffer() local
138 SkASSERT(vertexCount > 3); in WriteFixedVertexBuffer()
139 SkDEBUGCODE(VertexWriter end = vertexWriter.makeOffset(vertexCount * sizeof(SkPoint));) in WriteFixedVertexBuffer()
154 int maxResolveLevel = SkPrevLog2(vertexCount - 1); in WriteFixedVertexBuffer()
155 SkASSERT((1 << maxResolveLevel) + 1 == vertexCount); in WriteFixedVertexBuffer()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/geometry/
DvktGeometryInputGeometryShaderTests.cpp286 for (int vertexCount = 0; vertexCount <= 12; ++vertexCount) in createInputGeometryShaderTests() local
288 const string name = "vertex_count_" + de::toString(vertexCount); in createInputGeometryShaderTests()
291 …acencyGroup->addChild(new TriangleStripAdjacencyVertexCountTest(testCtx, primitives, vertexCount)); in createInputGeometryShaderTests()
/third_party/skia/src/gpu/
DGrOpsRenderPass.h85 void draw(int vertexCount, int baseVertex);
90 void drawInstanced(int instanceCount, int baseInstance, int vertexCount, int baseVertex);
186 virtual void onDraw(int vertexCount, int baseVertex) = 0;
189 virtual void onDrawInstanced(int instanceCount, int baseInstance, int vertexCount,
DGrSimpleMesh.h22 void set(sk_sp<const GrBuffer> vertexBuffer, int vertexCount, int baseVertex);
47 inline void GrSimpleMesh::set(sk_sp<const GrBuffer> vertexBuffer, int vertexCount, int baseVertex) { in set() argument
51 fVertexCount = vertexCount; in set()
/third_party/skia/third_party/externals/tint/test/bug/tint/
D926.wgsl.expected.wgsl3 vertexCount : atomic<u32>;
12 let firstVertex : u32 = atomicAdd(&(drawOut.vertexCount), cubeVerts);

1234567891011