/external/swiftshader/src/D3D9/ |
D | Direct3DVertexBuffer9.cpp | 66 …vertexBuffer = new sw::Resource(length + 192 + 1024); // NOTE: Applications can 'overshoot' whil… in Direct3DVertexBuffer9() 72 vertexBuffer->destruct(); in ~Direct3DVertexBuffer9() 202 vertexBuffer->destruct(); in Lock() 203 …vertexBuffer = new sw::Resource(length + 192 + 1024); // NOTE: Applications can 'overshoot' whil… in Lock() 205 buffer = (void*)vertexBuffer->data(); in Lock() 209 buffer = (void*)vertexBuffer->data(); in Lock() 213 buffer = vertexBuffer->lock(sw::PUBLIC); in Lock() 230 vertexBuffer->unlock(); in Unlock() 265 return vertexBuffer; in getResource()
|
D | Direct3DStateBlock9.cpp | 38 streamSource[stream].vertexBuffer = 0; in Direct3DStateBlock9() 192 …device->SetStreamSource(stream, streamSource[stream].vertexBuffer, streamSource[stream].offset, st… in Apply() 412 Direct3DVertexBuffer9 *vertexBuffer; in Capture() local 413 …device->GetStreamSource(stream, reinterpret_cast<IDirect3DVertexBuffer9**>(&vertexBuffer), &stream… in Capture() 415 if(vertexBuffer) in Capture() 417 vertexBuffer->bind(); in Capture() 418 vertexBuffer->Release(); in Capture() 421 if(streamSource[stream].vertexBuffer) in Capture() 423 streamSource[stream].vertexBuffer->unbind(); in Capture() 426 streamSource[stream].vertexBuffer = vertexBuffer; in Capture() [all …]
|
/external/skqp/src/gpu/mtl/ |
D | GrMtlGpuCommandBuffer.h | 93 void bindGeometry(const GrBuffer* vertexBuffer, const GrBuffer* instanceBuffer); 97 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu() argument 99 this->sendInstancedMeshToGpu(primType, vertexBuffer, vertexCount, baseVertex, nullptr, 1, in sendMeshToGpu() 105 const GrBuffer* vertexBuffer, int baseVertex, in sendIndexedMeshToGpu() argument 109 vertexBuffer, baseVertex, nullptr, 1, 0, in sendIndexedMeshToGpu() 113 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount, 118 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
|
D | GrMtlGpuCommandBuffer.mm | 273 void GrMtlGpuRTCommandBuffer::bindGeometry(const GrBuffer* vertexBuffer, 276 if (vertexBuffer) { 277 SkASSERT(!vertexBuffer->isCPUBacked()); 278 SkASSERT(!vertexBuffer->isMapped()); 280 auto mtlVertexBuffer = static_cast<const GrMtlBuffer*>(vertexBuffer)->mtlBuffer(); 299 const GrBuffer* vertexBuffer, 305 this->bindGeometry(vertexBuffer, instanceBuffer); 319 const GrBuffer* vertexBuffer, 325 this->bindGeometry(vertexBuffer, instanceBuffer);
|
/external/skia/src/gpu/mtl/ |
D | GrMtlGpuCommandBuffer.h | 91 void bindGeometry(const GrBuffer* vertexBuffer, const GrBuffer* instanceBuffer); 95 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu() argument 97 this->sendInstancedMeshToGpu(primType, vertexBuffer, vertexCount, baseVertex, nullptr, 1, in sendMeshToGpu() 103 const GrBuffer* vertexBuffer, int baseVertex, in sendIndexedMeshToGpu() argument 107 vertexBuffer, baseVertex, nullptr, 1, 0, in sendIndexedMeshToGpu() 111 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount, 116 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
|
D | GrMtlGpuCommandBuffer.mm | 274 void GrMtlGpuRTCommandBuffer::bindGeometry(const GrBuffer* vertexBuffer, 277 if (vertexBuffer) { 278 SkASSERT(!vertexBuffer->isCpuBuffer()); 279 SkASSERT(!static_cast<const GrGpuBuffer*>(vertexBuffer)->isMapped()); 281 auto mtlVertexBuffer = static_cast<const GrMtlBuffer*>(vertexBuffer)->mtlBuffer(); 300 const GrBuffer* vertexBuffer, 306 this->bindGeometry(vertexBuffer, instanceBuffer); 320 const GrBuffer* vertexBuffer, 326 this->bindGeometry(vertexBuffer, instanceBuffer);
|
/external/skqp/src/gpu/vk/ |
D | GrVkGpuCommandBuffer.h | 100 const GrBuffer* vertexBuffer, 119 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu() argument 121 this->sendInstancedMeshToGpu(primType, vertexBuffer, vertexCount, baseVertex, nullptr, 1, in sendMeshToGpu() 127 const GrBuffer* vertexBuffer, int baseVertex, in sendIndexedMeshToGpu() argument 131 vertexBuffer, baseVertex, nullptr, 1, 0, in sendIndexedMeshToGpu() 135 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount, 140 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
|
/external/skia/src/gpu/vk/ |
D | GrVkGpuCommandBuffer.h | 100 const GrGpuBuffer* vertexBuffer, 119 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu() argument 121 this->sendInstancedMeshToGpu(primType, vertexBuffer, vertexCount, baseVertex, nullptr, 1, in sendMeshToGpu() 127 const GrBuffer* vertexBuffer, int baseVertex, in sendIndexedMeshToGpu() argument 131 vertexBuffer, baseVertex, nullptr, 1, 0, in sendIndexedMeshToGpu() 135 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount, 140 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
|
D | GrVkGpuCommandBuffer.cpp | 594 const GrGpuBuffer* vertexBuffer, in bindGeometry() argument 606 if (vertexBuffer) { in bindGeometry() 607 SkASSERT(vertexBuffer); in bindGeometry() 608 SkASSERT(!vertexBuffer->isMapped()); in bindGeometry() 611 static_cast<const GrVkVertexBuffer*>(vertexBuffer)); in bindGeometry() 797 const GrBuffer* vertexBuffer, in sendInstancedMeshToGpu() argument 804 SkASSERT(!vertexBuffer || !vertexBuffer->isCpuBuffer()); in sendInstancedMeshToGpu() 806 auto gpuVertexBuffer = static_cast<const GrGpuBuffer*>(vertexBuffer); in sendInstancedMeshToGpu() 817 const GrBuffer* vertexBuffer, in sendIndexedInstancedMeshToGpu() argument 825 SkASSERT(!vertexBuffer || !vertexBuffer->isCpuBuffer()); in sendIndexedInstancedMeshToGpu() [all …]
|
/external/swiftshader/src/D3D8/ |
D | Direct3DStateBlock8.cpp | 35 streamSource[stream].vertexBuffer = 0; in Direct3DStateBlock8() 146 device->SetStreamSource(stream, streamSource[stream].vertexBuffer, streamSource[stream].stride); in Apply() 229 if(streamSource[stream].vertexBuffer) in Capture() 231 streamSource[stream].vertexBuffer->Release(); in Capture() 234 …eam, reinterpret_cast<IDirect3DVertexBuffer8**>(&streamSource[stream].vertexBuffer), &streamSource… in Capture() 360 streamSource[stream].vertexBuffer = data; in setStreamSource() 455 if(streamSource[stream].vertexBuffer) in clear() 457 streamSource[stream].vertexBuffer->Release(); in clear() 458 streamSource[stream].vertexBuffer = 0; in clear() 682 …eam, reinterpret_cast<IDirect3DVertexBuffer8**>(&streamSource[stream].vertexBuffer), &streamSourc… in captureVertexStreams() [all …]
|
D | Direct3DVertexBuffer8.cpp | 66 …vertexBuffer = new sw::Resource(length + 192 + 1024); // NOTE: Applications can 'overshoot' whil… in Direct3DVertexBuffer8() 71 vertexBuffer->destruct(); in ~Direct3DVertexBuffer8() 180 *data = (unsigned char*)vertexBuffer->lock(sw::PUBLIC) + offset; in Lock() 181 vertexBuffer->unlock(); in Lock() 219 return vertexBuffer; in getResource()
|
/external/swiftshader/third_party/PowerVR_SDK/Examples/Beginner/01_HelloAPI/OGLES2/ |
D | OGLES2HelloAPI_LinuxX11.cpp | 381 bool InitialiseBuffer(GLuint &vertexBuffer) in InitialiseBuffer() argument 404 glGenBuffers(1, &vertexBuffer); in InitialiseBuffer() 407 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer); in InitialiseBuffer() 693 …iseGLState( GLuint fragmentShader, GLuint vertexShader, GLuint shaderProgram, GLuint vertexBuffer ) in DeInitialiseGLState() argument 701 glDeleteBuffers(1, &vertexBuffer); in DeInitialiseGLState() 766 GLuint vertexBuffer = 0; in main() local 805 if (!InitialiseBuffer(vertexBuffer)) in main() 826 DeInitialiseGLState(fragmentShader, vertexShader, shaderProgram, vertexBuffer); in main()
|
/external/swiftshader/src/OpenGL/libGLES_CM/ |
D | VertexDataManager.cpp | 60 unsigned int VertexDataManager::writeAttributeData(StreamingVertexBuffer *vertexBuffer, GLint start… in writeAttributeData() argument 70 if(vertexBuffer) in writeAttributeData() 72 output = (char*)vertexBuffer->map(attribute, attribute.typeSize() * count, &streamOffset); in writeAttributeData() 110 vertexBuffer->unmap(); in writeAttributeData() 156 translated[i].vertexBuffer = staticBuffer; in prepareVertexData() 169 translated[i].vertexBuffer = mStreamingBuffer->getResource(); in prepareVertexData() 199 translated[i].vertexBuffer = mCurrentValueBuffer[i]->getResource(); in prepareVertexData()
|
/external/skqp/src/gpu/ops/ |
D | GrDrawVerticesOp.cpp | 230 sk_sp<const GrBuffer> vertexBuffer = nullptr; in drawVolatile() local 232 void* verts = target->makeVertexSpace(vertexStride, fVertexCount, &vertexBuffer, &firstVertex); in drawVolatile() 258 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), firstVertex, indexBuffer, in drawVolatile() 289 sk_sp<GrBuffer> vertexBuffer = rp->findByUniqueKey<GrBuffer>(vertexKey); in drawNonVolatile() local 295 if (vertexBuffer && (!this->isIndexed() || indexBuffer)) { in drawNonVolatile() 296 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), 0, in drawNonVolatile() 303 vertexBuffer = rp->createBuffer(fVertexCount * vertexStride, in drawNonVolatile() 307 void* verts = vertexBuffer ? vertexBuffer->map() : nullptr; in drawNonVolatile() 336 vertexBuffer->unmap(); in drawNonVolatile() 342 rp->assignUniqueKeyToResource(vertexKey, vertexBuffer.get()); in drawNonVolatile() [all …]
|
D | GrMeshDrawOp.cpp | 39 sk_sp<const GrBuffer> vertexBuffer; in init() local 42 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init() 47 SkASSERT(vertexBuffer); in init() 53 fMesh->setVertexData(std::move(vertexBuffer), firstVertex); in init()
|
/external/skia/src/gpu/ops/ |
D | GrDrawVerticesOp.cpp | 64 sk_sp<const GrBuffer> vertexBuffer, 291 sk_sp<const GrBuffer> vertexBuffer; in drawVolatile() local 293 void* verts = target->makeVertexSpace(vertexStride, fVertexCount, &vertexBuffer, &firstVertex); in drawVolatile() 318 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), firstVertex, indexBuffer, in drawVolatile() 347 sk_sp<GrGpuBuffer> vertexBuffer = rp->findByUniqueKey<GrGpuBuffer>(vertexKey); in drawNonVolatile() local 352 if (vertexBuffer && (!this->isIndexed() || indexBuffer)) { in drawNonVolatile() 353 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), 0, in drawNonVolatile() 360 vertexBuffer = rp->createBuffer( in drawNonVolatile() 362 void* verts = vertexBuffer ? vertexBuffer->map() : nullptr; in drawNonVolatile() 388 vertexBuffer->unmap(); in drawNonVolatile() [all …]
|
D | GrMeshDrawOp.cpp | 35 sk_sp<const GrBuffer> vertexBuffer; in init() local 38 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init() 43 SkASSERT(vertexBuffer); in init() 49 fMesh->setVertexData(std::move(vertexBuffer), firstVertex); in init()
|
/external/skqp/src/gpu/ |
D | GrMesh.h | 48 void setVertexData(sk_sp<const GrBuffer> vertexBuffer, int baseVertex = 0); 52 virtual void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount, 57 uint16_t maxIndexValue, const GrBuffer* vertexBuffer, 60 virtual void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, 67 const GrBuffer* vertexBuffer, int baseVertex, 199 inline void GrMesh::setVertexData(sk_sp<const GrBuffer> vertexBuffer, int baseVertex) { in setVertexData() argument 201 fVertexBuffer = std::move(vertexBuffer); in setVertexData()
|
/external/skia/src/gpu/ |
D | GrMesh.h | 54 void setVertexData(sk_sp<const GrBuffer> vertexBuffer, int baseVertex = 0); 58 virtual void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount, 63 uint16_t maxIndexValue, const GrBuffer* vertexBuffer, 66 virtual void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, 73 const GrBuffer* vertexBuffer, int baseVertex, 215 inline void GrMesh::setVertexData(sk_sp<const GrBuffer> vertexBuffer, int baseVertex) { in setVertexData() argument 217 fVertexBuffer = std::move(vertexBuffer); in setVertexData()
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
D | VertexDataManager.cpp | 59 unsigned int VertexDataManager::writeAttributeData(StreamingVertexBuffer *vertexBuffer, GLint start… in writeAttributeData() argument 69 if(vertexBuffer) in writeAttributeData() 71 output = (char*)vertexBuffer->map(attribute, attribute.typeSize() * count, &streamOffset); in writeAttributeData() 107 vertexBuffer->unmap(); in writeAttributeData() 167 translated[i].vertexBuffer = staticBuffer; in prepareVertexData() 180 translated[i].vertexBuffer = mStreamingBuffer->getResource(); in prepareVertexData() 214 translated[i].vertexBuffer = mCurrentValueBuffer[i]->getResource(); in prepareVertexData()
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineReferenceRenderer.cpp | 256 const std::vector<Vertex4RGBA>& vertexBuffer) in draw() argument 258 const rr::PrimitiveList primitives(primitive, (int)vertexBuffer.size(), 0); in draw() 263 for (size_t vertexNdx = 0; vertexNdx < vertexBuffer.size(); vertexNdx++) in draw() 265 const Vertex4RGBA& v = vertexBuffer[vertexNdx]; in draw() 288 const std::vector<Vertex4Tex4>& vertexBuffer) in draw() argument 290 const rr::PrimitiveList primitives(primitive, (int)vertexBuffer.size(), 0); in draw() 295 for (size_t vertexNdx = 0; vertexNdx < vertexBuffer.size(); vertexNdx++) in draw() 297 const Vertex4Tex4& v = vertexBuffer[vertexNdx]; in draw()
|
/external/skia/src/gpu/gl/ |
D | GrGLVertexArray.cpp | 84 const GrBuffer* vertexBuffer, in set() argument 95 if (vertexBuffer->isCpuBuffer()) { in set() 100 offsetAsPtr = static_cast<const GrCpuBuffer*>(vertexBuffer)->data() + offsetInBytes; in set() 102 auto gpuBuffer = static_cast<const GrGpuBuffer*>(vertexBuffer); in set() 117 gpu->bindBuffer(GrGpuBufferType::kVertex, vertexBuffer); in set()
|
/external/skqp/src/gpu/gl/ |
D | GrGLVertexArray.cpp | 83 const GrBuffer* vertexBuffer, in set() argument 92 if (array->fVertexBufferUniqueID != vertexBuffer->uniqueID() || in set() 97 gpu->bindBuffer(kVertex_GrBufferType, vertexBuffer); in set() 116 array->fVertexBufferUniqueID = vertexBuffer->uniqueID(); in set()
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawDifferingInterpolationTests.cpp | 177 de::SharedPtr<Buffer> vertexBuffer; in iterate() local 246 …vertexBuffer = Buffer::createAndAlloc(vk, device, BufferCreateInfo(dataSize, VK_BUFFER_USAGE… in iterate() 247 deUint8* ptr = reinterpret_cast<deUint8*>(vertexBuffer->getBoundMemory().getHostPtr()); in iterate() 250 …flushMappedMemoryRange(vk, device, vertexBuffer->getBoundMemory().getMemory(), vertexBuffer->getBo… in iterate() 301 const VkBuffer buffer = vertexBuffer->object(); in iterate()
|
/external/skia/gm/ |
D | fwidth_squircle.cpp | 141 sk_sp<const GrBuffer> vertexBuffer(flushState->resourceProvider()->createBuffer( in onExecute() local 143 if (!vertexBuffer) { in onExecute() 149 mesh.setVertexData(std::move(vertexBuffer)); in onExecute()
|