Home
last modified time | relevance | path

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

12

/third_party/flutter/skia/src/gpu/
DGrMesh.h48 void setInstanced(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, int baseInstance,
51 sk_sp<const GrBuffer> instanceBuffer, int instanceCount,
68 const GrBuffer* instanceBuffer, int instanceCount,
74 const GrBuffer* instanceBuffer,
188 inline void GrMesh::setInstanced(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, in setInstanced() argument
193 fInstanceBuffer = std::move(instanceBuffer); in setInstanced()
201 sk_sp<const GrBuffer> instanceBuffer, int instanceCount, in setIndexedInstanced() argument
208 fInstanceBuffer = std::move(instanceBuffer); in setIndexedInstanced()
/third_party/skia/experimental/graphite/src/
DCommandBuffer.cpp52 sk_sp<Buffer> instanceBuffer, size_t instanceOffset) { in bindVertexBuffers() argument
54 instanceBuffer.get(), instanceOffset); in bindVertexBuffers()
58 if (instanceBuffer) { in bindVertexBuffers()
59 this->trackResource(std::move(instanceBuffer)); in bindVertexBuffers()
DCommandBuffer.h67 sk_sp<Buffer> instanceBuffer, size_t instanceOffset);
112 const Buffer* instanceBuffer, size_t instanceOffset) = 0;
/third_party/skia/src/gpu/gl/
DGrGLOpsRenderPass.cpp100 sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers() argument
127 this->bindInstanceBuffer(instanceBuffer.get(), 0); in onBindBuffers()
130 fActiveInstanceBuffer = std::move(instanceBuffer); in onBindBuffers()
144 void GrGLOpsRenderPass::bindInstanceBuffer(const GrBuffer* instanceBuffer, int baseInstance) { in bindInstanceBuffer() argument
148 SkASSERT(instanceBuffer); in bindInstanceBuffer()
149 SkASSERT(instanceBuffer->isCpuBuffer() || in bindInstanceBuffer()
150 !static_cast<const GrGpuBuffer*>(instanceBuffer)->isMapped()); in bindInstanceBuffer()
156 fAttribArrayState->set(fGpu, attrib.fLocation, instanceBuffer, attrib.fCPUType, in bindInstanceBuffer()
/third_party/flutter/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.cpp632 const GrGpuBuffer* instanceBuffer) { in bindGeometry() argument
651 if (instanceBuffer) { in bindGeometry()
652 SkASSERT(instanceBuffer); in bindGeometry()
653 SkASSERT(!instanceBuffer->isMapped()); in bindGeometry()
656 static_cast<const GrVkVertexBuffer*>(instanceBuffer)); in bindGeometry()
841 const GrBuffer* instanceBuffer, in sendInstancedMeshToGpu() argument
846 SkASSERT(!instanceBuffer || !instanceBuffer->isCpuBuffer()); in sendInstancedMeshToGpu()
848 auto gpuInstanceBuffer = static_cast<const GrGpuBuffer*>(instanceBuffer); in sendInstancedMeshToGpu()
860 const GrBuffer* instanceBuffer, in sendIndexedInstancedMeshToGpu() argument
867 SkASSERT(!instanceBuffer || !instanceBuffer->isCpuBuffer()); in sendIndexedInstancedMeshToGpu()
[all …]
DGrVkGpuCommandBuffer.h138 const GrGpuBuffer* instanceBuffer);
173 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
178 const GrBuffer* instanceBuffer, int instanceCount,
/third_party/skia/tests/graphite/
DCommandBufferTest.cpp156 sk_sp<Buffer> instanceBuffer = gpu->resourceProvider()->findOrCreateBuffer( in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local
158 auto instances = (InstanceData*)instanceBuffer->map(); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
165 instanceBuffer->unmap(); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
166 commandBuffer->bindVertexBuffers(nullptr, 0, instanceBuffer, 0); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
/third_party/skia/src/gpu/d3d/
DGrD3DPipelineState.cpp154 sk_sp<const GrBuffer> instanceBuffer, in bindBuffers() argument
166 if (instanceBuffer) { in bindBuffers()
167 auto* d3dInstanceBuffer = static_cast<const GrD3DBuffer*>(instanceBuffer.get()); in bindBuffers()
174 std::move(instanceBuffer), fInstanceStride); in bindBuffers()
DGrD3DCommandList.cpp372 sk_sp<const GrBuffer> instanceBuffer, in setVertexBuffers() argument
376 fCurrentInstanceBuffer != instanceBuffer.get() || in setVertexBuffers()
381 fCurrentInstanceBuffer = instanceBuffer.get(); in setVertexBuffers()
393 if (instanceBuffer) { in setVertexBuffers()
394 auto* d3dBuffer = static_cast<const GrD3DBuffer*>(instanceBuffer.get()); in setVertexBuffers()
396 views[numViews].SizeInBytes = instanceBuffer->size(); in setVertexBuffers()
398 this->addGrBuffer(std::move(instanceBuffer)); in setVertexBuffers()
DGrD3DPipelineState.h53 sk_sp<const GrBuffer> instanceBuffer, sk_sp<const GrBuffer> vertexBuffer,
/third_party/flutter/skia/src/gpu/ccpr/
DGrSampleMaskProcessor.cpp93 void GrSampleMaskProcessor::appendMesh(sk_sp<const GrGpuBuffer> instanceBuffer, int instanceCount, in appendMesh() argument
102 mesh.setVertexData(std::move(instanceBuffer), baseInstance * 3); in appendMesh()
109 mesh.setInstanced(std::move(instanceBuffer), instanceCount, baseInstance, 4); in appendMesh()
DGrSampleMaskProcessor.h23 void appendMesh(sk_sp<const GrGpuBuffer> instanceBuffer, int instanceCount, int baseInstance,
DGrVSCoverageProcessor.h23 void appendMesh(sk_sp<const GrGpuBuffer> instanceBuffer, int instanceCount, int baseInstance,
DGrGSCoverageProcessor.h30 void appendMesh(sk_sp<const GrGpuBuffer> instanceBuffer, int instanceCount, int baseInstance,
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.mm348 const GrBuffer* instanceBuffer) {
357 if (instanceBuffer) {
358 SkASSERT(!instanceBuffer->isCpuBuffer());
359 SkASSERT(!static_cast<const GrGpuBuffer*>(instanceBuffer)->isMapped());
361 const GrMtlBuffer* grMtlBuffer = static_cast<const GrMtlBuffer*>(instanceBuffer);
414 const GrBuffer* instanceBuffer,
417 this->bindGeometry(vertexBuffer, 0, instanceBuffer);
433 const GrBuffer* instanceBuffer,
437 this->bindGeometry(vertexBuffer, 0, instanceBuffer);
DGrMtlGpuCommandBuffer.h102 const GrBuffer* instanceBuffer);
115 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
120 const GrBuffer* instanceBuffer, int instanceCount,
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DDrawVertexAndIndexBufferOOBValidationTests.cpp394 wgpu::Buffer instanceBuffer = CreateBuffer(instanceParams.bufferSize); in TEST_F() local
399 {1, instanceBuffer, instanceParams.bufferOffsetForEncoder, in TEST_F()
454 wgpu::Buffer instanceBuffer = CreateBuffer(5 * kFloat32x2Stride); in TEST_F() local
457 {1, instanceBuffer, 0, wgpu::kWholeSize}}; in TEST_F()
505 wgpu::Buffer instanceBuffer = CreateBuffer(instanceParams.bufferSize); in TEST_F() local
510 {1, instanceBuffer, instanceParams.bufferOffsetForEncoder, in TEST_F()
587 wgpu::Buffer instanceBuffer = CreateBuffer(instanceParams.bufferSize); in TEST_F() local
592 {1, instanceBuffer, instanceParams.bufferOffsetForEncoder, in TEST_F()
/third_party/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,
/third_party/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()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnGpuCommandBuffer.h103 const GrBuffer* instanceBuffer, int instanceCount,
109 const GrBuffer* instanceBuffer, int instanceCount,
/third_party/skia/src/gpu/mtl/
DGrMtlOpsRenderPass.mm321 sk_sp<const GrBuffer> instanceBuffer,
339 if (instanceBuffer) {
340 SkASSERT(!instanceBuffer->isCpuBuffer());
341 SkASSERT(!static_cast<const GrGpuBuffer*>(instanceBuffer.get())->isMapped());
342 this->setVertexBuffer(fActiveRenderCmdEncoder, instanceBuffer.get(), 0, inputBufferIndex++);
343 fActiveInstanceBuffer = std::move(instanceBuffer);
/third_party/skia/experimental/graphite/src/mtl/
DMtlCommandBuffer.mm172 const skgpu::Buffer* instanceBuffer,
182 if (instanceBuffer) {
183 id<MTLBuffer> mtlBuffer = static_cast<const Buffer*>(instanceBuffer)->mtlBuffer();
/third_party/skia/src/gpu/mock/
DGrMockOpsRenderPass.h43 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers() argument
/third_party/flutter/skia/src/gpu/gl/
DGrGLGpu.h102 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
107 const GrBuffer* instanceBuffer, int instanceCount,
303 const GrBuffer* instanceBuffer,

12