Home
last modified time | relevance | path

Searched refs:mIndexBuffer (Results 1 – 23 of 23) sorted by relevance

/external/swiftshader/src/OpenGL/libGLES_CM/
DIndexDataManager.cpp154 StreamingIndexBuffer::StreamingIndexBuffer(unsigned int initialSize) : mIndexBuffer(nullptr), mBuff… in StreamingIndexBuffer()
158 mIndexBuffer = new sw::Resource(initialSize + 16); in StreamingIndexBuffer()
160 if(!mIndexBuffer) in StreamingIndexBuffer()
171 if(mIndexBuffer) in ~StreamingIndexBuffer()
173 mIndexBuffer->destruct(); in ~StreamingIndexBuffer()
181 if(mIndexBuffer) in map()
183 mapPtr = (char*)mIndexBuffer->lock(sw::PUBLIC) + mWritePosition; in map()
200 if(mIndexBuffer) in unmap()
202 mIndexBuffer->unlock(); in unmap()
210 if(mIndexBuffer) in reserveSpace()
[all …]
DIndexDataManager.h50 sw::Resource *mIndexBuffer;
/external/angle/src/libANGLE/renderer/d3d/
DIndexBuffer.cpp39 mIndexBuffer = factory->createIndexBuffer(); in IndexBufferInterface()
47 if (mIndexBuffer) in ~IndexBufferInterface()
49 delete mIndexBuffer; in ~IndexBufferInterface()
55 return mIndexBuffer->getIndexType(); in getIndexType()
60 return mIndexBuffer->getBufferSize(); in getBufferSize()
65 return mIndexBuffer->getSerial(); in getSerial()
79 angle::Result error = mIndexBuffer->mapBuffer(context, mWritePosition, size, outMappedMemory); in mapBuffer()
100 return mIndexBuffer->unmapBuffer(context); in unmapBuffer()
105 return mIndexBuffer; in getIndexBuffer()
120 return mIndexBuffer->discard(context); in discard()
[all …]
DIndexBuffer.h95 IndexBuffer *mIndexBuffer;
/external/angle/src/libANGLE/renderer/d3d/d3d9/
DIndexBuffer9.cpp19 mIndexBuffer = nullptr; in IndexBuffer9()
27 SafeRelease(mIndexBuffer); in ~IndexBuffer9()
35 SafeRelease(mIndexBuffer); in initialize()
62 mRenderer->createIndexBuffer(bufferSize, usageFlags, format, &mIndexBuffer); in initialize()
79 ASSERT(mIndexBuffer); in mapBuffer()
84 HRESULT result = mIndexBuffer->Lock(offset, size, &mapPtr, lockFlags); in mapBuffer()
93 ASSERT(mIndexBuffer); in unmapBuffer()
94 HRESULT result = mIndexBuffer->Unlock(); in unmapBuffer()
124 ASSERT(mIndexBuffer); in discard()
131 result = mIndexBuffer->Lock(0, 1, &mock, D3DLOCK_DISCARD); in discard()
[all …]
DIndexBuffer9.h49 IDirect3DIndexBuffer9 *mIndexBuffer; variable
/external/swiftshader/src/OpenGL/libGLESv2/
DIndexDataManager.cpp373 StreamingIndexBuffer::StreamingIndexBuffer(size_t initialSize) : mIndexBuffer(NULL), mBufferSize(in… in StreamingIndexBuffer()
377 mIndexBuffer = new sw::Resource(initialSize + 16); in StreamingIndexBuffer()
379 if(!mIndexBuffer) in StreamingIndexBuffer()
390 if(mIndexBuffer) in ~StreamingIndexBuffer()
392 mIndexBuffer->destruct(); in ~StreamingIndexBuffer()
400 if(mIndexBuffer) in map()
402 mapPtr = (char*)mIndexBuffer->lock(sw::PUBLIC) + mWritePosition; in map()
419 if(mIndexBuffer) in unmap()
421 mIndexBuffer->unlock(); in unmap()
429 if(mIndexBuffer) in reserveSpace()
[all …]
DIndexDataManager.h53 sw::Resource *mIndexBuffer;
/external/replicaisland/src/com/replica/replicaisland/
DGrid.java46 private CharBuffer mIndexBuffer; field in Grid
110 mIndexBuffer = ByteBuffer.allocateDirect(CHAR_SIZE * indexCount) in Grid()
136 mIndexBuffer.put(i++, a); in Grid()
137 mIndexBuffer.put(i++, b); in Grid()
138 mIndexBuffer.put(i++, c); in Grid()
140 mIndexBuffer.put(i++, b); in Grid()
141 mIndexBuffer.put(i++, c); in Grid()
142 mIndexBuffer.put(i++, d); in Grid()
247 GL10.GL_UNSIGNED_SHORT, mIndexBuffer.position(startIndex)); in drawStrip()
265 GL10.GL_UNSIGNED_SHORT, mIndexBuffer); in draw()
[all …]
/external/angle/samples/torus_lighting/
DTorusLightingES1.cpp31 GenerateTorus(&mVertexBuffer, &mIndexBuffer, &mIndexCount); in initialize()
39 glDeleteBuffers(1, &mIndexBuffer); in destroy()
76 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in draw()
88 GLuint mIndexBuffer; member in GLES1TorusLightingSample
DTorusLightingES2.cpp62 GenerateTorus(&mVertexBuffer, &mIndexBuffer, &mIndexCount); in initialize()
71 glDeleteBuffers(1, &mIndexBuffer); in destroy()
101 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in draw()
119 GLuint mIndexBuffer; member in GLES2TorusLightingSample
/external/angle/src/tests/perf_tests/
DIndexConversionPerf.cpp65 GLuint mIndexBuffer; member in __anon51cb56d10111::IndexConversionPerfTest
73 mIndexBuffer(0) in IndexConversionPerfTest()
112 glGenBuffers(1, &mIndexBuffer); in initializeBenchmark()
113 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in initializeBenchmark()
132 glDeleteBuffers(1, &mIndexBuffer); in destroyBenchmark()
DIndexDataManagerTest.cpp158 gl::Buffer mIndexBuffer; member in __anon088433530111::IndexDataManagerPerfTest
168 mIndexBuffer(&mMockGLFactory, {1}) in IndexDataManagerPerfTest()
177 mIndexBuffer.bufferData(nullptr, gl::BufferBinding::Array, &indexData[0],
187 (void)mIndexBuffer.getIndexRange(nullptr, gl::DrawElementsType::UnsignedShort, 0, in step()
191 &mIndexBuffer, nullptr, &translatedIndexData); in step()
DDrawElementsPerf.cpp80 GLuint mIndexBuffer = 0; member in __anon0af64dbe0111::DrawElementsPerfBenchmark
123 mIndexBuffer = CreateElementArrayBuffer(mCount, params.type, GL_STATIC_DRAW); in initializeBenchmark()
132 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in initializeBenchmark()
163 glDeleteBuffers(1, &mIndexBuffer); in destroyBenchmark()
DVulkanBarriersPerf.cpp97 GLBuffer mIndexBuffer; member in __anonb15f171e0111::VulkanBarriersPerfBenchmark
253 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in createResources()
291 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in drawBenchmark()
/external/angle/src/tests/gl_tests/
DBuiltinVariableTest.cpp74 glDeleteBuffers(1, &mIndexBuffer); in testTearDown()
85 glGenBuffers(1, &mIndexBuffer); in runTest()
86 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in runTest()
106 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in runTest()
137 GLuint mIndexBuffer = 0; member in BuiltinVariableVertexIdTest
DIndexedPointsTest.cpp96 glGenBuffers(1, &mIndexBuffer); in testSetUp()
97 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in testSetUp()
104 glDeleteBuffers(1, &mIndexBuffer); in testTearDown()
144 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in runTest()
180 GLuint mIndexBuffer; member in IndexedPointsTest
DMultiDrawTest.cpp102 mIndexBuffer(0u), in MultiDrawTest()
241 glGenBuffers(1, &mIndexBuffer); in SetupBuffers()
242 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in SetupBuffers()
298 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in DoDrawElements()
374 if (mIndexBuffer != 0u) in TearDown()
376 glDeleteBuffers(1, &mIndexBuffer); in TearDown()
436 GLuint mIndexBuffer; member in __anon5c2279250111::MultiDrawTest
513 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in TEST_P()
DIndexBufferOffsetTest.cpp59 glGenBuffers(1, &mIndexBuffer); in testSetUp()
60 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in testSetUp()
66 glDeleteBuffers(1, &mIndexBuffer); in testTearDown()
129 preTestUpdateBuffer(elementUpdateFbo, elementUpdateTex, mIndexBuffer, in runTest()
195 GLuint mIndexBuffer; member in IndexBufferOffsetTest
DAttributeLayoutTest.cpp273 glGenBuffers(1, &mIndexBuffer); in testSetUp()
282 glDeleteBuffers(1, &mIndexBuffer); in testTearDown()
334 GLuint mIndexBuffer; member in __anon38b351fe0111::AttributeLayoutTest
448 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in Draw()
/external/angle/src/libANGLE/renderer/gl/egl/gbm/
DDisplayGbm.cpp364 mIndexBuffer(0), in DisplayGbm()
717 gl->genBuffers(1, &mIndexBuffer); in drawWithTexture()
718 sm->bindBuffer(gl::BufferBinding::ElementArray, mIndexBuffer); in drawWithTexture()
725 sm->bindBuffer(gl::BufferBinding::ElementArray, mIndexBuffer); in drawWithTexture()
848 gl->deleteBuffers(1, &mIndexBuffer); in terminate()
DDisplayGbm.h176 GLuint mIndexBuffer; variable
/external/angle/doc/
DBufferImplementation.md48 (Buffer::mVertexBuffer and Buffer::mIndexBuffer). When a GL buffer with static