Home
last modified time | relevance | path

Searched refs:bufferData (Results 1 – 25 of 238) sorted by relevance

12345678910

/external/deqp/external/openglcts/modules/glesext/gpu_shader5/
DesextcGPUShader5AtomicCountersArrayIndexing.cpp101 glw::GLuint bufferData[m_atomic_counters_array_size]; in initTest() local
104 bufferData[index] = index; in initTest()
109 …gl.bufferData(GL_ATOMIC_COUNTER_BUFFER, m_atomic_counters_array_size * sizeof(glw::GLuint), buffer… in initTest()
140 glw::GLuint* bufferData = in iterate() local
148 …if (expectedResult != bufferData[0] || expectedResult + 1 != bufferData[1] || expectedResult + 2 !… in iterate()
149 expectedResult + 3 != bufferData[3]) in iterate()
154 << " (" << bufferData[0] << " ," << bufferData[1] << " ," << bufferData[2] << " ," in iterate()
155 << bufferData[3] << ")" << tcu::TestLog::EndMessage; in iterate()
DesextcGPUShader5PreciseQualifier.cpp155 gl.bufferData(GL_ARRAY_BUFFER, sizeof(glw::GLfloat) * m_n_components, DE_NULL, GL_STATIC_COPY); in initTest()
168 gl.bufferData(GL_ARRAY_BUFFER, sizeof(glw::GLfloat) * m_n_components, DE_NULL, GL_STATIC_DRAW); in initTest()
175 gl.bufferData(GL_ARRAY_BUFFER, sizeof(glw::GLfloat) * m_n_components, DE_NULL, GL_STATIC_DRAW); in initTest()
368 …gl.bufferData(GL_ARRAY_BUFFER, sizeof(glw::GLfloat) * m_n_components, vertex_data_positions, GL_ST… in drawAndGetFeedbackResult()
372 …gl.bufferData(GL_ARRAY_BUFFER, sizeof(glw::GLfloat) * m_n_components, vertex_data_weights, GL_STAT… in drawAndGetFeedbackResult()
DesextcGPUShader5FmaPrecision.cpp200 gl.bufferData(GL_ARRAY_BUFFER, sizeof(m_data_a), m_data_a, GL_STATIC_READ); in initTest()
205 gl.bufferData(GL_ARRAY_BUFFER, sizeof(m_data_b), m_data_b, GL_STATIC_READ); in initTest()
210 gl.bufferData(GL_ARRAY_BUFFER, sizeof(m_data_c), m_data_c, GL_STATIC_READ); in initTest()
246 gl.bufferData(GL_ARRAY_BUFFER, m_n_elements * S * sizeof(glw::GLfloat), DE_NULL, GL_DYNAMIC_COPY); in initTest()
251 gl.bufferData(GL_ARRAY_BUFFER, m_n_elements * S * sizeof(glw::GLfloat), DE_NULL, GL_DYNAMIC_COPY); in initTest()
/external/angle/src/tests/gl_tests/
DAtomicCounterBufferTest.cpp176 unsigned int bufferData[3] = {11u, 3u, 1u}; in TEST_P() local
179 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
210 unsigned int bufferData[3] = {11u, 3u, 1u}; in TEST_P() local
213 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
225 memcpy(bufferData, mappedBuffer, sizeof(bufferData)); in TEST_P()
228 EXPECT_EQ(11u, bufferData[0]); in TEST_P()
229 EXPECT_EQ(4u, bufferData[1]); in TEST_P()
230 EXPECT_EQ(0u, bufferData[2]); in TEST_P()
406 unsigned int bufferData[kAtomicCounterCount] = {}; in TEST_P() local
409 bufferData[index] = index; in TEST_P()
[all …]
DComputeShaderTest.cpp420 unsigned int bufferData[3] = {11u, 4u, 4u}; in TEST_P() local
423 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
433 memcpy(bufferData, mappedBuffer, sizeof(bufferData)); in TEST_P()
436 EXPECT_EQ(11u, bufferData[0]); in TEST_P()
437 EXPECT_EQ(5u, bufferData[1]); in TEST_P()
438 EXPECT_EQ(3u, bufferData[2]); in TEST_P()
463 memcpy(bufferData, mappedBuffer, sizeof(bufferData)); in TEST_P()
466 EXPECT_EQ(11u, bufferData[0]); in TEST_P()
467 EXPECT_EQ(6u, bufferData[1]); in TEST_P()
468 EXPECT_EQ(2u, bufferData[2]); in TEST_P()
[all …]
DProgramBinaryTest.cpp857 unsigned int bufferData[3] = {11u, 3u, 1u}; in TEST_P() local
860 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
872 memcpy(bufferData, mappedBuffer, sizeof(bufferData)); in TEST_P()
875 EXPECT_EQ(11u, bufferData[0]); in TEST_P()
876 EXPECT_EQ(4u, bufferData[1]); in TEST_P()
877 EXPECT_EQ(0u, bufferData[2]); in TEST_P()
/external/autotest/client/deps/webgl_mpd/src/resources/
DJ3DI.js215 ctx.bufferData(ctx.ARRAY_BUFFER, normals, ctx.STATIC_DRAW);
219 ctx.bufferData(ctx.ARRAY_BUFFER, texCoords, ctx.STATIC_DRAW);
223 ctx.bufferData(ctx.ARRAY_BUFFER, vertices, ctx.STATIC_DRAW);
229 ctx.bufferData(ctx.ELEMENT_ARRAY_BUFFER, indices, ctx.STATIC_DRAW);
301 ctx.bufferData(ctx.ARRAY_BUFFER, new Float32Array(normalData), ctx.STATIC_DRAW);
305 ctx.bufferData(ctx.ARRAY_BUFFER, new Float32Array(texCoordData), ctx.STATIC_DRAW);
309 ctx.bufferData(ctx.ARRAY_BUFFER, new Float32Array(geometryData), ctx.STATIC_DRAW);
314 ctx.bufferData(ctx.ELEMENT_ARRAY_BUFFER, new Uint16Array(indexData), ctx.STREAM_DRAW);
497 obj.ctx.bufferData(obj.ctx.ARRAY_BUFFER, new Float32Array(normalArray), obj.ctx.STATIC_DRAW);
501 obj.ctx.bufferData(obj.ctx.ARRAY_BUFFER, new Float32Array(textureArray), obj.ctx.STATIC_DRAW);
[all …]
/external/angle/src/libANGLE/renderer/d3d/
DIndexDataManager.cpp201 const uint8_t *bufferData = nullptr; in prepareIndexData() local
202 ANGLE_TRY(buffer->getData(context, &bufferData)); in prepareIndexData()
203 ASSERT(bufferData != nullptr); in prepareIndexData()
205 ANGLE_TRY(streamIndexData(context, bufferData + offset, count, srcType, dstType, in prepareIndexData()
213 const uint8_t *bufferData = nullptr; in prepareIndexData() local
214 ANGLE_TRY(buffer->getData(context, &bufferData)); in prepareIndexData()
215 ASSERT(bufferData != nullptr); in prepareIndexData()
219 ANGLE_TRY(StreamInIndexBuffer(context, staticBuffer, bufferData, convertCount, srcType, in prepareIndexData()
/external/deqp/external/openglcts/modules/gl/
Dgl4cShaderDrawParametersTests.cpp187 gl.bufferData(GL_ARRAY_BUFFER, 24 * sizeof(GLfloat), vertices, GL_STATIC_DRAW); in init()
197 gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 6 * sizeof(GLushort), elements, GL_STATIC_DRAW); in init()
436 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, 1 * sizeof(SDPDrawArraysIndirectCommand), indirect, GL_STAT… in initChild()
481 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, 1 * sizeof(SDPDrawElementsIndirectCommand), indirect, GL_ST… in initChild()
640 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, 3 * sizeof(SDPDrawArraysIndirectCommand), indirect, GL_STAT… in initChild()
693 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, 3 * sizeof(SDPDrawElementsIndirectCommand), indirect, GL_ST… in initChild()
756 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, 4 * sizeof(SDPDrawArraysIndirectCommand), indirect, GL_STAT… in initChild()
766 gl.bufferData(GL_PARAMETER_BUFFER_ARB, 3 * sizeof(GLushort), parameters, GL_STATIC_DRAW); in initChild()
826 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, 3 * sizeof(SDPDrawElementsIndirectCommand), indirect, GL_ST… in initChild()
836 gl.bufferData(GL_PARAMETER_BUFFER_ARB, 3 * sizeof(GLushort), parameters, GL_STATIC_DRAW); in initChild()
Dgl4cIndirectParametersTests.cpp123 gl.bufferData(GL_PARAMETER_BUFFER_ARB, 10 * sizeof(GLint), data, GL_DYNAMIC_DRAW); in iterate()
197 gl.bufferData(GL_ARRAY_BUFFER, 10 * sizeof(GLint), data, GL_DYNAMIC_DRAW); in iterate()
371 gl.bufferData(GL_ARRAY_BUFFER, 24 * sizeof(GLfloat), vertices, GL_STATIC_DRAW); in init()
381 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, 2 * sizeof(DrawArraysIndirectCommand), indirect, GL_STATIC_… in init()
391 gl.bufferData(GL_PARAMETER_BUFFER_ARB, 100 * sizeof(GLushort), parameters, GL_STATIC_DRAW); in init()
554 gl.bufferData(GL_ARRAY_BUFFER, 24 * sizeof(GLfloat), vertices, GL_STATIC_DRAW); in init()
564 gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 6 * sizeof(GLushort), elements, GL_STATIC_DRAW); in init()
574 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, 3 * sizeof(DrawElementsIndirectCommand), indirect, GL_STATI… in init()
584 gl.bufferData(GL_PARAMETER_BUFFER_ARB, 2 * sizeof(GLushort), parameters, GL_STATIC_DRAW); in init()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DPlayerBufferPeriodActivity.java42 int[] bufferData = bundle.getIntArray("playerBufferPeriodArray"); in onCreate() local
44 histogramView.setBufferPeriodArray(bufferData); in onCreate()
DRecorderBufferPeriodActivity.java44 int[] bufferData = bundle.getIntArray("recorderBufferPeriodArray"); in onCreate() local
46 histogramView.setBufferPeriodArray(bufferData); in onCreate()
DPerformanceMeasurement.java48 public PerformanceMeasurement(int expectedBufferPeriod, int[] bufferData) { in PerformanceMeasurement() argument
49 mBufferData = bufferData; in PerformanceMeasurement()
/external/angle/src/libANGLE/renderer/gl/
DBufferGL.cpp67 mFunctions->bufferData(gl::ToGLenum(DestBufferOperationTarget), size, data, ToGLenum(usage)); in setData()
216 const uint8_t *bufferData = in getIndexRange() local
219 if (bufferData) in getIndexRange()
221 *outRange = gl::ComputeIndexRange(type, bufferData, count, primitiveRestartEnabled); in getIndexRange()
/external/deqp/framework/opengl/simplereference/
DsglrContextUtil.cpp78 …ctx.bufferData(GL_ARRAY_BUFFER, DE_LENGTH_OF_ARRAY(position)*sizeof(float), &position[0], GL_STATI… in drawQuadWithVaoBuffers()
89 …ctx.bufferData(GL_ARRAY_BUFFER, DE_LENGTH_OF_ARRAY(coord)*sizeof(float), &coord[0], GL_STATIC_DRAW… in drawQuadWithVaoBuffers()
102 …ctx.bufferData(GL_ELEMENT_ARRAY_BUFFER, DE_LENGTH_OF_ARRAY(indices)*sizeof(deUint16), &indices[0],… in drawQuadWithVaoBuffers()
/external/deqp/modules/egl/
DteglAndroidUtil.cpp146 void* bufferData = DE_NULL; in createBuffer() local
153 checkStatus(graphicBuffer.lock(GraphicBuffer::USAGE_SW_WRITE_RARELY, &bufferData)); in createBuffer()
155 PixelBufferAccess nativeBuffer(texFormat, 64, 64, 1, bufferData); in createBuffer()
/external/deqp/external/openglcts/modules/glesext/geometry_shader/
DesextcGeometryShaderAdjacency.cpp320 gl.bufferData(GL_ARRAY_BUFFER, m_test_data.m_geometry_bo_size * 4, 0, GL_DYNAMIC_DRAW); in initTest()
322 gl.bufferData(GL_ARRAY_BUFFER, m_test_data.m_geometry_bo_size * 4, 0, GL_DYNAMIC_DRAW); in initTest()
324 …gl.bufferData(GL_ARRAY_BUFFER, m_test_data.m_vertex_data_bo_size, m_test_data.m_vertex_data, GL_DY… in initTest()
334 gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, m_test_data.m_index_data_bo_size, m_test_data.m_index_data, in initTest()
/external/deqp/external/openglcts/modules/glesext/tessellation_shader/
DesextcTessellationShaderMaxPatchVertices.cpp436 gl.bufferData(GL_ARRAY_BUFFER, m_gl_max_patch_vertices * 4 /* components */ * sizeof(glw::GLfloat), in initVertexBufferObjects()
460 gl.bufferData(GL_ARRAY_BUFFER, m_gl_max_patch_vertices * 4 /* components */ * sizeof(glw::GLint), in initVertexBufferObjects()
503 gl.bufferData(GL_TRANSFORM_FEEDBACK_BUFFER, in initTransformFeedbackBufferObjects()
511 gl.bufferData(GL_TRANSFORM_FEEDBACK_BUFFER, in initTransformFeedbackBufferObjects()
528 gl.bufferData(GL_TRANSFORM_FEEDBACK_BUFFER, in initTransformFeedbackBufferObjects()
536 gl.bufferData(GL_TRANSFORM_FEEDBACK_BUFFER, in initTransformFeedbackBufferObjects()
/external/skia/tests/
DVkYcbcrSamplerTest.cpp271 uint8_t* bufferData = reinterpret_cast<uint8_t*>(mappedBuffer) + yLayout.offset; in createI420Image() local
274 bufferData[y * yLayout.rowPitch + x] = getY(x, y); in createI420Image()
282 bufferData = reinterpret_cast<uint8_t*>(mappedBuffer) + uvLayout.offset; in createI420Image()
285 bufferData[y * uvLayout.rowPitch + x * 2] = getU(x * 2, y * 2); in createI420Image()
286 bufferData[y * uvLayout.rowPitch + x * 2 + 1] = getV(x * 2, y * 2); in createI420Image()
/external/deqp/modules/gles31/functional/
Des31fDrawTests.cpp857 ctx.bufferData(GL_ARRAY_BUFFER, sizeof(vertexPositions), vertexPositions, GL_STATIC_DRAW); in renderTo()
864 ctx.bufferData(GL_ARRAY_BUFFER, offsets.size() * sizeof(tcu::Vec4), &offsets[0], GL_STATIC_DRAW); in renderTo()
871 ctx.bufferData(GL_ARRAY_BUFFER, colors.size() * sizeof(tcu::Vec4), &colors[0], GL_STATIC_DRAW); in renderTo()
880 ctx.bufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices, GL_STATIC_DRAW); in renderTo()
895 ctx.bufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(command), &command, GL_STATIC_DRAW); in renderTo()
905 ctx.bufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(command), &command, GL_STATIC_DRAW); in renderTo()
1367 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, (glw::GLsizeiptr)(sizeof(DrawArraysCommand)*cmds.size()), &… in createDrawCommand()
1390 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, (glw::GLsizeiptr)(sizeof(DrawElementsCommand)*cmds.size()),… in createDrawCommand()
1435 …gl.bufferData(GL_ARRAY_BUFFER, (int)(buffer.size() * sizeof(tcu::Vec4)), buffer[0].getPtr(), GL_ST… in createDrawData()
1458 …gl.bufferData(GL_ARRAY_BUFFER, (int)(buffer.size() * sizeof(tcu::Vec4)), buffer[0].getPtr(), GL_ST… in createDrawData()
[all …]
Des31fBasicComputeShaderTests.cpp182 gl.bufferData(GL_UNIFORM_BUFFER, (glw::GLsizeiptr)blockInfo.dataSize, DE_NULL, GL_STATIC_DRAW); in iterate()
202 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockSize, DE_NULL, GL_STREAM_READ); in iterate()
304 …gl.bufferData(GL_SHADER_STORAGE_BUFFER, (glw::GLsizeiptr)blockInfo.dataSize, DE_NULL, GL_STATIC_DR… in iterate()
325 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockInfo.dataSize, DE_NULL, GL_STREAM_READ); in iterate()
425 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockSize, DE_NULL, GL_STREAM_DRAW); in iterate()
540 gl.bufferData(GL_SHADER_STORAGE_BUFFER, block0Size, DE_NULL, GL_STREAM_DRAW); in iterate()
547 gl.bufferData(GL_SHADER_STORAGE_BUFFER, block1Size, DE_NULL, GL_STREAM_DRAW); in iterate()
653 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockSize, DE_NULL, GL_STREAM_READ); in iterate()
758 gl.bufferData(GL_SHADER_STORAGE_BUFFER, (glw::GLsizeiptr)bufferSize, DE_NULL, GL_STATIC_DRAW); in iterate()
769 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockSize, DE_NULL, GL_STREAM_READ); in iterate()
[all …]
/external/deqp/modules/gles2/performance/
Des2pDrawCallBatchingTests.cpp361 …gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_staticAttr… in createArrayBuffers()
375 …gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount, &(m_staticAttributeDatas[attribute][0… in createArrayBuffers()
392 …gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_dynamicAtt… in createArrayBuffers()
410 …gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_dynamicAtt… in createArrayBuffers()
434 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 3 * m_spec.triangleCount, &(m_dynamicIndexData[drawNdx * m_… in createIndexBuffer()
446 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_dynami… in createIndexBuffer()
460 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_static… in createIndexBuffer()
472 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 3 * m_spec.triangleCount, &(m_staticIndexData[0]), GL_STATI… in createIndexBuffer()
/external/deqp/modules/gles3/performance/
Des3pBufferDataUploadTests.cpp2042 gl.bufferData(GL_ARRAY_BUFFER, randomSize, &zeroData[0], usage); in iterate()
2086 gl.bufferData(GL_ARRAY_BUFFER, randomSize, &zeroData[0], usage); in iterate()
2107 gl.bufferData(GL_ARRAY_BUFFER, randomSize, &zeroData[0], usage); in iterate()
2398 gl.bufferData(GL_ARRAY_BUFFER, dummyUploadSize, &dummyData[0], m_bufferUsage); in createBuffer()
2411 gl.bufferData(GL_ARRAY_BUFFER, bufferSize, DE_NULL, m_bufferUsage); in createBuffer()
2415 gl.bufferData(GL_ARRAY_BUFFER, bufferSize, &dummyData[0], m_bufferUsage); in createBuffer()
2448 gl.bufferData(GL_ARRAY_BUFFER, bufferSize, &dummyData[0], m_bufferUsage); in deleteBuffer()
2590 gl.bufferData(GL_ARRAY_BUFFER, bufferSize, &m_zeroData[0], m_bufferUsage); in testBufferUpload()
2654 gl.bufferData(GL_ARRAY_BUFFER, bufferSize, DE_NULL, m_bufferUsage); in testBufferUpload()
2819 gl.bufferData(GL_ARRAY_BUFFER, bufferSize, DE_NULL, m_bufferUsage); in attemptBufferMap()
[all …]
/external/webrtc/webrtc/modules/audio_device/linux/
Daudio_device_pulse_linux.cc2444 const void* bufferData, in ReadRecordedData() argument
2471 memcpy(&_recBuffer[_recordBufferUsed], bufferData, copy); in ReadRecordedData()
2473 bufferData = static_cast<const char *> (bufferData) + copy; in ReadRecordedData()
2497 static_cast<int8_t *> (const_cast<void *> (bufferData)), in ReadRecordedData()
2504 bufferData = static_cast<const char *> (bufferData) + in ReadRecordedData()
2515 memcpy(_recBuffer, bufferData, size); in ReadRecordedData()
2523 int8_t *bufferData, in ProcessRecordedData() argument
2530 _ptrAudioBuffer->SetRecordedBuffer(bufferData, bufferSizeInSamples); in ProcessRecordedData()
/external/swiftshader/src/OpenGL/libGLES_CM/
DBuffer.h39 void bufferData(const void *data, GLsizeiptr size, GLenum usage);

12345678910