Home
last modified time | relevance | path

Searched refs:vertexSize (Results 1 – 22 of 22) sorted by relevance

/external/skia/src/gpu/mock/
DGrMockOpTarget.h44 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>* buffer, in makeVertexSpace() argument
46 if (vertexSize * vertexCount > sizeof(fStaticVertexData)) { in makeVertexSpace()
48 vertexSize * vertexCount, sizeof(fStaticVertexData)); in makeVertexSpace()
55 void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, int fallbackVertexCount, in makeVertexSpaceAtLeast() argument
58 if (vertexSize * minVertexCount > sizeof(fStaticVertexData)) { in makeVertexSpaceAtLeast()
60 vertexSize * minVertexCount, sizeof(fStaticVertexData)); in makeVertexSpaceAtLeast()
64 *actualVertexCount = sizeof(fStaticVertexData) / vertexSize; in makeVertexSpaceAtLeast()
/external/skqp/src/gpu/
DGrBufferAllocPool.cpp380 void* GrVertexBufferAllocPool::makeSpace(size_t vertexSize, in makeSpace() argument
389 void* ptr = INHERITED::makeSpace(SkSafeMath::Mul(vertexSize, vertexCount), in makeSpace()
390 vertexSize, in makeSpace()
394 SkASSERT(0 == offset % vertexSize); in makeSpace()
395 *startVertex = static_cast<int>(offset / vertexSize); in makeSpace()
399 void* GrVertexBufferAllocPool::makeSpaceAtLeast(size_t vertexSize, int minVertexCount, in makeSpaceAtLeast() argument
411 void* ptr = INHERITED::makeSpaceAtLeast(SkSafeMath::Mul(vertexSize, minVertexCount), in makeSpaceAtLeast()
412 SkSafeMath::Mul(vertexSize, fallbackVertexCount), in makeSpaceAtLeast()
413 vertexSize, in makeSpaceAtLeast()
418 SkASSERT(0 == offset % vertexSize); in makeSpaceAtLeast()
[all …]
DGrOpFlushState.cpp132 void* GrOpFlushState::makeVertexSpace(size_t vertexSize, int vertexCount, in makeVertexSpace() argument
134 return fVertexPool.makeSpace(vertexSize, vertexCount, buffer, startVertex); in makeVertexSpace()
142 void* GrOpFlushState::makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, in makeVertexSpaceAtLeast() argument
145 return fVertexPool.makeSpaceAtLeast(vertexSize, minVertexCount, fallbackVertexCount, buffer, in makeVertexSpaceAtLeast()
DGrBufferAllocPool.h182 void* makeSpace(size_t vertexSize,
214 void* makeSpaceAtLeast(size_t vertexSize,
DGrOpFlushState.h88 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
91 void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, int fallbackVertexCount,
/external/skia/src/gpu/
DGrBufferAllocPool.cpp429 void* GrVertexBufferAllocPool::makeSpace(size_t vertexSize, in makeSpace() argument
438 void* ptr = INHERITED::makeSpace(SkSafeMath::Mul(vertexSize, vertexCount), in makeSpace()
439 vertexSize, in makeSpace()
443 SkASSERT(0 == offset % vertexSize); in makeSpace()
444 *startVertex = static_cast<int>(offset / vertexSize); in makeSpace()
448 void* GrVertexBufferAllocPool::makeSpaceAtLeast(size_t vertexSize, int minVertexCount, in makeSpaceAtLeast() argument
460 void* ptr = INHERITED::makeSpaceAtLeast(SkSafeMath::Mul(vertexSize, minVertexCount), in makeSpaceAtLeast()
461 SkSafeMath::Mul(vertexSize, fallbackVertexCount), in makeSpaceAtLeast()
462 vertexSize, in makeSpaceAtLeast()
467 SkASSERT(0 == offset % vertexSize); in makeSpaceAtLeast()
[all …]
DGrThreadSafeCache.h112 size_t vertexSize() const { return fVertexSize; } in vertexSize() function
136 VertexData(const void* vertices, int numVertices, size_t vertexSize) in VertexData() argument
139 , fVertexSize(vertexSize) { in VertexData()
142 VertexData(sk_sp<GrGpuBuffer> gpuBuffer, int numVertices, size_t vertexSize) in VertexData() argument
145 , fVertexSize(vertexSize) in VertexData()
160 size_t vertexSize);
163 size_t vertexSize);
DGrOpFlushState.cpp171 void* GrOpFlushState::makeVertexSpace(size_t vertexSize, int vertexCount, in makeVertexSpace() argument
173 return fVertexPool.makeSpace(vertexSize, vertexCount, buffer, startVertex); in makeVertexSpace()
181 void* GrOpFlushState::makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, in makeVertexSpaceAtLeast() argument
184 return fVertexPool.makeSpaceAtLeast(vertexSize, minVertexCount, fallbackVertexCount, buffer, in makeVertexSpaceAtLeast()
DGrThreadSafeCache.cpp253 size_t vertexSize) { in MakeVertexData() argument
254 return sk_sp<VertexData>(new VertexData(vertices, vertexCount, vertexSize)); in MakeVertexData()
259 size_t vertexSize) { in MakeVertexData() argument
260 return sk_sp<VertexData>(new VertexData(std::move(buffer), vertexCount, vertexSize)); in MakeVertexData()
DGrBufferAllocPool.h205 void* makeSpace(size_t vertexSize,
237 void* makeSpaceAtLeast(size_t vertexSize,
DGrOpFlushState.h133 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
136 void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, int fallbackVertexCount,
/external/skqp/src/gpu/ops/
DGrMeshDrawOp.h103 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
119 virtual void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount,
DGrTextureOp.cpp395 size_t vertexSize = gp->vertexStride(); in onPrepareDraws() local
413 vertexSize, meshVertexCnt, numQuadVerticesLeft, &vbuffer, in onPrepareDraws()
438 vdata = reinterpret_cast<char*>(vdata) + vertexSize * meshVertexCnt; in onPrepareDraws()
DGrFillRectOp.cpp187 size_t vertexSize = gp->vertexStride(); in onPrepareDraws() local
194 vertexSize, this->quadCount() * vertexSpec.verticesPerQuad(), in onPrepareDraws()
/external/skia/src/gpu/ops/
DGrMeshDrawOp.h169 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
185 virtual void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount,
DGrFillRectOp.cpp212 SkASSERT(gp->vertexStride() == vertexSpec.vertexSize()); in onCreateProgramInfo()
239 const size_t totalVertexSizeInBytes = vertexSpec.vertexSize() * totalNumVertices; in onPrePrepareDraws()
273 void* vdata = target->makeVertexSpace(vertexSpec.vertexSize(), totalNumVertices, in onPrepareDraws()
281 const size_t totalVertexSizeInBytes = vertexSpec.vertexSize() * totalNumVertices; in onPrepareDraws()
DGrTextureOp.cpp420 return this->totalNumVertices() * fVertexSpec.vertexSize(); in totalSizeInBytes()
674 SkASSERT(fDesc->fVertexSpec.vertexSize() == gp->vertexStride()); in onCreateProgramInfo()
714 SkDEBUGCODE(const size_t vertexSize = desc->fVertexSpec.vertexSize()); in FillInVertices()
731 SkASSERT((totVerticesSeen + meshVertexCnt) * vertexSize in FillInVertices()
886 size_t vertexSize = fDesc->fVertexSpec.vertexSize(); in onPrepareDraws() local
888 void* vdata = target->makeVertexSpace(vertexSize, fDesc->totalNumVertices(), in onPrepareDraws()
DGrQuadPerEdgeAA.h101 size_t vertexSize() const;
DGrQuadPerEdgeAA.cpp498 size_t VertexSpec::vertexSize() const { in vertexSize() function in GrQuadPerEdgeAA::VertexSpec
/external/replicaisland/src/com/replica/replicaisland/
DGrid.java346 final int vertexSize = mVertexBuffer.capacity() * mCoordinateSize; in generateHardwareBuffers() local
350 gl11.glBufferData(GL11.GL_ARRAY_BUFFER, vertexSize, in generateHardwareBuffers()
/external/swiftshader/tests/VulkanWrapper/
DDrawTester.cpp408 …rtexBuffer(void *vertexBufferData, size_t vertexBufferDataSize, size_t vertexSize, std::vector<vk:… in addVertexBuffer() argument
429 vertices.inputBinding.stride = static_cast<uint32_t>(vertexSize); in addVertexBuffer()
440 vertices.numVertices = static_cast<uint32_t>(vertexBufferDataSize / vertexSize); in addVertexBuffer()
DDrawTester.hpp121 …void addVertexBuffer(void *vertexBufferData, size_t vertexBufferDataSize, size_t vertexSize, std::…