Home
last modified time | relevance | path

Searched refs:indexCount (Results 1 – 25 of 232) sorted by relevance

12345678910

/third_party/flutter/skia/src/core/
DSkVertices.cpp30 Sizes(SkVertices::VertexMode mode, int vertexCount, int indexCount, bool hasTexs, in Sizes()
41 fISize = safe.mul(indexCount, sizeof(uint16_t)); in Sizes()
44 if (indexCount) { in Sizes()
46 numFanTris = indexCount - 2; in Sizes()
94 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder() argument
100 this->init(mode, vertexCount, indexCount, isVolatile, in Builder()
101 SkVertices::Sizes(mode, vertexCount, indexCount, hasTexs, hasColors, hasBones)); in Builder()
104 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, bool isVolatile, in Builder() argument
106 this->init(mode, vertexCount, indexCount, isVolatile, sizes); in Builder()
109 void SkVertices::Builder::init(VertexMode mode, int vertexCount, int indexCount, bool isVolatile, in init() argument
[all …]
/third_party/skia/src/gpu/
DGrSimpleMesh.h23 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
26 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount,
56 inline void GrSimpleMesh::setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, in setIndexed() argument
61 SkASSERT(indexCount >= 1); in setIndexed()
66 fIndexCount = indexCount; in setIndexed()
78 sk_sp<const GrBuffer> indexBuffer, int indexCount, int patternRepeatCount, in setIndexedPatterned() argument
82 SkASSERT(indexCount >= 1); in setIndexedPatterned()
88 fIndexCount = indexCount; in setIndexedPatterned()
DGrOpsRenderPass.h86 void drawIndexed(int indexCount, int baseIndex, uint16_t minIndexValue, uint16_t maxIndexValue,
93 void drawIndexedInstanced(int indexCount, int baseIndex, int instanceCount, int baseInstance,
187 virtual void onDrawIndexed(int indexCount, int baseIndex, uint16_t minIndexValue,
191 virtual void onDrawIndexedInstanced(int indexCount, int baseIndex, int instanceCount,
DGrOpFlushState.h134 uint16_t* makeIndexSpace(int indexCount, sk_sp<const GrBuffer>*, int* startIndex) final;
150 void putBackIndices(int indexCount) final;
237 void drawIndexed(int indexCount, int baseIndex, uint16_t minIndexValue, uint16_t maxIndexValue, in drawIndexed() argument
239 fOpsRenderPass->drawIndexed(indexCount, baseIndex, minIndexValue, maxIndexValue, in drawIndexed()
245 void drawIndexedInstanced(int indexCount, int baseIndex, int instanceCount, int baseInstance, in drawIndexedInstanced() argument
247 fOpsRenderPass->drawIndexedInstanced(indexCount, baseIndex, instanceCount, baseInstance, in drawIndexedInstanced()
/third_party/flutter/skia/src/gpu/
DGrMesh.h43 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
45 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
50 void setIndexedInstanced(sk_sp<const GrBuffer> indexBuffer, int indexCount,
62 int indexCount, int baseIndex, uint16_t minIndexValue,
72 int indexCount, int baseIndex,
154 inline void GrMesh::setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex, in setIndexed() argument
158 SkASSERT(indexCount >= 1); in setIndexed()
163 fIndexData.fIndexCount = indexCount; in setIndexed()
171 inline void GrMesh::setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, in setIndexedPatterned() argument
175 SkASSERT(indexCount >= 1); in setIndexedPatterned()
[all …]
/third_party/flutter/skia/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp200 size_t vertexStride, void* vertices, int indexCount, uint16_t* indices) const { in recordDraw() argument
201 if (vertexCount == 0 || indexCount == 0) { in recordDraw()
216 uint16_t* idxs = target->makeIndexSpace(indexCount, &indexBuffer, &firstIndex); in recordDraw()
221 memcpy(idxs, indices, indexCount * sizeof(uint16_t)); in recordDraw()
223 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in recordDraw()
245 int64_t indexCount = 0; in onPrepareDraws() local
264 target, gp, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
266 indexCount = 0; in onPrepareDraws()
278 if (indexCount + currentIndices > maxIndices) { in onPrepareDraws()
279 maxIndices = SkTMax(indexCount + currentIndices, maxIndices * 2); in onPrepareDraws()
[all …]
/third_party/flutter/skia/include/core/
DSkVertices.h118 int indexCount,
145 int indexCount,
155 indexCount,
178 Builder(VertexMode mode, int vertexCount, int indexCount, uint32_t flags);
184 int indexCount() const;
197 Builder(VertexMode mode, int vertexCount, int indexCount, bool isVolatile, const Sizes&);
199 void init(VertexMode mode, int vertexCount, int indexCount, bool isVolatile, const Sizes&);
227 int indexCount() const { return fIndexCnt; } in indexCount() function
/third_party/skia/src/gpu/ops/
DAALinearizingConvexPathRenderer.cpp178 int indexCount, uint16_t* indices) { in recordDraw() argument
179 if (vertexCount == 0 || indexCount == 0) { in recordDraw()
194 uint16_t* idxs = target->makeIndexSpace(indexCount, &indexBuffer, &firstIndex); in recordDraw()
199 memcpy(idxs, indices, indexCount * sizeof(uint16_t)); in recordDraw()
201 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in recordDraw()
218 int64_t indexCount = 0; in onPrepareDraws() local
236 this->recordDraw(target, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
238 indexCount = 0; in onPrepareDraws()
250 if (indexCount + currentIndices > maxIndices) { in onPrepareDraws()
251 maxIndices = std::max(indexCount + currentIndices, maxIndices * 2); in onPrepareDraws()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DVulkanSecondaryCommandBuffer.h119 void drawIndexed(uint32_t indexCount,
124 void drawIndexed(uint32_t indexCount);
125 void drawIndexedBaseVertex(uint32_t indexCount, uint32_t vertexOffset);
126 void drawIndexedInstanced(uint32_t indexCount, uint32_t instanceCount);
127 void drawIndexedInstancedBaseVertex(uint32_t indexCount,
130 void drawIndexedInstancedBaseVertexBaseInstance(uint32_t indexCount,
384 ANGLE_INLINE void VulkanSecondaryCommandBuffer::drawIndexed(uint32_t indexCount, in drawIndexed() argument
392 CommandBuffer::drawIndexed(indexCount, instanceCount, firstIndex, vertexOffset, firstInstance); in drawIndexed()
395 ANGLE_INLINE void VulkanSecondaryCommandBuffer::drawIndexed(uint32_t indexCount) in drawIndexed() argument
399 CommandBuffer::drawIndexed(indexCount, 1, 0, 0, 0); in drawIndexed()
[all …]
DSecondaryCommandBuffer.h251 uint32_t indexCount; member
257 uint32_t indexCount; member
273 uint32_t indexCount; member
280 uint32_t indexCount; member
288 uint32_t indexCount; member
593 void drawIndexed(uint32_t indexCount);
594 void drawIndexedBaseVertex(uint32_t indexCount, uint32_t vertexOffset);
599 void drawIndexedInstanced(uint32_t indexCount, uint32_t instanceCount);
600 void drawIndexedInstancedBaseVertex(uint32_t indexCount,
603 void drawIndexedInstancedBaseVertexBaseInstance(uint32_t indexCount,
[all …]
/third_party/skia/experimental/graphite/src/
DCommandBuffer.h74 void drawIndexed(PrimitiveType type, unsigned int baseIndex, unsigned int indexCount, in drawIndexed() argument
76 this->onDrawIndexed(type, baseIndex, indexCount, baseVertex); in drawIndexed()
84 void drawIndexedInstanced(PrimitiveType type, unsigned int baseIndex, unsigned int indexCount, in drawIndexedInstanced() argument
87 this->onDrawIndexedInstanced(type, baseIndex, indexCount, baseVertex, baseInstance, in drawIndexedInstanced()
116 virtual void onDrawIndexed(PrimitiveType type, unsigned int baseIndex, unsigned int indexCount,
122 unsigned int indexCount, unsigned int baseVertex,
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DDrawIndexedTests.cpp77 void Test(uint32_t indexCount, in Test() argument
86 TestImplementation(indexCount, instanceCount, firstIndex, baseVertex, firstInstance, in Test()
90 void TestZeroSizedIndexBufferDraw(uint32_t indexCount, in TestZeroSizedIndexBufferDraw() argument
94 TestImplementation(indexCount, 1, firstIndex, 0, 0, 0, zeroSizedIndexBuffer, in TestZeroSizedIndexBufferDraw()
98 void TestImplementation(uint32_t indexCount, in TestImplementation() argument
113 pass.DrawIndexed(indexCount, instanceCount, firstIndex, baseVertex, firstInstance); in TestImplementation()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/
Drenderer_utils.h320 uint32_t LineLoopRestartIndexCountHelper(GLsizei indexCount, const uint8_t *srcPtr) in LineLoopRestartIndexCountHelper() argument
328 for (GLsizei curIndex = 0; curIndex < indexCount; curIndex++) in LineLoopRestartIndexCountHelper()
344 if (indexCount > loopStartIndex) in LineLoopRestartIndexCountHelper()
352 GLsizei indexCount, in GetLineLoopWithRestartIndexCount() argument
358 return LineLoopRestartIndexCountHelper<uint8_t>(indexCount, srcPtr); in GetLineLoopWithRestartIndexCount()
360 return LineLoopRestartIndexCountHelper<uint16_t>(indexCount, srcPtr); in GetLineLoopWithRestartIndexCount()
362 return LineLoopRestartIndexCountHelper<uint32_t>(indexCount, srcPtr); in GetLineLoopWithRestartIndexCount()
372 void CopyLineLoopIndicesWithRestart(GLsizei indexCount, const uint8_t *srcPtr, uint8_t *outPtr) in CopyLineLoopIndicesWithRestart() argument
379 for (GLsizei curIndex = 0; curIndex < indexCount; curIndex++) in CopyLineLoopIndicesWithRestart()
398 if (indexCount > loopStartIndex) in CopyLineLoopIndicesWithRestart()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DProvokingVertexHelper.mm24 static inline uint primCountForIndexCount(const uint fixIndexBufferKey, const uint indexCount)
32 return indexCount;
34 return indexCount / 2;
36 return (uint)MAX(0, (int)indexCount - 1);
38 return indexCount / 3;
40 return (uint)MAX(0, (int)indexCount - 2);
200 size_t indexCount,
217 uint primCount = primCountForIndexCount(indexBufferKey, (uint32_t)indexCount);
226 uint indexCountEncoded = (uint)indexCount;
DVertexArrayMtl.h56 size_t indexCount,
67 uint32_t indexCount,
89 size_t indexCount,
98 size_t indexCount,
/third_party/skia/src/core/
DSkVertices.cpp98 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder() argument
102 this->init({mode, vertexCount, indexCount, hasTexs, hasColors}); in Builder()
202 int indexCount, const uint16_t indices[]) { in MakeCopy() argument
203 auto desc = Desc{mode, vertexCount, indexCount, !!texs, !!colors}; in MakeCopy()
273 const int indexCount = safe.checkGE(buffer.readInt(), 0); in Decode() local
286 const SkVertices::Desc desc{mode, vertexCount, indexCount, hasTexs, hasColors}; in Decode()
315 if (indexCount > 0) { in Decode()
318 for (int i = 0; i < indexCount; ++i) { in Decode()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
Drenderer_utils.h285 uint32_t LineLoopRestartIndexCountHelper(GLsizei indexCount, const uint8_t *srcPtr) in LineLoopRestartIndexCountHelper() argument
293 for (GLsizei curIndex = 0; curIndex < indexCount; curIndex++) in LineLoopRestartIndexCountHelper()
309 if (indexCount > loopStartIndex) in LineLoopRestartIndexCountHelper()
317 GLsizei indexCount, in GetLineLoopWithRestartIndexCount() argument
323 return LineLoopRestartIndexCountHelper<uint8_t>(indexCount, srcPtr); in GetLineLoopWithRestartIndexCount()
325 return LineLoopRestartIndexCountHelper<uint16_t>(indexCount, srcPtr); in GetLineLoopWithRestartIndexCount()
327 return LineLoopRestartIndexCountHelper<uint32_t>(indexCount, srcPtr); in GetLineLoopWithRestartIndexCount()
337 void CopyLineLoopIndicesWithRestart(GLsizei indexCount, const uint8_t *srcPtr, uint8_t *outPtr) in CopyLineLoopIndicesWithRestart() argument
344 for (GLsizei curIndex = 0; curIndex < indexCount; curIndex++) in CopyLineLoopIndicesWithRestart()
363 if (indexCount > loopStartIndex) in CopyLineLoopIndicesWithRestart()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/
Drewrite_indices.metal27 const uint indexCount,
34 if(inIndex < indexCount)
64 const uint indexCount,
73 #define READ_IDX(_idx) readIdx(indexBufferUint16, indexBufferUint32, restartIndex, indexCount, _idx…
207 assert(onOutIndex <= (indexCount - 2) * 3);
221 constant uint &indexCount [[ buffer(2) ]],
254 …ufferUint32, outIndexBufferUint16, outIndexBufferUint32, restartIndex, indexCount, baseIndex, onIn…
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DVertexArray.h263 GLsizei indexCount, in getIndexRange() argument
268 if (elementArrayBuffer && mIndexRangeCache.get(type, indexCount, indices, indexRangeOut)) in getIndexRange()
273 return getIndexRangeImpl(context, type, indexCount, indices, indexRangeOut); in getIndexRange()
301 GLsizei indexCount,
351 GLsizei indexCount, in get() argument
356 if (mTypeKey == type && mIndexCountKey == indexCount && mOffsetKey == offset) in get()
366 GLsizei indexCount,
/third_party/skia/src/gpu/d3d/
DGrD3DOpsRenderPass.h51 void onDrawIndexed(int indexCount, int baseIndex, uint16_t minIndexValue, in onDrawIndexed() argument
53 this->onDrawIndexedInstanced(indexCount, baseIndex, 1, 0, baseVertex); in onDrawIndexed()
57 void onDrawIndexedInstanced(int indexCount, int baseIndex, int instanceCount, int baseInstance,
/third_party/skia/src/gpu/gl/
DGrGLOpsRenderPass.cpp191 void GrGLOpsRenderPass::onDrawIndexed(int indexCount, int baseIndex, uint16_t minIndexValue, in onDrawIndexed() argument
199 glPrimType, indexCount, GR_GL_UNSIGNED_SHORT, in onDrawIndexed()
208 GL_CALL(DrawRangeElements(glPrimType, minIndexValue, maxIndexValue, indexCount, in onDrawIndexed()
211 GL_CALL(DrawElements(glPrimType, indexCount, GR_GL_UNSIGNED_SHORT, in onDrawIndexed()
240 void GrGLOpsRenderPass::onDrawIndexedInstanced(int indexCount, int baseIndex, int instanceCount, in onDrawIndexedInstanced() argument
251 glPrimType, indexCount, GR_GL_UNSIGNED_SHORT, in onDrawIndexedInstanced()
257 GL_CALL(DrawElementsInstanced(glPrimType, indexCount, GR_GL_UNSIGNED_SHORT, in onDrawIndexedInstanced()
400 auto [indexCount, instanceCount, baseIndex, baseVertex, baseInstance] = cmds[i]; in multiDrawElementsANGLEOrWebGL()
401 fCounts[i] = indexCount; in multiDrawElementsANGLEOrWebGL()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DVertexArray.h296 GLsizei indexCount, in getIndexRange() argument
301 if (elementArrayBuffer && mIndexRangeCache.get(type, indexCount, indices, indexRangeOut)) in getIndexRange()
306 return getIndexRangeImpl(context, type, indexCount, indices, indexRangeOut); in getIndexRange()
337 GLsizei indexCount,
387 GLsizei indexCount, in get() argument
392 if (mTypeKey == type && mIndexCountKey == indexCount && mOffsetKey == offset) in get()
402 GLsizei indexCount,
/third_party/skia/experimental/graphite/src/mtl/
DMtlRenderCommandEncoder.h205 void drawIndexedPrimitives(MTLPrimitiveType primitiveType, NSUInteger indexCount, in drawIndexedPrimitives() argument
209 indexCount:indexCount in drawIndexedPrimitives()
214 void drawIndexedPrimitives(MTLPrimitiveType primitiveType, NSUInteger indexCount, in drawIndexedPrimitives() argument
221 indexCount:indexCount in drawIndexedPrimitives()
/third_party/skia/src/gpu/mtl/
DGrMtlRenderCommandEncoder.h201 void drawIndexedPrimitives(MTLPrimitiveType primitiveType, NSUInteger indexCount, in drawIndexedPrimitives() argument
205 indexCount:indexCount in drawIndexedPrimitives()
210 void drawIndexedPrimitives(MTLPrimitiveType primitiveType, NSUInteger indexCount, in drawIndexedPrimitives() argument
217 indexCount:indexCount in drawIndexedPrimitives()
/third_party/flutter/skia/tests/
DVerticesTest.cpp21 if (v0->indexCount() != v1->indexCount()) { in equal()
47 for (int i = 0; i < v0->indexCount(); ++i) { in equal()
77 for (int i = 0; i < builder.indexCount(); ++i) { in DEF_TEST()

12345678910