Home
last modified time | relevance | path

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

12345

/external/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 …]
DSkVertState.h27 VertState(int vCount, const uint16_t indices[], int indexCount) in VertState()
31 fCount = indexCount; in VertState()
/external/skqp/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 …]
DSkVertState.h27 VertState(int vCount, const uint16_t indices[], int indexCount) in VertState()
31 fCount = indexCount; in VertState()
/external/skqp/src/gpu/
DGrMesh.h38 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
40 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
45 void setIndexedInstanced(sk_sp<const GrBuffer>, int indexCount, sk_sp<const GrBuffer>,
56 int indexCount, int baseIndex, uint16_t minIndexValue,
66 int indexCount, int baseIndex,
136 inline void GrMesh::setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex, in setIndexed() argument
140 SkASSERT(indexCount >= 1); in setIndexed()
145 fIndexData.fIndexCount = indexCount; in setIndexed()
153 inline void GrMesh::setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, in setIndexedPatterned() argument
157 SkASSERT(indexCount >= 1); in setIndexedPatterned()
[all …]
DGrOpFlushState.cpp137 uint16_t* GrOpFlushState::makeIndexSpace(int indexCount, sk_sp<const GrBuffer>* buffer, in makeIndexSpace() argument
139 return reinterpret_cast<uint16_t*>(fIndexPool.makeSpace(indexCount, buffer, startIndex)); in makeIndexSpace()
156 void GrOpFlushState::putBackIndices(int indexCount) { in putBackIndices() argument
157 fIndexPool.putBack(indexCount * sizeof(uint16_t)); in putBackIndices()
/external/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 …]
DGrOpFlushState.cpp149 uint16_t* GrOpFlushState::makeIndexSpace(int indexCount, sk_sp<const GrBuffer>* buffer, in makeIndexSpace() argument
151 return reinterpret_cast<uint16_t*>(fIndexPool.makeSpace(indexCount, buffer, startIndex)); in makeIndexSpace()
168 void GrOpFlushState::putBackIndices(int indexCount) { in putBackIndices() argument
169 fIndexPool.putBack(indexCount * sizeof(uint16_t)); in putBackIndices()
/external/skqp/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp198 size_t vertexStride, void* vertices, int indexCount, uint16_t* indices) const { in draw() argument
199 if (vertexCount == 0 || indexCount == 0) { in draw()
214 uint16_t* idxs = target->makeIndexSpace(indexCount, &indexBuffer, &firstIndex); in draw()
219 memcpy(idxs, indices, indexCount * sizeof(uint16_t)); in draw()
221 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in draw()
244 int64_t indexCount = 0; in onPrepareDraws() local
263 vertexStride, vertices, indexCount, indices); in onPrepareDraws()
265 indexCount = 0; in onPrepareDraws()
277 if (indexCount + currentIndices > maxIndices) { in onPrepareDraws()
278 maxIndices = SkTMax(indexCount + currentIndices, maxIndices * 2); in onPrepareDraws()
[all …]
/external/skia/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp199 size_t vertexStride, void* vertices, int indexCount, uint16_t* indices) const { in recordDraw() argument
200 if (vertexCount == 0 || indexCount == 0) { in recordDraw()
215 uint16_t* idxs = target->makeIndexSpace(indexCount, &indexBuffer, &firstIndex); in recordDraw()
220 memcpy(idxs, indices, indexCount * sizeof(uint16_t)); in recordDraw()
222 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in recordDraw()
244 int64_t indexCount = 0; in onPrepareDraws() local
263 target, gp, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
265 indexCount = 0; in onPrepareDraws()
277 if (indexCount + currentIndices > maxIndices) { in onPrepareDraws()
278 maxIndices = SkTMax(indexCount + currentIndices, maxIndices * 2); in onPrepareDraws()
[all …]
/external/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
/external/skqp/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
/external/skqp/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()
/external/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()
/external/replicaisland/src/com/replica/replicaisland/
DGrid.java108 int indexCount = quadCount * 6; in Grid() local
109 mIndexCount = indexCount; in Grid()
110 mIndexBuffer = ByteBuffer.allocateDirect(CHAR_SIZE * indexCount) in Grid()
240 public void drawStrip(GL10 gl, boolean useTexture, int startIndex, int indexCount) { in drawStrip() argument
241 int count = indexCount; in drawStrip()
242 if (startIndex + indexCount >= mIndexCount) { in drawStrip()
/external/jsoncpp/src/lib_json/
Djson_internalarray.inl38 ValueInternalArray::PageIndex& indexCount, argument
40 ValueInternalArray::PageIndex newIndexCount = (indexCount * 3) / 2 + 1;
45 indexCount = newIndexCount;
49 ValueInternalArray::PageIndex indexCount) { argument
92 ValueInternalArray::PageIndex& indexCount, argument
94 ValueInternalArray::PageIndex newIndexCount = (indexCount * 3) / 2 + 1;
99 indexCount = newIndexCount;
103 ValueInternalArray::PageIndex indexCount) { argument
/external/skqp/src/gpu/mtl/
DGrMtlGpuCommandBuffer.h103 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu() argument
108 this->sendIndexedInstancedMeshToGpu(primType, indexBuffer, indexCount, baseIndex, in sendIndexedMeshToGpu()
117 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
/external/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.h101 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu() argument
106 this->sendIndexedInstancedMeshToGpu(primType, indexBuffer, indexCount, baseIndex, in sendIndexedMeshToGpu()
115 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
/external/icu/icu4c/source/test/perf/leperf/
Dxmlreader.cpp187 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; in readTestFile() local
233 expected.indices = (le_int32 *) getHexArray(indices, indexCount); in readTestFile()
238 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile()
240 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
/external/icu/icu4c/source/test/letest/
Dxmlreader.cpp183 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; in readTestFile() local
229 expected.indices = (le_int32 *) getHexArray(indices, indexCount); in readTestFile()
234 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile()
236 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
/external/skqp/src/gpu/vk/
DGrVkGpuCommandBuffer.h125 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu() argument
130 this->sendIndexedInstancedMeshToGpu(primType, indexBuffer, indexCount, baseIndex, in sendIndexedMeshToGpu()
139 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
/external/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.h125 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu() argument
130 this->sendIndexedInstancedMeshToGpu(primType, indexBuffer, indexCount, baseIndex, in sendIndexedMeshToGpu()
139 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
/external/deqp/modules/gles3/functional/
Des3fVertexArrayObjectTests.cpp125 int indexCount; member
139 , indexCount (-1) in Spec()
279 deUint8* indices = new deUint8[m_spec.indexCount * typeSize]; in generateIndices()
281 for (int i = 0; i < m_spec.indexCount; i++) in generateIndices()
750 m_spec.indexCount = 0; in init()
855 deUint8* indices = new deUint8[m_spec.indexCount * typeSize]; in generateIndices()
857 for (int i = 0; i < m_spec.indexCount; i++) in generateIndices()
1288 spec.indexCount = 0; in init()
1325 spec.indexCount = 0; in init()
1363 spec.indexCount = 0; in init()
[all …]
/external/skqp/src/gpu/ccpr/
DGrCCFiller.cpp243 int indexCount, const Sk2f& devToAtlasOffset, in emit_recursive_fan() argument
245 if (indexCount < 3) { in emit_recursive_fan()
249 int32_t oneThirdCount = indexCount / 3; in emit_recursive_fan()
250 int32_t twoThirdsCount = (2 * indexCount) / 3; in emit_recursive_fan()
258 int endIndex = firstIndex + indexCount; in emit_recursive_fan()
262 indexCount - twoThirdsCount + 1, devToAtlasOffset, out); in emit_recursive_fan()
/external/skia/src/gpu/ccpr/
DGrCCFiller.cpp243 int indexCount, const Sk2f& devToAtlasOffset, in emit_recursive_fan() argument
245 if (indexCount < 3) { in emit_recursive_fan()
249 int32_t oneThirdCount = indexCount / 3; in emit_recursive_fan()
250 int32_t twoThirdsCount = (2 * indexCount) / 3; in emit_recursive_fan()
258 int endIndex = firstIndex + indexCount; in emit_recursive_fan()
262 indexCount - twoThirdsCount + 1, devToAtlasOffset, out); in emit_recursive_fan()

12345