Home
last modified time | relevance | path

Searched refs:instanceBuffer (Results 1 – 25 of 29) sorted by relevance

12

/external/skqp/src/gpu/
DGrMesh.h43 void setInstanced(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, int baseInstance,
62 const GrBuffer* instanceBuffer, int instanceCount,
68 const GrBuffer* instanceBuffer,
170 inline void GrMesh::setInstanced(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, in setInstanced() argument
172 SkASSERT(instanceBuffer); in setInstanced()
176 fInstanceBuffer = std::move(instanceBuffer); in setInstanced()
184 sk_sp<const GrBuffer> instanceBuffer, int instanceCount, in setIndexedInstanced() argument
188 SkASSERT(instanceBuffer); in setIndexedInstanced()
192 fInstanceBuffer = std::move(instanceBuffer); in setIndexedInstanced()
/external/skqp/src/gpu/mtl/
DGrMtlGpuCommandBuffer.mm274 const GrBuffer* instanceBuffer) {
286 if (instanceBuffer) {
287 SkASSERT(!instanceBuffer->isCPUBacked());
288 SkASSERT(!instanceBuffer->isMapped());
290 auto mtlInstanceBuffer = static_cast<const GrMtlBuffer*>(instanceBuffer)->mtlBuffer();
302 const GrBuffer* instanceBuffer,
305 this->bindGeometry(vertexBuffer, instanceBuffer);
321 const GrBuffer* instanceBuffer,
325 this->bindGeometry(vertexBuffer, instanceBuffer);
DGrMtlGpuCommandBuffer.h93 void bindGeometry(const GrBuffer* vertexBuffer, const GrBuffer* instanceBuffer);
114 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
119 const GrBuffer* instanceBuffer, int instanceCount,
/external/skia/src/gpu/gl/
DGrGLOpsRenderPass.cpp85 sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers() argument
112 this->bindInstanceBuffer(instanceBuffer.get(), 0); in onBindBuffers()
115 fActiveInstanceBuffer = std::move(instanceBuffer); in onBindBuffers()
129 void GrGLOpsRenderPass::bindInstanceBuffer(const GrBuffer* instanceBuffer, int baseInstance) { in bindInstanceBuffer() argument
133 SkASSERT(instanceBuffer); in bindInstanceBuffer()
134 SkASSERT(instanceBuffer->isCpuBuffer() || in bindInstanceBuffer()
135 !static_cast<const GrGpuBuffer*>(instanceBuffer)->isMapped()); in bindInstanceBuffer()
141 fAttribArrayState->set(fGpu, attrib.fLocation, instanceBuffer, attrib.fCPUType, in bindInstanceBuffer()
DGrGLOpsRenderPass.h61 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
/external/skia/src/gpu/d3d/
DGrD3DPipelineState.cpp150 sk_sp<const GrBuffer> instanceBuffer, in bindBuffers() argument
162 if (instanceBuffer) { in bindBuffers()
163 auto* d3dInstanceBuffer = static_cast<const GrD3DBuffer*>(instanceBuffer.get()); in bindBuffers()
170 std::move(instanceBuffer), fInstanceStride); in bindBuffers()
DGrD3DCommandList.cpp388 sk_sp<const GrBuffer> instanceBuffer, in setVertexBuffers() argument
392 fCurrentInstanceBuffer != instanceBuffer.get() || in setVertexBuffers()
397 fCurrentInstanceBuffer = instanceBuffer.get(); in setVertexBuffers()
409 if (instanceBuffer) { in setVertexBuffers()
410 auto* d3dBuffer = static_cast<const GrD3DBuffer*>(instanceBuffer.get()); in setVertexBuffers()
412 views[numViews].SizeInBytes = instanceBuffer->size(); in setVertexBuffers()
414 this->addGrBuffer(std::move(instanceBuffer)); in setVertexBuffers()
DGrD3DOpsRenderPass.h46 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
DGrD3DPipelineState.h53 sk_sp<const GrBuffer> instanceBuffer, sk_sp<const GrBuffer> vertexBuffer,
DGrD3DOpsRenderPass.cpp248 sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers() argument
258 fCurrentPipelineState->bindBuffers(fGpu, std::move(indexBuffer), std::move(instanceBuffer), in onBindBuffers()
/external/skqp/src/gpu/ccpr/
DGrCCCoverageProcessor.h103 void appendMesh(sk_sp<GrBuffer> instanceBuffer, int instanceCount, int baseInstance, in appendMesh() argument
106 this->appendGSMesh(std::move(instanceBuffer), instanceCount, baseInstance, out); in appendMesh()
108 this->appendVSMesh(std::move(instanceBuffer), instanceCount, baseInstance, out); in appendMesh()
253 void appendGSMesh(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, int baseInstance,
255 void appendVSMesh(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, int baseInstance,
DGrCCCoverageProcessor_GSImpl.cpp399 void GrCCCoverageProcessor::appendGSMesh(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, in appendGSMesh() argument
408 mesh.setVertexData(std::move(instanceBuffer), baseInstance * 2); in appendGSMesh()
DGrCCCoverageProcessor_VSImpl.cpp530 void GrCCCoverageProcessor::appendVSMesh(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, in appendVSMesh() argument
535 mesh.setIndexedInstanced(fVSIndexBuffer, fVSNumIndicesPerInstance, std::move(instanceBuffer), in appendVSMesh()
/external/skqp/src/gpu/vk/
DGrVkGpuCommandBuffer.h101 const GrBuffer* instanceBuffer);
136 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
141 const GrBuffer* instanceBuffer, int instanceCount,
DGrVkGpuCommandBuffer.cpp598 const GrBuffer* instanceBuffer) { in bindGeometry() argument
618 if (instanceBuffer) { in bindGeometry()
619 SkASSERT(instanceBuffer); in bindGeometry()
620 SkASSERT(!instanceBuffer->isCPUBacked()); in bindGeometry()
621 SkASSERT(!instanceBuffer->isMapped()); in bindGeometry()
624 static_cast<const GrVkVertexBuffer*>(instanceBuffer)); in bindGeometry()
806 const GrBuffer* instanceBuffer, in sendInstancedMeshToGpu() argument
810 this->bindGeometry(nullptr, vertexBuffer, instanceBuffer); in sendInstancedMeshToGpu()
821 const GrBuffer* instanceBuffer, in sendIndexedInstancedMeshToGpu() argument
827 this->bindGeometry(indexBuffer, vertexBuffer, instanceBuffer); in sendIndexedInstancedMeshToGpu()
/external/skia/src/gpu/dawn/
DGrDawnOpsRenderPass.cpp176 sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers() argument
183 if (instanceBuffer) { in onBindBuffers()
184 wgpu::Buffer instance = static_cast<const GrDawnBuffer*>(instanceBuffer.get())->get(); in onBindBuffers()
DGrDawnOpsRenderPass.h45 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
/external/skia/src/gpu/
DGrOpsRenderPass.cpp176 sk_sp<const GrBuffer> instanceBuffer, in bindBuffers() argument
189 SkASSERT((DynamicStateStatus::kDisabled == fInstanceBufferStatus) != SkToBool(instanceBuffer)); in bindBuffers()
190 if (instanceBuffer) { in bindBuffers()
204 this->onBindBuffers(std::move(indexBuffer), std::move(instanceBuffer), std::move(vertexBuffer), in bindBuffers()
DGrOpsRenderPass.h75 void bindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
184 …virtual void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
DGrOpFlushState.h229 void bindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
232 fOpsRenderPass->bindBuffers(std::move(indexBuffer), std::move(instanceBuffer),
/external/skia/src/gpu/mtl/
DGrMtlOpsRenderPass.mm262 sk_sp<const GrBuffer> instanceBuffer,
274 if (instanceBuffer) {
275 SkASSERT(!instanceBuffer->isCpuBuffer());
276 SkASSERT(!static_cast<const GrGpuBuffer*>(instanceBuffer.get())->isMapped());
277 this->setVertexBuffer(fActiveRenderCmdEncoder, instanceBuffer.get(), 0, inputBufferIndex++);
278 fActiveInstanceBuffer = std::move(instanceBuffer);
DGrMtlOpsRenderPass.h43 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
/external/skia/src/gpu/mock/
DGrMockOpsRenderPass.h43 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers() argument
/external/skqp/src/gpu/gl/
DGrGLGpu.h101 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
106 const GrBuffer* instanceBuffer, int instanceCount,
281 const GrBuffer* instanceBuffer,
/external/skia/src/gpu/vk/
DGrVkOpsRenderPass.h75 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,

12