Home
last modified time | relevance | path

Searched refs:mVertexBuffer (Results 1 – 24 of 24) sorted by relevance

/external/angle/src/libANGLE/renderer/d3d/
DVertexBuffer.cpp59 : mFactory(factory), mVertexBuffer(factory->createVertexBuffer()), mDynamic(dynamic) in VertexBufferInterface()
64 if (mVertexBuffer) in ~VertexBufferInterface()
66 mVertexBuffer->release(); in ~VertexBufferInterface()
67 mVertexBuffer = nullptr; in ~VertexBufferInterface()
73 ASSERT(mVertexBuffer); in getSerial()
74 return mVertexBuffer->getSerial(); in getSerial()
79 ASSERT(mVertexBuffer); in getBufferSize()
80 return mVertexBuffer->getBufferSize(); in getBufferSize()
85 ASSERT(mVertexBuffer); in setBufferSize()
86 if (mVertexBuffer->getBufferSize() == 0) in setBufferSize()
[all …]
DVertexBuffer.h107 VertexBuffer *mVertexBuffer; variable
/external/swiftshader/src/OpenGL/libGLES_CM/
DVertexDataManager.cpp211 VertexBuffer::VertexBuffer(unsigned int size) : mVertexBuffer(nullptr) in VertexBuffer()
215 mVertexBuffer = new sw::Resource(size + 1024); in VertexBuffer()
217 if(!mVertexBuffer) in VertexBuffer()
226 if(mVertexBuffer) in ~VertexBuffer()
228 mVertexBuffer->destruct(); in ~VertexBuffer()
234 if(mVertexBuffer) in unmap()
236 mVertexBuffer->unlock(); in unmap()
242 return mVertexBuffer; in getResource()
247 if(mVertexBuffer) in ConstantVertexBuffer()
249 float *vector = (float*)mVertexBuffer->lock(sw::PUBLIC); in ConstantVertexBuffer()
[all …]
DVertexDataManager.h52 sw::Resource *mVertexBuffer;
/external/swiftshader/src/OpenGL/libGLESv2/
DVertexDataManager.cpp239 VertexBuffer::VertexBuffer(unsigned int size) : mVertexBuffer(nullptr) in VertexBuffer()
243 mVertexBuffer = new sw::Resource(size + 1024); in VertexBuffer()
245 if(!mVertexBuffer) in VertexBuffer()
254 if(mVertexBuffer) in ~VertexBuffer()
256 mVertexBuffer->destruct(); in ~VertexBuffer()
262 if(mVertexBuffer) in unmap()
264 mVertexBuffer->unlock(); in unmap()
270 return mVertexBuffer; in getResource()
275 if(mVertexBuffer) in ConstantVertexBuffer()
277 float *vector = (float*)mVertexBuffer->lock(sw::PUBLIC); in ConstantVertexBuffer()
[all …]
DVertexDataManager.h52 sw::Resource *mVertexBuffer;
/external/angle/src/libANGLE/renderer/d3d/d3d9/
DVertexBuffer9.cpp24 mVertexBuffer = nullptr; in VertexBuffer9()
31 SafeRelease(mVertexBuffer); in ~VertexBuffer9()
38 SafeRelease(mVertexBuffer); in initialize()
50 HRESULT result = mRenderer->createVertexBuffer(size, flags, &mVertexBuffer); in initialize()
70 ASSERT(mVertexBuffer); in storeVertexAttributes()
84 mVertexBuffer->Lock(offset, mapSize, reinterpret_cast<void **>(&mapPtr), lockFlags); in storeVertexAttributes()
109 mVertexBuffer->Unlock(); in storeVertexAttributes()
133 ASSERT(mVertexBuffer); in discard()
140 result = mVertexBuffer->Lock(0, 1, &dummy, D3DLOCK_DISCARD); in discard()
143 result = mVertexBuffer->Unlock(); in discard()
[all …]
DVertexBuffer9.h49 IDirect3DVertexBuffer9 *mVertexBuffer; variable
/external/angle/src/tests/gl_tests/
DIndexBufferOffsetTest.cpp54 glGenBuffers(1, &mVertexBuffer); in testSetUp()
55 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in testSetUp()
64 glDeleteBuffers(1, &mVertexBuffer); in testTearDown()
85 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in runTest()
111 GLuint mVertexBuffer; member in IndexBufferOffsetTest
157 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in TEST_P()
189 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in TEST_P()
DMultiDrawTest.cpp92 mVertexBuffer(0u), in MultiDrawTest()
221 glGenBuffers(1, &mVertexBuffer); in SetupBuffers()
222 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in SetupBuffers()
284 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in DoDrawElements()
355 if (mVertexBuffer != 0u) in TearDown()
357 glDeleteBuffers(1, &mVertexBuffer); in TearDown()
420 GLuint mVertexBuffer; member in __anon9fa252490111::MultiDrawTest
495 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in TEST_P()
DIndexedPointsTest.cpp90 glGenBuffers(1, &mVertexBuffer); in testSetUp()
91 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in testSetUp()
103 glDeleteBuffers(1, &mVertexBuffer); in testTearDown()
138 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in runTest()
179 GLuint mVertexBuffer; member in IndexedPointsTest
/external/replicaisland/src/com/replica/replicaisland/
DGrid.java48 private Buffer mVertexBuffer; field in Grid
87 mVertexBuffer = mFixedVertexBuffer; in Grid()
98 mVertexBuffer = mFloatVertexBuffer; in Grid()
220 gl.glVertexPointer(3, mCoordinateType, 0, mVertexBuffer); in beginDrawingStrips()
258 gl.glVertexPointer(3, mCoordinateType, 0, mVertexBuffer); in draw()
346 final int vertexSize = mVertexBuffer.capacity() * mCoordinateSize; in generateHardwareBuffers()
349 mVertexBuffer.position(0); in generateHardwareBuffers()
351 mVertexBuffer, GL11.GL_STATIC_DRAW); in generateHardwareBuffers()
/external/angle/src/tests/perf_tests/
DIndexConversionPerf.cpp64 GLuint mVertexBuffer; member in __anon819413f50111::IndexConversionPerfTest
72 mVertexBuffer(0), in IndexConversionPerfTest()
90 mVertexBuffer = Create2DTriangleBuffer(numTris, GL_STATIC_DRAW); in initializeBenchmark()
131 glDeleteBuffers(1, &mVertexBuffer); in destroyBenchmark()
DLinkProgramPerfTest.cpp104 GLuint mVertexBuffer = 0; member in __anon9da4335d0111::LinkProgramBenchmark
120 glGenBuffers(1, &mVertexBuffer); in initializeBenchmark()
121 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in initializeBenchmark()
128 glDeleteBuffers(1, &mVertexBuffer); in destroyBenchmark()
DVulkanBarriersPerf.cpp89 GLBuffer mVertexBuffer; member in __anon36b2bfc20111::VulkanBarriersPerfBenchmark
218 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in createResources()
258 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in drawBenchmark()
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DClear11.cpp224 mVertexBuffer(), in Clear11()
342 if (mVertexBuffer.valid()) in ensureVertexBufferCreated()
371 &mVertexBuffer)); in ensureVertexBufferCreated()
372 mVertexBuffer.setDebugName("Clear11 Vertex Buffer"); in ensureVertexBufferCreated()
761 stateManager->setSingleVertexBuffer(&mVertexBuffer, g_VertexSize, 0); in clearFramebuffer()
DBlit11.cpp532 mVertexBuffer(), in Blit11()
594 ANGLE_TRY(mRenderer->allocateResource(context11, vbDesc, &mVertexBuffer)); in initResources()
595 mVertexBuffer.setDebugName("Blit11 vertex buffer"); in initResources()
845 ANGLE_TRY(mRenderer->mapResource(context, mVertexBuffer.get(), 0, D3D11_MAP_WRITE_DISCARD, 0, in swizzleTexture()
859 deviceContext->Unmap(mVertexBuffer.get(), 0); in swizzleTexture()
876 stateManager->setSingleVertexBuffer(&mVertexBuffer, stride, 0); in swizzleTexture()
975 ANGLE_TRY(mRenderer->mapResource(context, mVertexBuffer.get(), 0, D3D11_MAP_WRITE_DISCARD, 0, in copyTexture()
985 deviceContext->Unmap(mVertexBuffer.get(), 0); in copyTexture()
990 stateManager->setSingleVertexBuffer(&mVertexBuffer, stride, 0); in copyTexture()
1079 ANGLE_TRY(mRenderer->mapResource(context, mVertexBuffer.get(), 0, D3D11_MAP_WRITE_DISCARD, 0, in copyDepth()
[all …]
DClear11.h94 d3d11::Buffer mVertexBuffer; variable
DBlit11.h268 d3d11::Buffer mVertexBuffer; variable
/external/angle/src/libANGLE/renderer/gl/egl/ozone/
DDisplayOzone.cpp368 mVertexBuffer(0), in DisplayOzone()
715 gl->genBuffers(1, &mVertexBuffer); in drawWithTexture()
716 sm->bindBuffer(gl::BufferBinding::Array, mVertexBuffer); in drawWithTexture()
729 sm->bindBuffer(gl::BufferBinding::Array, mVertexBuffer); in drawWithTexture()
852 gl->deleteBuffers(1, &mVertexBuffer); in terminate()
DDisplayOzone.h184 GLuint mVertexBuffer; variable
/external/angle/src/libANGLE/renderer/gl/
DBlitGL.h174 GLuint mVertexBuffer; variable
DBlitGL.cpp225 mVertexBuffer(0) in BlitGL()
1000 if (mVertexBuffer == 0) in initializeResources()
1002 ANGLE_GL_TRY(context, mFunctions->genBuffers(1, &mVertexBuffer)); in initializeResources()
1003 mStateManager->bindBuffer(gl::BufferBinding::Array, mVertexBuffer); in initializeResources()
1020 mStateManager->bindBuffer(gl::BufferBinding::Array, mVertexBuffer); in initializeResources()
/external/angle/doc/
DBufferImplementation.md48 (Buffer::mVertexBuffer and Buffer::mIndexBuffer). When a GL buffer with static