Home
last modified time | relevance | path

Searched refs:vertexBuffer (Results 1 – 25 of 117) sorted by relevance

12345

/external/swiftshader/src/D3D9/
DDirect3DVertexBuffer9.cpp66vertexBuffer = new sw::Resource(length + 192 + 1024); // NOTE: Applications can 'overshoot' whil… in Direct3DVertexBuffer9()
72 vertexBuffer->destruct(); in ~Direct3DVertexBuffer9()
202 vertexBuffer->destruct(); in Lock()
203vertexBuffer = 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()
DDirect3DStateBlock9.cpp38 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/vk/
DGrVkGpuCommandBuffer.h87 const GrBuffer* vertexBuffer,
105 const GrBuffer* vertexBuffer, int vertexCount, int baseVertex) final { in sendMeshToGpu() argument
106 this->sendInstancedMeshToGpu(primProc, primType, vertexBuffer, vertexCount, baseVertex, in sendMeshToGpu()
113 const GrBuffer* vertexBuffer, int baseVertex) final { in sendIndexedMeshToGpu() argument
115 vertexBuffer, baseVertex, nullptr, 1, 0); in sendIndexedMeshToGpu()
119 const GrBuffer* vertexBuffer, int vertexCount, int baseVertex,
125 const GrBuffer* vertexBuffer, int baseVertex,
DGrVkGpuCommandBuffer.cpp516 const GrBuffer* vertexBuffer, in bindGeometry() argument
529 SkASSERT(vertexBuffer); in bindGeometry()
530 SkASSERT(!vertexBuffer->isCPUBacked()); in bindGeometry()
531 SkASSERT(!vertexBuffer->isMapped()); in bindGeometry()
534 static_cast<const GrVkVertexBuffer*>(vertexBuffer)); in bindGeometry()
697 const GrBuffer* vertexBuffer, in sendInstancedMeshToGpu() argument
704 this->bindGeometry(primProc, nullptr, vertexBuffer, instanceBuffer); in sendInstancedMeshToGpu()
714 const GrBuffer* vertexBuffer, in sendIndexedInstancedMeshToGpu() argument
720 this->bindGeometry(primProc, indexBuffer, vertexBuffer, instanceBuffer); in sendIndexedInstancedMeshToGpu()
/external/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.h87 const GrBuffer* vertexBuffer,
105 const GrBuffer* vertexBuffer, int vertexCount, int baseVertex) final { in sendMeshToGpu() argument
106 this->sendInstancedMeshToGpu(primProc, primType, vertexBuffer, vertexCount, baseVertex, in sendMeshToGpu()
113 const GrBuffer* vertexBuffer, int baseVertex) final { in sendIndexedMeshToGpu() argument
115 vertexBuffer, baseVertex, nullptr, 1, 0); in sendIndexedMeshToGpu()
119 const GrBuffer* vertexBuffer, int vertexCount, int baseVertex,
125 const GrBuffer* vertexBuffer, int baseVertex,
DGrVkGpuCommandBuffer.cpp464 const GrBuffer* vertexBuffer, in bindGeometry() argument
477 SkASSERT(vertexBuffer); in bindGeometry()
478 SkASSERT(!vertexBuffer->isCPUBacked()); in bindGeometry()
479 SkASSERT(!vertexBuffer->isMapped()); in bindGeometry()
482 static_cast<const GrVkVertexBuffer*>(vertexBuffer)); in bindGeometry()
653 const GrBuffer* vertexBuffer, in sendInstancedMeshToGpu() argument
660 this->bindGeometry(primProc, nullptr, vertexBuffer, instanceBuffer); in sendInstancedMeshToGpu()
670 const GrBuffer* vertexBuffer, in sendIndexedInstancedMeshToGpu() argument
676 this->bindGeometry(primProc, indexBuffer, vertexBuffer, instanceBuffer); in sendIndexedInstancedMeshToGpu()
/external/swiftshader/src/D3D8/
DDirect3DStateBlock8.cpp35 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 …]
DDirect3DVertexBuffer8.cpp66vertexBuffer = 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/
DOGLES2HelloAPI_LinuxX11.cpp381 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/skqp/src/gpu/
DGrMesh.h47 void setVertexData(const GrBuffer* vertexBuffer, int baseVertex = 0);
52 const GrBuffer* vertexBuffer, int vertexCount,
58 uint16_t maxIndexValue, const GrBuffer* vertexBuffer,
62 const GrBuffer* vertexBuffer, int vertexCount,
68 int baseIndex, const GrBuffer* vertexBuffer,
196 inline void GrMesh::setVertexData(const GrBuffer* vertexBuffer, int baseVertex) { in setVertexData() argument
198 fVertexBuffer.reset(vertexBuffer); in setVertexData()
/external/skia/src/gpu/
DGrMesh.h47 void setVertexData(const GrBuffer* vertexBuffer, int baseVertex = 0);
52 const GrBuffer* vertexBuffer, int vertexCount,
58 uint16_t maxIndexValue, const GrBuffer* vertexBuffer,
62 const GrBuffer* vertexBuffer, int vertexCount,
68 int baseIndex, const GrBuffer* vertexBuffer,
196 inline void GrMesh::setVertexData(const GrBuffer* vertexBuffer, int baseVertex) { in setVertexData() argument
198 fVertexBuffer.reset(vertexBuffer); in setVertexData()
/external/skia/src/gpu/ops/
DGrMeshDrawOp.cpp24 const GrBuffer* vertexBuffer; in init() local
28 target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init()
33 SkASSERT(vertexBuffer); in init()
39 fMesh.setVertexData(vertexBuffer, firstVertex); in init()
DGrTessellatingPathRenderer.cpp55 bool cache_match(GrBuffer* vertexBuffer, SkScalar tol, int* actualCount) { in cache_match() argument
56 if (!vertexBuffer) { in cache_match()
59 const SkData* data = vertexBuffer->getUniqueKey().getCustomData(); in cache_match()
100 GrBuffer* vertexBuffer() { return fVertexBuffer.get(); } in vertexBuffer() function in __anonead2b9b50111::StaticVertexAllocator
124 const GrBuffer* vertexBuffer() const { return fVertexBuffer; } in vertexBuffer() function in __anonead2b9b50111::DynamicVertexAllocator
281 this->drawVertices(target, gp, allocator.vertexBuffer(), 0, count); in draw()
286 rp->assignUniqueKeyToResource(key, allocator.vertexBuffer()); in draw()
307 this->drawVertices(target, gp, allocator.vertexBuffer(), allocator.firstVertex(), count); in drawAA()
/external/skqp/src/gpu/ops/
DGrMeshDrawOp.cpp24 const GrBuffer* vertexBuffer; in init() local
28 target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init()
33 SkASSERT(vertexBuffer); in init()
39 fMesh.setVertexData(vertexBuffer, firstVertex); in init()
DGrTessellatingPathRenderer.cpp55 bool cache_match(GrBuffer* vertexBuffer, SkScalar tol, int* actualCount) { in cache_match() argument
56 if (!vertexBuffer) { in cache_match()
59 const SkData* data = vertexBuffer->getUniqueKey().getCustomData(); in cache_match()
100 GrBuffer* vertexBuffer() { return fVertexBuffer.get(); } in vertexBuffer() function in __anonacfa9a6c0111::StaticVertexAllocator
124 const GrBuffer* vertexBuffer() const { return fVertexBuffer; } in vertexBuffer() function in __anonacfa9a6c0111::DynamicVertexAllocator
281 this->drawVertices(target, gp, allocator.vertexBuffer(), 0, count); in draw()
286 rp->assignUniqueKeyToResource(key, allocator.vertexBuffer()); in draw()
307 this->drawVertices(target, gp, allocator.vertexBuffer(), allocator.firstVertex(), count); in drawAA()
/external/swiftshader/src/OpenGL/libGLES_CM/
DVertexDataManager.cpp60 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()
DVertexDataManager.h38 sw::Resource *vertexBuffer; member
89 …unsigned int writeAttributeData(StreamingVertexBuffer *vertexBuffer, GLint start, GLsizei count, c…
/external/swiftshader/src/OpenGL/libGL/
DVertexDataManager.cpp59 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()
109 vertexBuffer->unmap(); in writeAttributeData()
161 translated[i].vertexBuffer = staticBuffer; in prepareVertexData()
174 translated[i].vertexBuffer = mStreamingBuffer->getResource(); in prepareVertexData()
204 translated[i].vertexBuffer = mCurrentValueBuffer[i]->getResource(); in prepareVertexData()
DVertexDataManager.h41 sw::Resource *vertexBuffer; member
92 …unsigned int writeAttributeData(StreamingVertexBuffer *vertexBuffer, GLint start, GLsizei count, c…
/external/swiftshader/src/OpenGL/libGLESv2/
DVertexDataManager.cpp59 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()
DVertexDataManager.h38 sw::Resource *vertexBuffer; member
89 …unsigned int writeAttributeData(StreamingVertexBuffer *vertexBuffer, GLint start, GLsizei count, c…
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineReferenceRenderer.cpp256 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/skqp/src/gpu/gl/
DGrGLVertexArray.cpp109 const GrBuffer* vertexBuffer, in set() argument
117 if (array->fVertexBufferUniqueID != vertexBuffer->uniqueID() || in set()
121 gpu->bindBuffer(kVertex_GrBufferType, vertexBuffer); in set()
140 array->fVertexBufferUniqueID = vertexBuffer->uniqueID(); in set()
/external/skia/src/gpu/gl/
DGrGLVertexArray.cpp109 const GrBuffer* vertexBuffer, in set() argument
117 if (array->fVertexBufferUniqueID != vertexBuffer->uniqueID() || in set()
121 gpu->bindBuffer(kVertex_GrBufferType, vertexBuffer); in set()
140 array->fVertexBufferUniqueID = vertexBuffer->uniqueID(); in set()
/external/deqp/modules/gles31/functional/
Des31fFboNoAttachmentTests.cpp123 GLuint vertexBuffer = 0; in checkFramebufferSize() local
129 gl.genBuffers(1, &vertexBuffer); in checkFramebufferSize()
130 gl.bindBuffer(GL_ARRAY_BUFFER, vertexBuffer); in checkFramebufferSize()
163 gl.deleteBuffers(1, &vertexBuffer); in checkFramebufferSize()
223 GLuint vertexBuffer = 0; in checkFramebufferRenderable() local
229 gl.genBuffers(1, &vertexBuffer); in checkFramebufferRenderable()
230 gl.bindBuffer(GL_ARRAY_BUFFER, vertexBuffer); in checkFramebufferRenderable()
243 gl.deleteBuffers(1, &vertexBuffer); in checkFramebufferRenderable()

12345