Home
last modified time | relevance | path

Searched refs:vertexSize (Results 1 – 18 of 18) 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/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()
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()
DGrMeshDrawTarget.h52 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
68 virtual void* makeVertexSpaceAtLeast(size_t vertexSize, int minVertexCount,
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/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::…
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkRayTracingUtil.cpp1826 VkDeviceSize vertexSize = 0; in getAllocationCount() local
1832 …std::tie(strSize, updateScratchSize, buildScratchSize, vertexSize, indexSize) = str.computeBuildSi… in getAllocationCount()
1848 if (vertexSize != 0) in getAllocationCount()
1850 const VkDeviceSize alignedVertBuffSize = deAlign64(vertexSize, 8); in getAllocationCount()
1882 VkDeviceSize vertexSize = 0; in getAllocationSizes() local
1892 …std::tie(strSize, updateScratchSize, buildScratchSize, vertexSize, indexSize) = str.computeBuildSi… in getAllocationSizes()
1896 sumVertexSize += deAlign64(vertexSize, 8); in getAllocationSizes()
1975 VkDeviceSize vertexSize = 0; in batchCreateAdjust() local
1989 …std::tie(strSize, updateScratchSize, buildScratchSize, vertexSize, indexSize) = str.computeBuildSi… in batchCreateAdjust()
2016 if (vertexSize != 0) in batchCreateAdjust()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/
DvktMeshShaderSmokeTestsEXT.cpp1223 const auto vertexSize = sizeof(tcu::Vec2); in iterate() local
1227 const auto triangleSize = vertexSize * verticesPerTriangle; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
DvktMeshShaderSmokeTestsEXT.cpp1223 const auto vertexSize = sizeof(tcu::Vec2); in iterate() local
1227 const auto triangleSize = vertexSize * verticesPerTriangle; in iterate()