Home
last modified time | relevance | path

Searched refs:indexBuffer (Results 1 – 25 of 88) sorted by relevance

1234

/external/skia/src/gpu/
DGrMesh.h43 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
45 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
50 void setIndexedInstanced(sk_sp<const GrBuffer> indexBuffer, int indexCount,
61 virtual void sendIndexedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
71 virtual void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
154 inline void GrMesh::setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex, in setIndexed() argument
157 SkASSERT(indexBuffer); in setIndexed()
161 fIndexBuffer = std::move(indexBuffer); in setIndexed()
171 inline void GrMesh::setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, in setIndexedPatterned() argument
174 SkASSERT(indexBuffer); in setIndexedPatterned()
[all …]
/external/swiftshader/src/D3D9/
DDirect3DIndexBuffer9.cpp27 indexBuffer = new sw::Resource(length + 16); in Direct3DIndexBuffer9()
33 indexBuffer->destruct(); in ~Direct3DIndexBuffer9()
183 indexBuffer->destruct(); in Lock()
184 indexBuffer = new sw::Resource(length + 16); in Lock()
186 buffer = (void*)indexBuffer->data(); in Lock()
190 buffer = (void*)indexBuffer->data(); in Lock()
194 buffer = indexBuffer->lock(sw::PUBLIC); in Lock()
211 indexBuffer->unlock(); in Unlock()
220 return indexBuffer; in getResource()
DDirect3DStateBlock9.cpp34 indexBuffer = 0; in Direct3DStateBlock9()
149 device->SetIndices(indexBuffer); in Apply()
355 Direct3DIndexBuffer9 *indexBuffer; in Capture() local
356 device->GetIndices(reinterpret_cast<IDirect3DIndexBuffer9**>(&indexBuffer)); in Capture()
358 if(indexBuffer) in Capture()
360 indexBuffer->bind(); in Capture()
361 indexBuffer->Release(); in Capture()
364 if(this->indexBuffer) in Capture()
366 this->indexBuffer->unbind(); in Capture()
369 this->indexBuffer = indexBuffer; in Capture()
[all …]
/external/skqp/src/gpu/
DGrMesh.h38 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
40 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
55 virtual void sendIndexedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
65 virtual void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
136 inline void GrMesh::setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex, in setIndexed() argument
139 SkASSERT(indexBuffer); in setIndexed()
143 fIndexBuffer = std::move(indexBuffer); in setIndexed()
153 inline void GrMesh::setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, in setIndexedPatterned() argument
156 SkASSERT(indexBuffer); in setIndexedPatterned()
161 fIndexBuffer = std::move(indexBuffer); in setIndexedPatterned()
[all …]
/external/skia/src/gpu/ops/
DGrMeshDrawOp.cpp20 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in PatternHelper() argument
23 this->init(target, primitiveType, vertexStride, std::move(indexBuffer), verticesPerRepetition, in PatternHelper()
28 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in init() argument
32 if (!indexBuffer) { in init()
44 size_t ibSize = indexBuffer->size(); in init()
47 fMesh->setIndexedPatterned(std::move(indexBuffer), indicesPerRepetition, verticesPerRepetition, in init()
DGrDrawVerticesOp.cpp66 sk_sp<const GrBuffer> indexBuffer,
299 sk_sp<const GrBuffer> indexBuffer; in drawVolatile() local
303 indices = target->makeIndexSpace(fIndexCount, &indexBuffer, &firstIndex); in drawVolatile()
318 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), firstVertex, indexBuffer, in drawVolatile()
348 sk_sp<GrGpuBuffer> indexBuffer = in drawNonVolatile() local
352 if (vertexBuffer && (!this->isIndexed() || indexBuffer)) { in drawNonVolatile()
354 std::move(indexBuffer), 0); in drawNonVolatile()
371 indexBuffer = rp->createBuffer( in drawNonVolatile()
373 indices = indexBuffer ? static_cast<uint16_t*>(indexBuffer->map()) : nullptr; in drawNonVolatile()
389 if (indexBuffer) { in drawNonVolatile()
[all …]
DGrRegionOp.cpp115 sk_sp<const GrGpuBuffer> indexBuffer = target->resourceProvider()->refQuadIndexBuffer(); in onPrepareDraws() local
116 if (!indexBuffer) { in onPrepareDraws()
121 std::move(indexBuffer), kVertsPerInstance, kIndicesPerInstance, in onPrepareDraws()
DGrMeshDrawOp.h38 sk_sp<const GrBuffer> indexBuffer, int verticesPerRepetition,
50 void init(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer> indexBuffer,
/external/skqp/src/gpu/ops/
DGrMeshDrawOp.cpp24 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in PatternHelper() argument
27 this->init(target, primitiveType, vertexStride, std::move(indexBuffer), verticesPerRepetition, in PatternHelper()
32 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in init() argument
36 if (!indexBuffer) { in init()
48 size_t ibSize = indexBuffer->gpuMemorySize(); in init()
51 fMesh->setIndexedPatterned(indexBuffer, indicesPerRepetition, verticesPerRepetition, in init()
DGrDrawVerticesOp.cpp238 sk_sp<const GrBuffer> indexBuffer = nullptr; in drawVolatile() local
242 indices = target->makeIndexSpace(fIndexCount, &indexBuffer, &firstIndex); in drawVolatile()
258 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), firstVertex, indexBuffer, in drawVolatile()
290 sk_sp<GrBuffer> indexBuffer = this->isIndexed() ? in drawNonVolatile() local
295 if (vertexBuffer && (!this->isIndexed() || indexBuffer)) { in drawNonVolatile()
297 std::move(indexBuffer), 0); in drawNonVolatile()
316 indexBuffer = rp->createBuffer(fIndexCount * sizeof(uint16_t), in drawNonVolatile()
320 indices = indexBuffer ? static_cast<uint16_t*>(indexBuffer->map()) : nullptr; in drawNonVolatile()
337 if (indexBuffer) { in drawNonVolatile()
338 indexBuffer->unmap(); in drawNonVolatile()
[all …]
DGrRegionOp.cpp112 sk_sp<const GrBuffer> indexBuffer = target->resourceProvider()->refQuadIndexBuffer(); in onPrepareDraws() local
113 if (!indexBuffer) { in onPrepareDraws()
118 std::move(indexBuffer), kVertsPerInstance, kIndicesPerInstance, in onPrepareDraws()
/external/swiftshader/src/D3D8/
DDirect3DStateBlock8.cpp31 indexBuffer = 0; in Direct3DStateBlock8()
120 device->SetIndices(indexBuffer, baseVertexIndex); in Apply()
198 if(indexBuffer) in Capture()
200 indexBuffer->Release(); in Capture()
203 device->GetIndices(reinterpret_cast<IDirect3DIndexBuffer8**>(&indexBuffer), &baseVertexIndex); in Capture()
319 indexBuffer = indexData; in setIndices()
447 if(indexBuffer) in clear()
449 indexBuffer->Release(); in clear()
450 indexBuffer = 0; in clear()
695 device->GetIndices(reinterpret_cast<IDirect3DIndexBuffer8**>(&indexBuffer), &baseVertexIndex); in captureIndexBuffer()
[all …]
DDirect3DIndexBuffer8.cpp27 indexBuffer = new sw::Resource(length + 16); in Direct3DIndexBuffer8()
32 indexBuffer->destruct(); in ~Direct3DIndexBuffer8()
159 *data = (unsigned char*)indexBuffer->lock(sw::PUBLIC) + offset; in Lock()
160 indexBuffer->unlock(); in Lock()
174 return indexBuffer; in getResource()
/external/skqp/src/gpu/vk/
DGrVkGpuCommandBuffer.h99 void bindGeometry(const GrBuffer* indexBuffer,
125 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu() argument
130 this->sendIndexedInstancedMeshToGpu(primType, indexBuffer, indexCount, baseIndex, in sendIndexedMeshToGpu()
139 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
DGrVkGpuCommandBuffer.cpp596 void GrVkGpuRTCommandBuffer::bindGeometry(const GrBuffer* indexBuffer, in bindGeometry() argument
626 if (indexBuffer) { in bindGeometry()
627 SkASSERT(indexBuffer); in bindGeometry()
628 SkASSERT(!indexBuffer->isMapped()); in bindGeometry()
629 SkASSERT(!indexBuffer->isCPUBacked()); in bindGeometry()
631 currCmdBuf->bindIndexBuffer(fGpu, static_cast<const GrVkIndexBuffer*>(indexBuffer)); in bindGeometry()
816 const GrBuffer* indexBuffer, in sendIndexedInstancedMeshToGpu() argument
827 this->bindGeometry(indexBuffer, vertexBuffer, instanceBuffer); in sendIndexedInstancedMeshToGpu()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_render.c427 struct pipe_resource* indexBuffer, in r300_emit_draw_elements() argument
494 OUT_CS_RELOC(r300_resource(indexBuffer)); in r300_emit_draw_elements()
587 struct pipe_resource *indexBuffer = in r300_draw_elements() local
590 struct pipe_resource* orgIndexBuffer = indexBuffer; in r300_draw_elements()
604 r300_translate_index_buffer(r300, info, &indexBuffer, in r300_draw_elements()
608 if (indexSize == 2 && (start & 1) && indexBuffer) { in r300_draw_elements()
621 r300_upload_index_buffer(r300, &indexBuffer, indexSize, &start, in r300_draw_elements()
626 r300_upload_index_buffer(r300, &indexBuffer, indexSize, in r300_draw_elements()
634 PREP_INDEXED, indexBuffer, 19, buffer_offset, info->index_bias, in r300_draw_elements()
639 r300_emit_draw_elements(r300, indexBuffer, indexSize, in r300_draw_elements()
[all …]
/external/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.h99 void bindGeometry(const GrGpuBuffer* indexBuffer,
125 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu() argument
130 this->sendIndexedInstancedMeshToGpu(primType, indexBuffer, indexCount, baseIndex, in sendIndexedMeshToGpu()
139 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
DGrVkGpuCommandBuffer.cpp593 void GrVkGpuRTCommandBuffer::bindGeometry(const GrGpuBuffer* indexBuffer, in bindGeometry() argument
621 if (indexBuffer) { in bindGeometry()
622 SkASSERT(indexBuffer); in bindGeometry()
623 SkASSERT(!indexBuffer->isMapped()); in bindGeometry()
625 currCmdBuf->bindIndexBuffer(fGpu, static_cast<const GrVkIndexBuffer*>(indexBuffer)); in bindGeometry()
814 const GrBuffer* indexBuffer, in sendIndexedInstancedMeshToGpu() argument
827 SkASSERT(!indexBuffer->isCpuBuffer()); in sendIndexedInstancedMeshToGpu()
828 auto gpuIndexxBuffer = static_cast<const GrGpuBuffer*>(indexBuffer); in sendIndexedInstancedMeshToGpu()
/external/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.h101 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu() argument
106 this->sendIndexedInstancedMeshToGpu(primType, indexBuffer, indexCount, baseIndex, in sendIndexedMeshToGpu()
115 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
DGrMtlGpuCommandBuffer.mm317 const GrBuffer* indexBuffer,
330 if (indexBuffer) {
331 SkASSERT(!indexBuffer->isCpuBuffer());
332 SkASSERT(!static_cast<const GrGpuBuffer*>(indexBuffer)->isMapped());
334 mtlIndexBuffer = static_cast<const GrMtlBuffer*>(indexBuffer)->mtlBuffer();
342 indexBuffer:mtlIndexBuffer
/external/skqp/src/gpu/mtl/
DGrMtlGpuCommandBuffer.h103 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu() argument
108 this->sendIndexedInstancedMeshToGpu(primType, indexBuffer, indexCount, baseIndex, in sendIndexedMeshToGpu()
117 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
DGrMtlGpuCommandBuffer.mm316 const GrBuffer* indexBuffer,
329 if (indexBuffer) {
330 SkASSERT(!indexBuffer->isCPUBacked());
331 SkASSERT(!indexBuffer->isMapped());
333 mtlIndexBuffer = static_cast<const GrMtlBuffer*>(indexBuffer)->mtlBuffer();
341 indexBuffer: mtlIndexBuffer
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawIndexedTest.cpp156 const vk::VkBuffer indexBuffer = m_indexBuffer->object(); in iterate() local
159 m_vk.cmdBindIndexBuffer(*m_cmdBuffer, indexBuffer, 0, vk::VK_INDEX_TYPE_UINT32); in iterate()
239 const vk::VkBuffer indexBuffer = m_indexBuffer->object(); in iterate() local
242 m_vk.cmdBindIndexBuffer(*m_cmdBuffer, indexBuffer, 0, vk::VK_INDEX_TYPE_UINT32); in iterate()
/external/swiftshader/src/OpenGL/libGLES_CM/
DIndexDataManager.cpp115 translated->indexBuffer = staticBuffer; in prepareIndexData()
137 translated->indexBuffer = streamingBuffer->getResource(); in prepareIndexData()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktOpaqueTypeIndexingTests.cpp683 MovePtr<Buffer> indexBuffer; in iterate() local
743 indexBuffer = createUniformIndexBuffer(m_context, numLookups, &m_lookupIndices[0]); in iterate()
821 if (indexBuffer) in iterate()
825 indexBuffer->getBuffer(), in iterate()
1185 MovePtr<Buffer> indexBuffer; in iterate() local
1207 indexBuffer = createUniformIndexBuffer(m_context, numReads, &m_readIndices[0]); in iterate()
1285 if (indexBuffer) in iterate()
1289 indexBuffer->getBuffer(), in iterate()
1560 MovePtr<Buffer> indexBuffer; in iterate() local
1572 indexBuffer = createUniformIndexBuffer(m_context, numOps, &m_opIndices[0]); in iterate()
[all …]

1234