Home
last modified time | relevance | path

Searched refs:GrBuffer (Results 1 – 25 of 67) sorted by relevance

123

/third_party/skia/src/gpu/
DGrSimpleMesh.h22 void set(sk_sp<const GrBuffer> vertexBuffer, int vertexCount, int baseVertex);
23 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
25 sk_sp<const GrBuffer> vertexBuffer, int baseVertex);
26 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount,
28 sk_sp<const GrBuffer> vertexBuffer, int patternVertexCount,
31 sk_sp<const GrBuffer> fIndexBuffer;
40 sk_sp<const GrBuffer> fVertexBuffer;
47 inline void GrSimpleMesh::set(sk_sp<const GrBuffer> vertexBuffer, int vertexCount, int baseVertex) { in set()
56 inline void GrSimpleMesh::setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, in setIndexed()
59 sk_sp<const GrBuffer> vertexBuffer, int baseVertex) { in setIndexed()
[all …]
DGrOpsRenderPass.h76 void bindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
77 … sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart = GrPrimitiveRestart::kNo);
103 void drawIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset, int drawCount);
111 void drawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset,
164 sk_sp<const GrBuffer> fActiveIndexBuffer;
165 sk_sp<const GrBuffer> fActiveVertexBuffer;
166 sk_sp<const GrBuffer> fActiveInstanceBuffer;
187 …virtual void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
188 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) = 0;
196 virtual void onDrawIndirect(const GrBuffer*, size_t offset, int drawCount) { in onDrawIndirect() argument
[all …]
DGrBuffer.h14 class GrBuffer {
16 GrBuffer(const GrBuffer&) = delete;
17 GrBuffer& operator=(const GrBuffer&) = delete;
19 virtual ~GrBuffer() = default;
33 GrBuffer() = default;
DGrBufferAllocPool.h109 void* makeSpace(size_t size, size_t alignment, sk_sp<const GrBuffer>* buffer, size_t* offset);
139 sk_sp<const GrBuffer>* buffer,
143 sk_sp<GrBuffer> getBuffer(size_t size);
148 sk_sp<GrBuffer> fBuffer;
207 sk_sp<const GrBuffer>* buffer,
240 sk_sp<const GrBuffer>* buffer,
281 void* makeSpace(int indexCount, sk_sp<const GrBuffer>* buffer, int* startIndex);
310 sk_sp<const GrBuffer>* buffer,
323 GrDrawIndirectWriter makeSpace(int drawCount, sk_sp<const GrBuffer>* buffer, size_t* offset) { in makeSpace()
332 GrDrawIndexedIndirectWriter makeIndexedSpace(int drawCount, sk_sp<const GrBuffer>* buffer, in makeIndexedSpace()
DGrOpFlushState.h132 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
134 uint16_t* makeIndexSpace(int indexCount, sk_sp<const GrBuffer>*, int* startIndex) final;
136 sk_sp<const GrBuffer>*, int* startVertex,
139 sk_sp<const GrBuffer>*, int* startIndex,
141 GrDrawIndirectWriter makeDrawIndirectSpace(int drawCount, sk_sp<const GrBuffer>* buffer, in makeDrawIndirectSpace()
146 sk_sp<const GrBuffer>* buffer, in makeDrawIndexedIndirectSpace()
228 void bindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
229 sk_sp<const GrBuffer> vertexBuffer,
250 void drawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) { in drawIndirect()
253 void drawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) { in drawIndexedIndirect()
DGrMeshDrawTarget.h52 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
60 virtual uint16_t* makeIndexSpace(int indexCount, sk_sp<const GrBuffer>*, int* startIndex) = 0;
69 int fallbackVertexCount, sk_sp<const GrBuffer>*,
79 sk_sp<const GrBuffer>*, int* startIndex,
86 virtual GrDrawIndirectWriter makeDrawIndirectSpace(int drawCount, sk_sp<const GrBuffer>* buffer,
94 sk_sp<const GrBuffer>*,
DGrBufferAllocPool.cpp97 GrBuffer* buffer = fBlocks.back().fBuffer.get(); in deleteBlocks()
126 GrBuffer* buffer = block.fBuffer.get(); in unmap()
145 const GrBuffer* buffer = fBlocks.back().fBuffer.get(); in validate()
150 const GrBuffer* buffer = fBlocks.back().fBuffer.get(); in validate()
155 const GrBuffer* buffer = fBlocks[i].fBuffer.get(); in validate()
159 GrBuffer* buffer = fBlocks[i].fBuffer.get(); in validate()
191 sk_sp<const GrBuffer>* buffer, in makeSpace()
244 sk_sp<const GrBuffer>* buffer, in makeSpaceAtLeast()
297 GrBuffer* buffer = block.fBuffer.get(); in putBack()
330 GrBuffer* buffer = prev.fBuffer.get(); in createBlock()
[all …]
DGrOpsRenderPass.cpp179 void GrOpsRenderPass::bindBuffers(sk_sp<const GrBuffer> indexBuffer, in bindBuffers()
180 sk_sp<const GrBuffer> instanceBuffer, in bindBuffers()
181 sk_sp<const GrBuffer> vertexBuffer, in bindBuffers()
272 void GrOpsRenderPass::drawIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset, in drawIndirect()
298 void GrOpsRenderPass::drawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset, in drawIndexedIndirect()
DGrOpFlushState.cpp181 sk_sp<const GrBuffer>* buffer, int* startVertex) { in makeVertexSpace()
185 uint16_t* GrOpFlushState::makeIndexSpace(int indexCount, sk_sp<const GrBuffer>* buffer, in makeIndexSpace()
191 int fallbackVertexCount, sk_sp<const GrBuffer>* buffer, in makeVertexSpaceAtLeast()
198 sk_sp<const GrBuffer>* buffer, int* startIndex, in makeIndexSpaceAtLeast()
/third_party/skia/src/gpu/gl/
DGrGLOpsRenderPass.h43 void bindInstanceBuffer(const GrBuffer*, int baseInstance);
44 void bindVertexBuffer(const GrBuffer*, int baseVertex);
67 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
68 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
76 void onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) override;
77 void multiDrawArraysANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, size_t offset,
79 void onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset,
81 void multiDrawElementsANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, size_t offset,
DGrGLOpsRenderPass.cpp99 void GrGLOpsRenderPass::onBindBuffers(sk_sp<const GrBuffer> indexBuffer, in onBindBuffers()
100 sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers()
101 sk_sp<const GrBuffer> vertexBuffer, in onBindBuffers()
144 void GrGLOpsRenderPass::bindInstanceBuffer(const GrBuffer* instanceBuffer, int baseInstance) { in bindInstanceBuffer()
163 void GrGLOpsRenderPass::bindVertexBuffer(const GrBuffer* vertexBuffer, int baseVertex) { in bindVertexBuffer()
263 static const void* buffer_offset_to_gl_address(const GrBuffer* drawIndirectBuffer, size_t offset) { in buffer_offset_to_gl_address()
271 void GrGLOpsRenderPass::onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, in onDrawIndirect()
309 void GrGLOpsRenderPass::multiDrawArraysANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, in multiDrawArraysANGLEOrWebGL()
346 void GrGLOpsRenderPass::onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, in onDrawIndexedIndirect()
381 void GrGLOpsRenderPass::multiDrawElementsANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, in multiDrawElementsANGLEOrWebGL()
DGrGLVertexArray.h17 class GrBuffer; variable
42 const GrBuffer* vertexBuffer,
115 GrGLAttribArrayState* bindWithIndexBuffer(GrGLGpu* gpu, const GrBuffer* indexBuffer);
/third_party/skia/tests/
DGrMeshTest.cpp54 sk_sp<const GrBuffer> getIndexBuffer();
56 sk_sp<const GrBuffer> makeIndexBuffer(const uint16_t[], int count);
58 template<typename T> sk_sp<const GrBuffer> makeVertexBuffer(const SkTArray<T>& data) { in makeVertexBuffer()
61 template<typename T> sk_sp<const GrBuffer> makeVertexBuffer(const std::vector<T>& data) { in makeVertexBuffer()
64 template<typename T> sk_sp<const GrBuffer> makeVertexBuffer(const T* data, int count);
68 sk_sp<const GrBuffer> fIndexBuffer;
69 sk_sp<const GrBuffer> fIndexBuffer2;
70 sk_sp<const GrBuffer> fInstBuffer;
71 sk_sp<const GrBuffer> fVertBuffer;
72 sk_sp<const GrBuffer> fVertBuffer2;
[all …]
DGrPipelineDynamicStateTest.cpp125 sk_sp<const GrBuffer> vbuff) { in Make()
132 GrPipelineDynamicStateTestOp(GrScissorTest scissorTest, sk_sp<const GrBuffer> vbuff) in GrPipelineDynamicStateTestOp()
183 const sk_sp<const GrBuffer> fVertexBuffer;
224 sk_sp<const GrBuffer> vbuff(rp->createBuffer(sizeof(vdata), GrGpuBufferType::kVertex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/src/gpu/d3d/
DGrD3DCommandList.h81 void copyTextureRegionToBuffer(sk_sp<const GrBuffer> dst,
99 void addGrBuffer(sk_sp<const GrBuffer> buffer) { in addGrBuffer()
138 SkSTArray<kInitialTrackedResourcesCount, sk_sp<const GrBuffer>> fTrackedGpuBuffers;
171 sk_sp<const GrBuffer> vertexBuffer, size_t vertexStride,
172 sk_sp<const GrBuffer> instanceBuffer, size_t instanceStride);
173 void setIndexBuffer(sk_sp<const GrBuffer> indexBuffer);
219 const GrBuffer* fCurrentVertexBuffer = nullptr;
221 const GrBuffer* fCurrentInstanceBuffer = nullptr;
223 const GrBuffer* fCurrentIndexBuffer = nullptr;
DGrD3DOpsRenderPass.h46 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
47 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
59 void onDrawIndirect(const GrBuffer*, size_t offset, int drawCount) override;
60 void onDrawIndexedIndirect(const GrBuffer*, size_t offset, int drawCount) override;
DGrD3DPipelineState.h52 void bindBuffers(GrD3DGpu*, sk_sp<const GrBuffer> indexBuffer,
53 sk_sp<const GrBuffer> instanceBuffer, sk_sp<const GrBuffer> vertexBuffer,
DGrD3DOpsRenderPass.cpp242 void GrD3DOpsRenderPass::onBindBuffers(sk_sp<const GrBuffer> indexBuffer, in onBindBuffers()
243 sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers()
244 sk_sp<const GrBuffer> vertexBuffer, in onBindBuffers()
272 void GrD3DOpsRenderPass::onDrawIndirect(const GrBuffer* buffer, size_t offset, int drawCount) { in onDrawIndirect()
281 void GrD3DOpsRenderPass::onDrawIndexedIndirect(const GrBuffer* buffer, size_t offset, in onDrawIndexedIndirect()
/third_party/skia/src/gpu/mtl/
DGrMtlOpsRenderPass.h45 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
46 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
54 void onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset,
56 void onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset,
66 void setVertexBuffer(GrMtlRenderCommandEncoder*, const GrBuffer*, size_t offset,
/third_party/skia/src/gpu/mock/
DGrMockOpsRenderPass.h43 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers()
44 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override {} in onBindBuffers()
49 void onDrawIndirect(const GrBuffer*, size_t, int) override { this->noopDraw(); } in onDrawIndirect() argument
50 void onDrawIndexedIndirect(const GrBuffer*, size_t, int) override { this->noopDraw(); } in onDrawIndexedIndirect() argument
DGrMockOpTarget.h46 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>* buffer, in makeVertexSpace()
58 sk_sp<const GrBuffer>* buffer, int* startVertex, in makeVertexSpaceAtLeast()
70 GrDrawIndirectWriter makeDrawIndirectSpace(int drawCount, sk_sp<const GrBuffer>* buffer, in makeDrawIndirectSpace()
84 sk_sp<const GrBuffer>* buffer, in makeDrawIndexedIndirectSpace()
104 UNIMPL(uint16_t* makeIndexSpace(int, sk_sp<const GrBuffer>*, int*))
105 UNIMPL(uint16_t* makeIndexSpaceAtLeast(int, int, sk_sp<const GrBuffer>*, int*, int*))
/third_party/skia/src/gpu/vk/
DGrVkOpsRenderPass.h76 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
77 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
89 void onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) override;
90 void onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset,
DGrVkCommandBuffer.h48 void bindInputBuffer(GrVkGpu* gpu, uint32_t binding, sk_sp<const GrBuffer> buffer);
50 void bindIndexBuffer(GrVkGpu* gpu, sk_sp<const GrBuffer> buffer);
99 sk_sp<const GrBuffer> indirectBuffer,
105 sk_sp<const GrBuffer> indirectBuffer,
131 void addGrBuffer(sk_sp<const GrBuffer> buffer) { in addGrBuffer()
166 SkSTArray<16, sk_sp<const GrBuffer>> fTrackedGpuBuffers;
/third_party/skia/src/gpu/dawn/
DGrDawnOpsRenderPass.h45 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
46 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
/third_party/skia/src/gpu/ops/
DGrMeshDrawOp.cpp69 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in PatternHelper()
77 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in init()
84 sk_sp<const GrBuffer> vertexBuffer; in init()

123