Home
last modified time | relevance | path

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

/third_party/skia/src/gpu/mock/
DGrMockOpTarget.h46 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>* buffer, in makeVertexSpace() argument
48 if (vertexSize * vertexCount > sizeof(fStaticVertexData)) { in makeVertexSpace()
50 vertexSize * vertexCount, sizeof(fStaticVertexData)); in makeVertexSpace()
57 void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, int fallbackVertexCount, in makeVertexSpaceAtLeast() argument
60 if (vertexSize * minVertexCount > sizeof(fStaticVertexData)) { in makeVertexSpaceAtLeast()
62 vertexSize * minVertexCount, sizeof(fStaticVertexData)); in makeVertexSpaceAtLeast()
66 *actualVertexCount = sizeof(fStaticVertexData) / vertexSize; in makeVertexSpaceAtLeast()
/third_party/flutter/skia/src/gpu/
DGrBufferAllocPool.cpp439 void* GrVertexBufferAllocPool::makeSpace(size_t vertexSize, in makeSpace() argument
448 void* ptr = INHERITED::makeSpace(SkSafeMath::Mul(vertexSize, vertexCount), in makeSpace()
449 vertexSize, in makeSpace()
453 SkASSERT(0 == offset % vertexSize); in makeSpace()
454 *startVertex = static_cast<int>(offset / vertexSize); in makeSpace()
458 void* GrVertexBufferAllocPool::makeSpaceAtLeast(size_t vertexSize, int minVertexCount, in makeSpaceAtLeast() argument
470 void* ptr = INHERITED::makeSpaceAtLeast(SkSafeMath::Mul(vertexSize, minVertexCount), in makeSpaceAtLeast()
471 SkSafeMath::Mul(vertexSize, fallbackVertexCount), in makeSpaceAtLeast()
472 vertexSize, in makeSpaceAtLeast()
477 SkASSERT(0 == offset % vertexSize); in makeSpaceAtLeast()
[all …]
DGrOpFlushState.cpp165 void* GrOpFlushState::makeVertexSpace(size_t vertexSize, int vertexCount, in makeVertexSpace() argument
167 return fVertexPool.makeSpace(vertexSize, vertexCount, buffer, startVertex); in makeVertexSpace()
175 void* GrOpFlushState::makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, in makeVertexSpaceAtLeast() argument
178 return fVertexPool.makeSpaceAtLeast(vertexSize, minVertexCount, fallbackVertexCount, buffer, in makeVertexSpaceAtLeast()
DGrBufferAllocPool.h204 void* makeSpace(size_t vertexSize,
236 void* makeSpaceAtLeast(size_t vertexSize,
DGrOpFlushState.h89 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
92 void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, int fallbackVertexCount,
/third_party/skia/src/gpu/
DGrBufferAllocPool.cpp427 void* GrVertexBufferAllocPool::makeSpace(size_t vertexSize, in makeSpace() argument
436 void* ptr = INHERITED::makeSpace(SkSafeMath::Mul(vertexSize, vertexCount), in makeSpace()
437 vertexSize, in makeSpace()
441 SkASSERT(0 == offset % vertexSize); in makeSpace()
442 *startVertex = static_cast<int>(offset / vertexSize); in makeSpace()
446 void* GrVertexBufferAllocPool::makeSpaceAtLeast(size_t vertexSize, int minVertexCount, in makeSpaceAtLeast() argument
458 void* ptr = INHERITED::makeSpaceAtLeast(SkSafeMath::Mul(vertexSize, minVertexCount), in makeSpaceAtLeast()
459 SkSafeMath::Mul(vertexSize, fallbackVertexCount), in makeSpaceAtLeast()
460 vertexSize, in makeSpaceAtLeast()
465 SkASSERT(0 == offset % vertexSize); in makeSpaceAtLeast()
[all …]
DGrThreadSafeCache.h111 size_t vertexSize() const { return fVertexSize; } in vertexSize() function
135 VertexData(const void* vertices, int numVertices, size_t vertexSize) in VertexData() argument
138 , fVertexSize(vertexSize) { in VertexData()
141 VertexData(sk_sp<GrGpuBuffer> gpuBuffer, int numVertices, size_t vertexSize) in VertexData() argument
144 , fVertexSize(vertexSize) in VertexData()
159 size_t vertexSize);
162 size_t vertexSize);
DGrOpFlushState.cpp180 void* GrOpFlushState::makeVertexSpace(size_t vertexSize, int vertexCount, in makeVertexSpace() argument
182 return fVertexPool.makeSpace(vertexSize, vertexCount, buffer, startVertex); in makeVertexSpace()
190 void* GrOpFlushState::makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, in makeVertexSpaceAtLeast() argument
193 return fVertexPool.makeSpaceAtLeast(vertexSize, minVertexCount, fallbackVertexCount, buffer, in makeVertexSpaceAtLeast()
DGrMeshDrawTarget.h52 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
68 virtual void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount,
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.h132 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
135 void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount, int fallbackVertexCount,
/third_party/skia/experimental/graphite/src/
DDrawPass.cpp251 size_t vertexSize = draw.requiredVertexSpace(renderStep); in Make() local
253 auto [vertexWriter, vertexInfo] = bufferMgr->getVertexWriter(vertexSize); in Make()
256 SkASSERT(!vertexSize || (vertexWriter && vertexInfo.fBuffer)); in Make()
260 if (vertexSize) { in Make()
/third_party/flutter/skia/src/gpu/ops/
DGrMeshDrawOp.h104 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
120 virtual void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount,
DGrFillRectOp.cpp203 size_t vertexSize = gp->vertexStride(); in onPrepareDraws() local
210 vertexSize, fQuads.count() * vertexSpec.verticesPerQuad(), in onPrepareDraws()
DGrTextureOp.cpp473 size_t vertexSize = gp->vertexStride(); in onPrepareDraws() local
491 vertexSize, meshVertexCnt, numQuadVerticesLeft, &vbuffer, in onPrepareDraws()
516 vdata = reinterpret_cast<char*>(vdata) + vertexSize * meshVertexCnt; in onPrepareDraws()
/third_party/skia/src/gpu/ops/
DFillRectOp.cpp214 SkASSERT(gp->vertexStride() == vertexSpec.vertexSize()); in onCreateProgramInfo()
241 const size_t totalVertexSizeInBytes = vertexSpec.vertexSize() * totalNumVertices; in onPrePrepareDraws()
275 void* vdata = target->makeVertexSpace(vertexSpec.vertexSize(), totalNumVertices, in onPrepareDraws()
283 const size_t totalVertexSizeInBytes = vertexSpec.vertexSize() * totalNumVertices; in onPrepareDraws()
DTextureOp.cpp423 return this->totalNumVertices() * fVertexSpec.vertexSize(); in totalSizeInBytes()
683 SkASSERT(fDesc->fVertexSpec.vertexSize() == gp->vertexStride()); in onCreateProgramInfo()
723 SkDEBUGCODE(const size_t vertexSize = desc->fVertexSpec.vertexSize()); in FillInVertices()
740 SkASSERT((totVerticesSeen + meshVertexCnt) * vertexSize in FillInVertices()
895 size_t vertexSize = fDesc->fVertexSpec.vertexSize(); in onPrepareDraws() local
897 void* vdata = target->makeVertexSpace(vertexSize, fDesc->totalNumVertices(), in onPrepareDraws()
DQuadPerEdgeAA.h101 size_t vertexSize() const;
DQuadPerEdgeAA.cpp561 size_t VertexSpec::vertexSize() const { in vertexSize() function in skgpu::v1::QuadPerEdgeAA::VertexSpec
/third_party/skia/third_party/externals/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::…