Home
last modified time | relevance | path

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

12

/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/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.h108 VertexBuffer *mVertexBuffer; variable
/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, &mock, D3DLOCK_DISCARD); in discard()
143 result = mVertexBuffer->Unlock(); in discard()
[all …]
DVertexBuffer9.h49 IDirect3DVertexBuffer9 *mVertexBuffer; variable
/external/angle/samples/torus_lighting/
DTorusLightingES1.cpp31 GenerateTorus(&mVertexBuffer, &mIndexBuffer, &mIndexCount); in initialize()
38 glDeleteBuffers(1, &mVertexBuffer); in destroy()
69 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in draw()
87 GLuint mVertexBuffer; member in GLES1TorusLightingSample
DTorusLightingES2.cpp62 GenerateTorus(&mVertexBuffer, &mIndexBuffer, &mIndexCount); in initialize()
70 glDeleteBuffers(1, &mVertexBuffer); in destroy()
94 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in draw()
118 GLuint mVertexBuffer; member in GLES2TorusLightingSample
/external/angle/src/tests/gl_tests/
DIndexBufferOffsetTest.cpp55 glGenBuffers(1, &mVertexBuffer); in testSetUp()
56 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in testSetUp()
65 glDeleteBuffers(1, &mVertexBuffer); in testTearDown()
152 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in runTest()
194 GLuint mVertexBuffer; member in IndexBufferOffsetTest
337 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in TEST_P()
373 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in TEST_P()
412 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
DMultiDrawTest.cpp101 mVertexBuffer(0u), in MultiDrawTest()
236 glGenBuffers(1, &mVertexBuffer); in SetupBuffers()
237 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in SetupBuffers()
299 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in DoDrawElements()
370 if (mVertexBuffer != 0u) in TearDown()
372 glDeleteBuffers(1, &mVertexBuffer); in TearDown()
435 GLuint mVertexBuffer; member in __anon5c2279250111::MultiDrawTest
514 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in TEST_P()
/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 __anon51cb56d10111::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 __anon6ddb76390111::LinkProgramBenchmark
120 glGenBuffers(1, &mVertexBuffer); in initializeBenchmark()
121 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in initializeBenchmark()
128 glDeleteBuffers(1, &mVertexBuffer); in destroyBenchmark()
DVulkanBarriersPerf.cpp96 GLBuffer mVertexBuffer; member in __anonb15f171e0111::VulkanBarriersPerfBenchmark
249 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in createResources()
290 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in drawBenchmark()
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DClear11.cpp224 mVertexBuffer(), in Clear11()
333 if (mVertexBuffer.valid()) in ensureVertexBufferCreated()
362 &mVertexBuffer)); in ensureVertexBufferCreated()
363 mVertexBuffer.setDebugName("Clear11 Vertex Buffer"); in ensureVertexBufferCreated()
743 stateManager->setSingleVertexBuffer(&mVertexBuffer, g_VertexSize, 0); in clearFramebuffer()
DBlit11.cpp536 mVertexBuffer(), in Blit11()
598 ANGLE_TRY(mRenderer->allocateResource(context11, vbDesc, &mVertexBuffer)); in initResources()
599 mVertexBuffer.setDebugName("Blit11 vertex buffer"); in initResources()
849 ANGLE_TRY(mRenderer->mapResource(context, mVertexBuffer.get(), 0, D3D11_MAP_WRITE_DISCARD, 0, in swizzleTexture()
863 deviceContext->Unmap(mVertexBuffer.get(), 0); in swizzleTexture()
880 stateManager->setSingleVertexBuffer(&mVertexBuffer, stride, 0); in swizzleTexture()
979 ANGLE_TRY(mRenderer->mapResource(context, mVertexBuffer.get(), 0, D3D11_MAP_WRITE_DISCARD, 0, in copyTexture()
989 deviceContext->Unmap(mVertexBuffer.get(), 0); in copyTexture()
994 stateManager->setSingleVertexBuffer(&mVertexBuffer, stride, 0); in copyTexture()
1083 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/gbm/
DDisplayGbm.cpp363 mVertexBuffer(0), in DisplayGbm()
710 gl->genBuffers(1, &mVertexBuffer); in drawWithTexture()
711 sm->bindBuffer(gl::BufferBinding::Array, mVertexBuffer); in drawWithTexture()
724 sm->bindBuffer(gl::BufferBinding::Array, mVertexBuffer); in drawWithTexture()
847 gl->deleteBuffers(1, &mVertexBuffer); in terminate()
DDisplayGbm.h175 GLuint mVertexBuffer; variable
/external/angle/src/libANGLE/renderer/gl/
DBlitGL.h209 GLuint mVertexBuffer = 0; variable
DBlitGL.cpp225 mVertexBuffer(0) in BlitGL()
1131 ANGLE_GL_TRY(context, mFunctions->genBuffers(1, &mVertexBuffer)); in initializeResources()
1132 mStateManager->bindBuffer(gl::BufferBinding::Array, mVertexBuffer); in initializeResources()
1250 mStateManager->bindBuffer(gl::BufferBinding::Array, mVertexBuffer); in initializeVAOState()
1264 binding.buffer = mVertexBuffer; in initializeVAOState()

12