Home
last modified time | relevance | path

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

12345

/external/skia/src/gpu/ops/
DGrMeshDrawOp.cpp21 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in PatternHelper() argument
24 this->init(target, primitiveType, vertexStride, std::move(indexBuffer), verticesPerRepetition, in PatternHelper()
29 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in init() argument
33 if (!indexBuffer) { in init()
49 static_cast<int>(indexBuffer->size() / (sizeof(uint16_t) * indicesPerRepetition))); in init()
50 fMesh->setIndexedPatterned(std::move(indexBuffer), indicesPerRepetition, verticesPerRepetition, in init()
68 sk_sp<const GrGpuBuffer> indexBuffer = target->resourceProvider()->refNonAAQuadIndexBuffer(); in QuadHelper() local
69 if (!indexBuffer) { in QuadHelper()
73 this->init(target, GrPrimitiveType::kTriangles, vertexStride, std::move(indexBuffer), in QuadHelper()
DGrDrawVerticesOp.cpp66 sk_sp<const GrBuffer> indexBuffer,
304 sk_sp<const GrBuffer> indexBuffer; in drawVolatile() local
308 indices = target->makeIndexSpace(fIndexCount, &indexBuffer, &firstIndex); in drawVolatile()
323 this->drawVertices(target, gp, std::move(vertexBuffer), firstVertex, indexBuffer, firstIndex); in drawVolatile()
353 sk_sp<GrGpuBuffer> indexBuffer = in drawNonVolatile() local
357 if (vertexBuffer && (!this->isIndexed() || indexBuffer)) { in drawNonVolatile()
358 this->drawVertices(target, gp, std::move(vertexBuffer), 0, std::move(indexBuffer), 0); in drawNonVolatile()
375 indexBuffer = rp->createBuffer( in drawNonVolatile()
377 indices = indexBuffer ? static_cast<uint16_t*>(indexBuffer->map()) : nullptr; in drawNonVolatile()
393 if (indexBuffer) { in drawNonVolatile()
[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/skia/src/gpu/
DGrMesh.h29 const GrBuffer* indexBuffer() const { in indexBuffer() function
47 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
49 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
54 void setIndexedInstanced(sk_sp<const GrBuffer> indexBuffer, int indexCount,
148 inline void GrMesh::setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex, in setIndexed() argument
151 SkASSERT(indexBuffer); in setIndexed()
155 fIndexBuffer = std::move(indexBuffer); in setIndexed()
165 inline void GrMesh::setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, in setIndexedPatterned() argument
168 SkASSERT(indexBuffer); in setIndexedPatterned()
173 fIndexBuffer = std::move(indexBuffer); in setIndexedPatterned()
[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/angle/src/tests/gl_tests/
DDrawBaseVertexVariantsTest.cpp174 GLBuffer &indexBuffer) in setupIndexedBuffers() argument
190 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer); in setupIndexedBuffers()
312 GLBuffer indexBuffer; in TEST_P() local
315 setupIndexedBuffers(vertexPositionBuffer, vertexColorBuffer, indexBuffer); in TEST_P()
328 GLBuffer indexBuffer; in TEST_P() local
331 setupIndexedBuffers(vertexPositionBuffer, vertexColorBuffer, indexBuffer); in TEST_P()
344 GLBuffer indexBuffer; in TEST_P() local
347 setupIndexedBuffers(vertexPositionBuffer, vertexColorBuffer, indexBuffer); in TEST_P()
360 GLBuffer indexBuffer; in TEST_P() local
363 setupIndexedBuffers(vertexPositionBuffer, vertexColorBuffer, indexBuffer); in TEST_P()
DDrawBaseVertexBaseInstanceTest.cpp241 void setupIndexedBuffers(GLBuffer &vertexBuffer, GLBuffer &indexBuffer) in setupIndexedBuffers() argument
247 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer); in setupIndexedBuffers()
272 void setupRegularIndexedBuffer(GLBuffer &indexBuffer) in setupRegularIndexedBuffer() argument
274 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer); in setupRegularIndexedBuffer()
511 GLBuffer indexBuffer; in TEST_P() local
513 setupIndexedBuffers(vertexBuffer, indexBuffer); in TEST_P()
525 setupRegularIndexedBuffer(indexBuffer); in TEST_P()
618 GLBuffer indexBuffer; in TEST_P() local
620 setupIndexedBuffers(vertexBuffer, indexBuffer); in TEST_P()
634 setupRegularIndexedBuffer(indexBuffer); in TEST_P()
[all …]
DDrawElementsTest.cpp31 for (GLuint indexBuffer : mIndexBuffers) in ~DrawElementsTest() local
33 if (indexBuffer != 0) in ~DrawElementsTest()
35 glDeleteBuffers(1, &indexBuffer); in ~DrawElementsTest()
389 GLBuffer indexBuffer; in TEST_P() local
391 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer); in TEST_P()
402 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer); in TEST_P()
DMultiviewDrawTest.cpp429 void initVAO(GLuint vao, GLuint vertexBuffer, GLuint indexBuffer) in initVAO() argument
438 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer); in initVAO()
554 GLBuffer indexBuffer; in TEST_P() local
555 initVAO(vao, vertexBuffer, indexBuffer); in TEST_P()
647 GLBuffer indexBuffer; in TEST_P() local
648 initVAO(vao, vertexBuffer, indexBuffer); in TEST_P()
708 GLBuffer indexBuffer; in TEST_P() local
709 initVAO(vao, vertexBuffer, indexBuffer); in TEST_P()
760 GLBuffer indexBuffer; in TEST_P() local
761 initVAO(vao, vertexBuffer, indexBuffer); in TEST_P()
[all …]
/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/
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()
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 …]
/external/angle/src/libANGLE/renderer/d3d/
DIndexDataManager.cpp177 translated->indexBuffer = nullptr; in prepareIndexData()
224 translated->indexBuffer = staticBuffer->getIndexBuffer(); in prepareIndexData()
243 IndexBufferInterface *indexBuffer = nullptr; in streamIndexData() local
244 ANGLE_TRY(getStreamingIndexBuffer(context, dstType, &indexBuffer)); in streamIndexData()
245 ASSERT(indexBuffer != nullptr); in streamIndexData()
248 ANGLE_TRY(StreamInIndexBuffer(context, indexBuffer, data, count, srcType, dstType, in streamIndexData()
251 translated->indexBuffer = indexBuffer->getIndexBuffer(); in streamIndexData()
252 translated->serial = indexBuffer->getSerial(); in streamIndexData()
/external/skia/src/gpu/mtl/
DGrMtlOpsRenderPass.mm299 if (mesh.indexBuffer()) {
300 SkASSERT(!mesh.indexBuffer()->isCpuBuffer());
301 SkASSERT(!static_cast<const GrGpuBuffer*>(mesh.indexBuffer())->isMapped());
303 mtlIndexBuffer = static_cast<const GrMtlBuffer*>(mesh.indexBuffer())->mtlBuffer();
308 size_t indexOffset = static_cast<const GrMtlBuffer*>(mesh.indexBuffer())->offset() +
313 indexBuffer:mtlIndexBuffer
341 if (mesh.indexBuffer()) {
342 SkASSERT(!mesh.indexBuffer()->isCpuBuffer());
343 SkASSERT(!static_cast<const GrGpuBuffer*>(mesh.indexBuffer())->isMapped());
345 mtlIndexBuffer = static_cast<const GrMtlBuffer*>(mesh.indexBuffer())->mtlBuffer();
[all …]
/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/angle/src/libANGLE/renderer/metal/
Dmtl_command_buffer.mm696 const BufferRef &indexBuffer,
699 if (!indexBuffer)
704 cmdBuffer().setReadDependency(indexBuffer);
708 indexBuffer:indexBuffer->get()
717 const BufferRef &indexBuffer,
721 if (!indexBuffer)
726 cmdBuffer().setReadDependency(indexBuffer);
730 indexBuffer:indexBuffer->get()
741 const BufferRef &indexBuffer,
746 if (!indexBuffer)
[all …]
/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/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/skia/src/gpu/vk/
DGrVkOpsRenderPass.cpp446 void GrVkOpsRenderPass::bindGeometry(const GrGpuBuffer* indexBuffer, in bindGeometry() argument
474 if (indexBuffer) { in bindGeometry()
475 SkASSERT(indexBuffer); in bindGeometry()
476 SkASSERT(!indexBuffer->isMapped()); in bindGeometry()
478 currCmdBuf->bindIndexBuffer(fGpu, static_cast<const GrVkIndexBuffer*>(indexBuffer)); in bindGeometry()
650 SkASSERT(!mesh.indexBuffer()->isCpuBuffer()); in sendIndexedInstancedMeshToGpu()
651 auto gpuIndexxBuffer = static_cast<const GrGpuBuffer*>(mesh.indexBuffer()); in sendIndexedInstancedMeshToGpu()
/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()

12345