Home
last modified time | relevance | path

Searched refs:GL_ARRAY_BUFFER (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DBufferDataTest.cpp87 glBindBuffer(GL_ARRAY_BUFFER, mBuffer); in TEST_P()
93 glBindBuffer(GL_ARRAY_BUFFER, mBuffer); in TEST_P()
97 glBufferData(GL_ARRAY_BUFFER, 0, zeroData, GL_STATIC_DRAW); in TEST_P()
100 glBufferSubData(GL_ARRAY_BUFFER, 0, 0, zeroData); in TEST_P()
108 glBindBuffer(GL_ARRAY_BUFFER, mBuffer); in TEST_P()
109 glBufferData(GL_ARRAY_BUFFER, 128, nullptr, GL_DYNAMIC_DRAW); in TEST_P()
114 glBindBuffer(GL_ARRAY_BUFFER, 0); in TEST_P()
130 glBindBuffer(GL_ARRAY_BUFFER, mBuffer); in TEST_P()
131 glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * data.size(), data.data(), GL_DYNAMIC_DRAW); in TEST_P()
133 glBindBuffer(GL_ARRAY_BUFFER, 0); in TEST_P()
[all …]
DVertexAttributeTest.cpp197 glBindBuffer(GL_ARRAY_BUFFER, mBuffer); in setupTest()
198 glBufferData(GL_ARRAY_BUFFER, dataSize, test.inputData, GL_STATIC_DRAW); in setupTest()
201 glBindBuffer(GL_ARRAY_BUFFER, 0); in setupTest()
206 glBindBuffer(GL_ARRAY_BUFFER, 0); in setupTest()
400 glBindBuffer(GL_ARRAY_BUFFER, *buffer); in InitQuadVertexBuffer()
401 glBufferData(GL_ARRAY_BUFFER, quadVerticesSize, nullptr, GL_STATIC_DRAW); in InitQuadVertexBuffer()
402 glBufferSubData(GL_ARRAY_BUFFER, 0, quadVerticesSize, quadVertices.data()); in InitQuadVertexBuffer()
411 glBindBuffer(GL_ARRAY_BUFFER, *buffer); in InitQuadPlusOneVertexBuffer()
412 glBufferData(GL_ARRAY_BUFFER, quadVerticesSize + sizeof(Vector3), nullptr, GL_STATIC_DRAW); in InitQuadPlusOneVertexBuffer()
413 glBufferSubData(GL_ARRAY_BUFFER, 0, quadVerticesSize, quadVertices.data()); in InitQuadPlusOneVertexBuffer()
[all …]
DDrawElementsTest.cpp94 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer.get()); in TEST_P()
95 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P()
130 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer); in TEST_P()
131 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P()
234 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffers[0]); in TEST_P()
235 glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * positionData.size(), &positionData[0], in TEST_P()
240 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffers[1]); in TEST_P()
241 glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * testFlagData.size(), &testFlagData[0], in TEST_P()
251 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffers[0]); in TEST_P()
255 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffers[1]); in TEST_P()
[all …]
DRobustBufferAccessBehaviorTest.cpp104 glBindBuffer(GL_ARRAY_BUFFER, bufferIncomplete); in runIndexOutOfRangeTests()
107 glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * randomData.size(), randomData.data(), in runIndexOutOfRangeTests()
199 glBindBuffer(GL_ARRAY_BUFFER, vb); in TEST_P()
200 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices.data(), GL_STATIC_DRAW); in TEST_P()
281 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer); in TEST_P()
282 glBufferData(GL_ARRAY_BUFFER, vertexData.size() * sizeof(GLfloat), vertexData.data(), in TEST_P()
313 glBindBuffer(GL_ARRAY_BUFFER, buf); in TEST_P()
375 glBindBuffer(GL_ARRAY_BUFFER, positionBuf); in TEST_P()
376 glBufferData(GL_ARRAY_BUFFER, kNumQuads * sizeof(QuadVerts), quadVerts.data(), GL_STATIC_DRAW); in TEST_P()
384 glBindBuffer(GL_ARRAY_BUFFER, vbo); in TEST_P()
[all …]
DReadPixelsTest.cpp174 glBindBuffer(GL_ARRAY_BUFFER, mPBO); in TEST_P()
175 glBufferSubData(GL_ARRAY_BUFFER, 0, 4, data); in TEST_P()
177 void *mappedPtr = glMapBufferRangeEXT(GL_ARRAY_BUFFER, 0, 32, GL_MAP_READ_BIT); in TEST_P()
184 glUnmapBufferOES(GL_ARRAY_BUFFER); in TEST_P()
210 glBindBuffer(GL_ARRAY_BUFFER, mPBO); in TEST_P()
211 glBufferSubData(GL_ARRAY_BUFFER, 0, 4, data); in TEST_P()
213 void *mappedPtr = glMapBufferRangeEXT(GL_ARRAY_BUFFER, 0, 32, GL_MAP_READ_BIT); in TEST_P()
220 glUnmapBufferOES(GL_ARRAY_BUFFER); in TEST_P()
387 glBindBuffer(GL_ARRAY_BUFFER, mPBO); in TEST_P()
389 void *mappedPtr = glMapBufferRange(GL_ARRAY_BUFFER, 0, 32, GL_MAP_READ_BIT); in TEST_P()
[all …]
DSimpleOperationTest.cpp66 static_cast<uint8_t *>(glMapBufferRangeEXT(GL_ARRAY_BUFFER, 0, 1024, GL_MAP_READ_BIT)); in verifyBuffer()
71 glUnmapBufferOES(GL_ARRAY_BUFFER); in verifyBuffer()
139 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer.get()); in TEST_P()
140 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P()
267 glBindBuffer(GL_ARRAY_BUFFER, buffer.get()); in TEST_P()
271 glBufferData(GL_ARRAY_BUFFER, data.size(), &data[0], GL_STATIC_DRAW); in TEST_P()
273 verifyBuffer(data, GL_ARRAY_BUFFER); in TEST_P()
281 glBindBuffer(GL_ARRAY_BUFFER, buffer.get()); in TEST_P()
282 glBufferData(GL_ARRAY_BUFFER, 1024, nullptr, GL_STATIC_DRAW); in TEST_P()
290 glBindBuffer(GL_ARRAY_BUFFER, buffer.get()); in TEST_P()
[all …]
DStateChangeTest.cpp329 glBindBuffer(GL_ARRAY_BUFFER, attribBuffer); in TEST_P()
330 glBufferData(GL_ARRAY_BUFFER, red.size() * sizeof(GLColor), red.data(), GL_STATIC_DRAW); in TEST_P()
353 glBindBuffer(GL_ARRAY_BUFFER, attribBuffer); in TEST_P()
354 glBufferData(GL_ARRAY_BUFFER, blue.size() * sizeof(GLColor), blue.data(), GL_STATIC_DRAW); in TEST_P()
847 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer); in TEST_P()
848 glBufferData(GL_ARRAY_BUFFER, quadVertices.size() * sizeof(quadVertices[0]), in TEST_P()
948 glBindBuffer(GL_ARRAY_BUFFER, colorBuf); in TEST_P()
954 glBufferData(GL_ARRAY_BUFFER, colorData.size() * sizeof(GLColor), colorData.data(), in TEST_P()
964 glBufferSubData(GL_ARRAY_BUFFER, 0, colorData.size() * sizeof(GLColor), colorData.data()); in TEST_P()
990 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer); in TEST_P()
[all …]
DPBOExtensionTest.cpp58 glBindBuffer(GL_ARRAY_BUFFER, mPositionVBO); in testSetUp()
59 glBufferData(GL_ARRAY_BUFFER, 128, nullptr, GL_DYNAMIC_DRAW); in testSetUp()
60 glBindBuffer(GL_ARRAY_BUFFER, 0); in testSetUp()
88 glBindBuffer(GL_ARRAY_BUFFER, mPBO); in TEST_P()
90 void *mappedPtr = glMapBufferRangeEXT(GL_ARRAY_BUFFER, 0, 32, GL_MAP_READ_BIT); in TEST_P()
99 glUnmapBufferOES(GL_ARRAY_BUFFER); in TEST_P()
DMemorySizeTest.cpp73 glBindBuffer(GL_ARRAY_BUFFER, buffer); in TEST_P()
76 glGetBufferParameteriv(GL_ARRAY_BUFFER, GL_MEMORY_SIZE_ANGLE, &result); in TEST_P()
84 glGetBufferParameteri64v(GL_ARRAY_BUFFER, GL_MEMORY_SIZE_ANGLE, &result64); in TEST_P()
91 glBufferData(GL_ARRAY_BUFFER, kBufSize, buf.data(), GL_STATIC_DRAW); in TEST_P()
92 glGetBufferParameteriv(GL_ARRAY_BUFFER, GL_MEMORY_SIZE_ANGLE, &result); in TEST_P()
105 glGetBufferParameteri64v(GL_ARRAY_BUFFER, GL_MEMORY_SIZE_ANGLE, &result64); in TEST_P()
DInstancingTest.cpp64 glBindBuffer(GL_ARRAY_BUFFER, mInstanceBuffer); in testSetUp()
65 glBufferData(GL_ARRAY_BUFFER, sizeof(mInstanceData), mInstanceData, GL_STATIC_DRAW); in testSetUp()
66 glBindBuffer(GL_ARRAY_BUFFER, 0); in testSetUp()
131 glBindBuffer(GL_ARRAY_BUFFER, storage == Buffer ? mInstanceBuffer : 0); in runTest()
140 glBindBuffer(GL_ARRAY_BUFFER, 0); in runTest()
542 glBindBuffer(GL_ARRAY_BUFFER, 0); in TEST_P()
569 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer[0]); in TEST_P()
570 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); in TEST_P()
575 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer[1]); in TEST_P()
576 glBufferData(GL_ARRAY_BUFFER, sizeof(transform), transform, GL_STATIC_DRAW); in TEST_P()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cVertexAttribBindingTests.cpp379 glBindBuffer(GL_ARRAY_BUFFER, m_vbo); in Run()
380 glBufferData(GL_ARRAY_BUFFER, sizeof(data), data, GL_STATIC_DRAW); in Run()
381 glBindBuffer(GL_ARRAY_BUFFER, 0); in Run()
563 glBindBuffer(GL_ARRAY_BUFFER, m_vbo); in Run()
564 glBufferData(GL_ARRAY_BUFFER, sizeof(Vec3) * 2, NULL, GL_STATIC_DRAW); in Run()
565 glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(Vec3), &Vec3(1.0f, 2.0f, 3.0f)[0]); in Run()
566 glBufferSubData(GL_ARRAY_BUFFER, 12, sizeof(Vec3), &Vec3(4.0f, 5.0f, 6.0f)[0]); in Run()
567 glBindBuffer(GL_ARRAY_BUFFER, 0); in Run()
609 glBindBuffer(GL_ARRAY_BUFFER, m_vbo); in Run()
610 glBufferData(GL_ARRAY_BUFFER, sizeof(Vec3) * 2, NULL, GL_STATIC_DRAW); in Run()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cVertexAttribBindingTests.cpp331 glBindBuffer(GL_ARRAY_BUFFER, m_vbo); in Run()
332 glBufferData(GL_ARRAY_BUFFER, sizeof(data), data, GL_STATIC_DRAW); in Run()
333 glBindBuffer(GL_ARRAY_BUFFER, 0); in Run()
497 glBindBuffer(GL_ARRAY_BUFFER, m_vbo); in Run()
498 glBufferData(GL_ARRAY_BUFFER, sizeof(Vec3) * 2, NULL, GL_STATIC_DRAW); in Run()
499 glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(Vec3), &Vec3(1.0f, 2.0f, 3.0f)[0]); in Run()
500 glBufferSubData(GL_ARRAY_BUFFER, 12, sizeof(Vec3), &Vec3(4.0f, 5.0f, 6.0f)[0]); in Run()
501 glBindBuffer(GL_ARRAY_BUFFER, 0); in Run()
544 glBindBuffer(GL_ARRAY_BUFFER, m_vbo); in Run()
545 glBufferData(GL_ARRAY_BUFFER, sizeof(Vec3) * 2, NULL, GL_STATIC_DRAW); in Run()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DBufferGL.cpp42 device->gl.BindBuffer(GL_ARRAY_BUFFER, mBuffer); in Buffer()
49 device->gl.BufferData(GL_ARRAY_BUFFER, mAllocatedSize, clearValues.data(), in Buffer()
53 device->gl.BufferData(GL_ARRAY_BUFFER, mAllocatedSize, nullptr, GL_STATIC_DRAW); in Buffer()
114 device->gl.BindBuffer(GL_ARRAY_BUFFER, mBuffer); in InitializeToZero()
115 device->gl.BufferSubData(GL_ARRAY_BUFFER, 0, size, clearValues.data()); in InitializeToZero()
129 gl.BindBuffer(GL_ARRAY_BUFFER, mBuffer); in MapAtCreationImpl()
130 mMappedData = gl.MapBufferRange(GL_ARRAY_BUFFER, 0, GetSize(), GL_MAP_WRITE_BIT); in MapAtCreationImpl()
150 gl.BindBuffer(GL_ARRAY_BUFFER, mBuffer); in MapAsyncImpl()
153 mappedData = gl.MapBufferRange(GL_ARRAY_BUFFER, offset, size, GL_MAP_READ_BIT); in MapAsyncImpl()
156 mappedData = gl.MapBufferRange(GL_ARRAY_BUFFER, offset, size, GL_MAP_WRITE_BIT); in MapAsyncImpl()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fNegativeBufferApiTests.cpp80 glBindBuffer(GL_ARRAY_BUFFER, buffer); in init()
88 glBufferData(GL_ARRAY_BUFFER, 0, NULL, -1); in init()
93 glBufferData(GL_ARRAY_BUFFER, -1, NULL, GL_STREAM_DRAW); in init()
98 glBindBuffer(GL_ARRAY_BUFFER, 0); in init()
99 glBufferData(GL_ARRAY_BUFFER, 0, NULL, GL_STREAM_DRAW); in init()
109 glBindBuffer(GL_ARRAY_BUFFER, buffer); in init()
110 glBufferData(GL_ARRAY_BUFFER, 10, 0, GL_STREAM_DRAW); in init()
118 glBindBuffer(GL_ARRAY_BUFFER, 0); in init()
119 glBufferSubData(GL_ARRAY_BUFFER, 1, 1, 0); in init()
124 glBindBuffer(GL_ARRAY_BUFFER, buffer); in init()
[all …]
Des3fBufferWriteTests.cpp439 GL_ARRAY_BUFFER, in iterate()
520 const deUint32 targetHint = GL_ARRAY_BUFFER; in iterate()
561 GL_ARRAY_BUFFER, in init()
618 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 996) in init()
619 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 996) in init()
620 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 996)); in init()
628 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 504) in init()
636 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 504)); in init()
639 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STREAM_DRAW, 1644) in init()
640 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STREAM_COPY, 1644) in init()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/glesext/gpu_shader5/
DesextcGPUShader5PreciseQualifier.cpp154 gl.bindBuffer(GL_ARRAY_BUFFER, m_tf_buffer_id); in initTest()
155 gl.bufferData(GL_ARRAY_BUFFER, sizeof(glw::GLfloat) * m_n_components, DE_NULL, GL_STATIC_COPY); in initTest()
156 gl.bindBuffer(GL_ARRAY_BUFFER, 0); in initTest()
167 gl.bindBuffer(GL_ARRAY_BUFFER, m_vertex_positions_buffer_id); in initTest()
168 gl.bufferData(GL_ARRAY_BUFFER, sizeof(glw::GLfloat) * m_n_components, DE_NULL, GL_STATIC_DRAW); in initTest()
174 gl.bindBuffer(GL_ARRAY_BUFFER, m_vertex_weights_buffer_id); in initTest()
175 gl.bufferData(GL_ARRAY_BUFFER, sizeof(glw::GLfloat) * m_n_components, DE_NULL, GL_STATIC_DRAW); in initTest()
182 gl.bindBuffer(GL_ARRAY_BUFFER, m_vertex_positions_buffer_id); in initTest()
186 gl.bindBuffer(GL_ARRAY_BUFFER, m_vertex_weights_buffer_id); in initTest()
207 gl.bindBuffer(GL_ARRAY_BUFFER, 0); in deinit()
[all …]
DesextcGPUShader5FmaPrecision.cpp76 gl.bindBuffer(GL_ARRAY_BUFFER, 0); in deinit()
199 gl.bindBuffer(GL_ARRAY_BUFFER, m_vbo_a_id); in initTest()
200 gl.bufferData(GL_ARRAY_BUFFER, sizeof(m_data_a), m_data_a, GL_STATIC_READ); in initTest()
204 gl.bindBuffer(GL_ARRAY_BUFFER, m_vbo_b_id); in initTest()
205 gl.bufferData(GL_ARRAY_BUFFER, sizeof(m_data_b), m_data_b, GL_STATIC_READ); in initTest()
209 gl.bindBuffer(GL_ARRAY_BUFFER, m_vbo_c_id); in initTest()
210 gl.bufferData(GL_ARRAY_BUFFER, sizeof(m_data_c), m_data_c, GL_STATIC_READ); in initTest()
221 gl.bindBuffer(GL_ARRAY_BUFFER, m_vbo_a_id); in initTest()
229 gl.bindBuffer(GL_ARRAY_BUFFER, m_vbo_b_id); in initTest()
237 gl.bindBuffer(GL_ARRAY_BUFFER, m_vbo_c_id); in initTest()
[all …]
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fNegativeBufferApiTests.cpp78 glBindBuffer(GL_ARRAY_BUFFER, buffer); in init()
86 glBufferData(GL_ARRAY_BUFFER, 0, NULL, -1); in init()
91 glBufferData(GL_ARRAY_BUFFER, -1, NULL, GL_STREAM_DRAW); in init()
96 glBindBuffer(GL_ARRAY_BUFFER, 0); in init()
97 glBufferData(GL_ARRAY_BUFFER, 0, NULL, GL_STREAM_DRAW); in init()
107 glBindBuffer(GL_ARRAY_BUFFER, buffer); in init()
108 glBufferData(GL_ARRAY_BUFFER, 10, 0, GL_STREAM_DRAW); in init()
116 glBindBuffer(GL_ARRAY_BUFFER, 0); in init()
117 glBufferSubData(GL_ARRAY_BUFFER, 1, 1, 0); in init()
127 glBindBuffer(GL_ARRAY_BUFFER, buffer); in init()
[all …]
Des2fBufferWriteTests.cpp439 GL_ARRAY_BUFFER, in iterate()
548 GL_ARRAY_BUFFER, in init()
626 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 996) in init()
627 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 996) in init()
628 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 996)); in init()
636 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 504) in init()
641 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 716) in init()
645 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STREAM_DRAW, 1644) in init()
646 << DataStoreSpec(GL_ARRAY_BUFFER, GL_DYNAMIC_DRAW, 1644) in init()
647 << DataStoreSpec(GL_ARRAY_BUFFER, GL_STATIC_DRAW, 1644) in init()
[all …]
/third_party/mesa3d/docs/gallium/
Dbuffermapping.rst30 …1030917 glBufferDataARB(target = GL_ARRAY_BUFFER, size = 1572864, data = NULL, usage = GL_DYNAMIC_…
31 1030918 glBufferSubData(target = GL_ARRAY_BUFFER, offset = 0, size = 128, data = blob(128))
34 1030937 glBufferSubData(target = GL_ARRAY_BUFFER, offset = 128, size = 128, data = blob(128))
100 167585 glBufferData(target = GL_ARRAY_BUFFER, size = 196608, data = NULL, usage = GL_STREAM_DRAW)
101 167586 glBufferSubData(target = GL_ARRAY_BUFFER, offset = 0, size = 1728, data = blob(1728))
103 167589 glBufferData(target = GL_ARRAY_BUFFER, size = 196608, data = NULL, usage = GL_STREAM_DRAW)
104 167590 glBufferSubData(target = GL_ARRAY_BUFFER, offset = 0, size = 27456, data = blob(27456))
120 7251918 glBindBuffer(target = GL_ARRAY_BUFFER, buffer = 115052)
121 …7251919 glBufferData(target = GL_ARRAY_BUFFER, size = 144, data = blob(144), usage = GL_STREAM_DRA…
122 7251921 glBindBuffer(target = GL_ARRAY_BUFFER, buffer = 115052)
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DInstancingPerf.cpp202 glBindBuffer(GL_ARRAY_BUFFER, mBuffers[1]); in initializeBenchmark()
203 glBufferData(GL_ARRAY_BUFFER, VectorSizeBytes(positionData), &positionData[0], GL_STATIC_DRAW); in initializeBenchmark()
210 glBindBuffer(GL_ARRAY_BUFFER, mBuffers[2]); in initializeBenchmark()
211 glBufferData(GL_ARRAY_BUFFER, VectorSizeBytes(mTranslateData), &mTranslateData[0], in initializeBenchmark()
220 glBindBuffer(GL_ARRAY_BUFFER, mBuffers[3]); in initializeBenchmark()
221 glBufferData(GL_ARRAY_BUFFER, VectorSizeBytes(mSizeData), nullptr, GL_DYNAMIC_DRAW); in initializeBenchmark()
229 glBindBuffer(GL_ARRAY_BUFFER, mBuffers[4]); in initializeBenchmark()
230 glBufferData(GL_ARRAY_BUFFER, VectorSizeBytes(mColorData), nullptr, GL_DYNAMIC_DRAW); in initializeBenchmark()
301 glBindBuffer(GL_ARRAY_BUFFER, mBuffers[3]); in drawBenchmark()
302 glBufferSubData(GL_ARRAY_BUFFER, 0, VectorSizeBytes(mSizeData), &mSizeData[0]); in drawBenchmark()
[all …]
DVertexArrayPerfTest.cpp132 glBindBuffer(GL_ARRAY_BUFFER, mBuffers[0]); in initializeBenchmark()
139 glBindBuffer(GL_ARRAY_BUFFER, bufferID); in rebindVertexArray()
144 glBindBuffer(GL_ARRAY_BUFFER, 0); in rebindVertexArray()
152 glBindBuffer(GL_ARRAY_BUFFER, bufferID); in updateBufferData()
155 glBufferData(GL_ARRAY_BUFFER, bufferSize, nullptr, GL_STATIC_DRAW); in updateBufferData()
157 glBindBuffer(GL_ARRAY_BUFFER, 0); in updateBufferData()
174 glBufferData(GL_ARRAY_BUFFER, 128, nullptr, GL_STATIC_DRAW); in drawBenchmark()
/third_party/skia/third_party/externals/angle2/samples/torus_lighting/
DTorusBufferStorage.cpp107 glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); in initialize()
114 glBindBuffer(GL_ARRAY_BUFFER, mHueBuffer); in initialize()
125 glBindBuffer(GL_ARRAY_BUFFER, mHueBuffer); in destroy()
126 glUnmapBuffer(GL_ARRAY_BUFFER); in destroy()
127 glBindBuffer(GL_ARRAY_BUFFER, 0); in destroy()
181 glBindBuffer(GL_ARRAY_BUFFER, mHueBuffer); in generateTorus()
182 glBufferStorageEXT(GL_ARRAY_BUFFER, kHuesSize * sizeof(GLfloat), hues.data(), in generateTorus()
186 glMapBufferRange(GL_ARRAY_BUFFER, 0, kHuesSize * sizeof(GLfloat), in generateTorus()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fNegativeBufferApiTests.cpp73 ctx.glBindBuffer(GL_ARRAY_BUFFER, buffer); in buffer_data()
81 ctx.glBufferData(GL_ARRAY_BUFFER, 0, NULL, -1); in buffer_data()
86 ctx.glBufferData(GL_ARRAY_BUFFER, -1, NULL, GL_STREAM_DRAW); in buffer_data()
91 ctx.glBindBuffer(GL_ARRAY_BUFFER, 0); in buffer_data()
92 ctx.glBufferData(GL_ARRAY_BUFFER, 0, NULL, GL_STREAM_DRAW); in buffer_data()
103 ctx.glBindBuffer(GL_ARRAY_BUFFER, buffer); in buffer_sub_data()
104 ctx.glBufferData(GL_ARRAY_BUFFER, 10, 0, GL_STREAM_DRAW); in buffer_sub_data()
112 ctx.glBindBuffer(GL_ARRAY_BUFFER, 0); in buffer_sub_data()
113 ctx.glBufferSubData(GL_ARRAY_BUFFER, 1, 1, 0); in buffer_sub_data()
118 ctx.glBindBuffer(GL_ARRAY_BUFFER, buffer); in buffer_sub_data()
[all …]
/third_party/vk-gl-cts/modules/gles3/performance/
Des3pRedundantStateChangeTests.cpp147 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
186 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
226 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
275 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
315 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
352 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
395 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
432 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
469 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
510 gl.bindBuffer(GL_ARRAY_BUFFER, m_coordBuffers[0]); in init()
[all …]

12345678910>>...13