Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/angle2/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 …]
/third_party/flutter/skia/third_party/externals/angle2/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 …]
/third_party/skia/third_party/externals/angle2/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 …]
/third_party/flutter/skia/third_party/externals/angle2/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, &dummy, D3DLOCK_DISCARD); in discard()
[all …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/angle2/samples/torus_lighting/
DTorusLightingES1.cpp36 GenerateTorus(&mVertexBuffer, &mIndexBuffer, &mIndexCount); in initialize()
47 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in initialize()
66 glDeleteBuffers(1, &mIndexBuffer); in destroy()
86 GLuint mIndexBuffer = 0; member in GLES1TorusLightingSample
DTorusLightingES2.cpp64 GenerateTorus(&mVertexBuffer, &mIndexBuffer, &mIndexCount); in initialize()
76 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in initialize()
94 glDeleteBuffers(1, &mIndexBuffer); in destroy()
124 GLuint mIndexBuffer = 0; member in GLES2TorusLightingSample
DTorusBufferStorage.cpp118 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in initialize()
134 glDeleteBuffers(1, &mIndexBuffer); in destroy()
176 GenerateTorus(&mVertexBuffer, &mIndexBuffer, &mIndexCount); in generateTorus()
206 GLuint mIndexBuffer = 0; member in BufferStorageSample
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
DIndexConversionPerf.cpp65 GLuint mIndexBuffer; member in __anon5a8712d70111::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.cpp157 gl::Buffer mIndexBuffer; member in __anon28b770190111::IndexDataManagerPerfTest
167 mIndexBuffer(&mMockGLFactory, {1}) in IndexDataManagerPerfTest()
176 mIndexBuffer.bufferData(nullptr, gl::BufferBinding::Array, &indexData[0],
186 (void)mIndexBuffer.getIndexRange(nullptr, gl::DrawElementsType::UnsignedShort, 0, in step()
190 &mIndexBuffer, nullptr, &translatedIndexData); in step()
DDrawElementsPerf.cpp80 GLuint mIndexBuffer = 0; member in __anon046e17840111::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.cpp90 GLBuffer mIndexBuffer; member in __anone7f06a640111::VulkanBarriersPerfBenchmark
222 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in createResources()
259 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in drawBenchmark()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DIndexConversionPerf.cpp65 GLuint mIndexBuffer; member in __anon680730820111::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 __anone63b43240111::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 __anon32a41d0f0111::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 __anon7bbdfeaf0111::VulkanBarriersPerfBenchmark
253 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in createResources()
291 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in drawBenchmark()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DMultiDrawTest.cpp141 mIndexBuffer(0u), in MultiDrawTest()
282 glGenBuffers(1, &mIndexBuffer); in SetupBuffers()
283 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in SetupBuffers()
339 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in DoDrawElements()
415 if (mIndexBuffer != 0u) in TearDown()
417 glDeleteBuffers(1, &mIndexBuffer); in TearDown()
454 GLuint mIndexBuffer; member in __anon8e1c31d60111::MultiDrawTest
483 mIndexBuffer(0u), in MultiDrawIndirectTest()
527 if (mIndexBuffer != 0u) in TearDown()
529 glDeleteBuffers(1, &mIndexBuffer); in TearDown()
[all …]
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
DIndexBufferOffsetTest.cpp66 glGenBuffers(1, &mIndexBuffer); in testSetUp()
67 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in testSetUp()
73 glDeleteBuffers(1, &mIndexBuffer); in testTearDown()
136 preTestUpdateBuffer(elementUpdateFbo, elementUpdateTex, mIndexBuffer, in runTest()
228 GLuint mIndexBuffer; member in IndexBufferOffsetTest
DAttributeLayoutTest.cpp273 glGenBuffers(1, &mIndexBuffer); in testSetUp()
282 glDeleteBuffers(1, &mIndexBuffer); in testTearDown()
334 GLuint mIndexBuffer; member in __anon561b0b6f0111::AttributeLayoutTest
448 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in Draw()
/third_party/flutter/skia/third_party/externals/angle2/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
DIndexBufferOffsetTest.cpp58 glGenBuffers(1, &mIndexBuffer); in testSetUp()
59 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in testSetUp()
65 glDeleteBuffers(1, &mIndexBuffer); in testTearDown()
112 GLuint mIndexBuffer; member in IndexBufferOffsetTest
DMultiDrawTest.cpp93 mIndexBuffer(0u), in MultiDrawTest()
226 glGenBuffers(1, &mIndexBuffer); in SetupBuffers()
227 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in SetupBuffers()
283 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in DoDrawElements()
359 if (mIndexBuffer != 0u) in TearDown()
361 glDeleteBuffers(1, &mIndexBuffer); in TearDown()
421 GLuint mIndexBuffer; member in __anon0d3d8f2b0111::MultiDrawTest
494 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); in TEST_P()
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

12