Home
last modified time | relevance | path

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

12345678910>>...12

/third_party/flutter/skia/third_party/externals/angle2/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 …]
DProgramBinaryTest.cpp730 unsigned int bufferData[3] = {11u, 3u, 1u}; in TEST_P() local
733 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
745 memcpy(bufferData, mappedBuffer, sizeof(bufferData)); in TEST_P()
748 EXPECT_EQ(11u, bufferData[0]); in TEST_P()
749 EXPECT_EQ(4u, bufferData[1]); in TEST_P()
750 EXPECT_EQ(0u, bufferData[2]); in TEST_P()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DAtomicCounterBufferTest.cpp168 unsigned int bufferData[3] = {11u, 3u, 1u}; in TEST_P() local
171 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
255 unsigned int bufferData[] = {0u, 0u, 0u, 0u, 0u, 11u, 3u, 1u}; in TEST_P() local
267 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
269 sizeof(bufferData) - kOffset); in TEST_P()
304 unsigned int bufferData[3] = {11u, 3u, 1u}; in TEST_P() local
310 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), in TEST_P()
311 (bufferIndex == 0) ? bufferData : nullptr, GL_STATIC_DRAW); in TEST_P()
367 unsigned int bufferData[3] = {11u, 3u, 1u}; in TEST_P() local
370 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
[all …]
DVulkanDescriptorSetTest.cpp86 unsigned int bufferData[3] = {11u, 3u, 1u}; in TEST_P() local
93 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
DComputeShaderTest.cpp412 unsigned int bufferData[3] = {11u, 4u, 4u}; in TEST_P() local
415 glBufferData(GL_ATOMIC_COUNTER_BUFFER, sizeof(bufferData), bufferData, GL_STATIC_DRAW); in TEST_P()
425 memcpy(bufferData, mappedBuffer, sizeof(bufferData)); in TEST_P()
428 EXPECT_EQ(11u, bufferData[0]); in TEST_P()
429 EXPECT_EQ(5u, bufferData[1]); in TEST_P()
430 EXPECT_EQ(3u, bufferData[2]); in TEST_P()
455 memcpy(bufferData, mappedBuffer, sizeof(bufferData)); in TEST_P()
458 EXPECT_EQ(11u, bufferData[0]); in TEST_P()
459 EXPECT_EQ(6u, bufferData[1]); in TEST_P()
460 EXPECT_EQ(2u, bufferData[2]); in TEST_P()
[all …]
/third_party/vk-gl-cts/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()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_wire/server/
DServerBuffer.cpp154 auto* bufferData = BufferObjects().Get(bufferResult.id); in DoDeviceCreateBufferMappedAsync() local
155 ASSERT(bufferData != nullptr); in DoDeviceCreateBufferMappedAsync()
160 cmd.status = bufferData->mapWriteState == BufferMapWriteState::Mapped in DoDeviceCreateBufferMappedAsync()
249 auto* bufferData = BufferObjects().Get(data->buffer.id); in OnBufferMapReadAsyncCallback() local
250 if (bufferData == nullptr || bufferData->serial != data->buffer.serial) { in OnBufferMapReadAsyncCallback()
280 bufferData->readHandle = std::move(data->readHandle); in OnBufferMapReadAsyncCallback()
291 auto* bufferData = BufferObjects().Get(data->buffer.id); in OnBufferMapWriteAsyncCallback() local
292 if (bufferData == nullptr || bufferData->serial != data->buffer.serial) { in OnBufferMapWriteAsyncCallback()
308 bufferData->writeHandle = std::move(data->writeHandle); in OnBufferMapWriteAsyncCallback()
309 bufferData->mapWriteState = BufferMapWriteState::Mapped; in OnBufferMapWriteAsyncCallback()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_wire/server/
DServerBuffer.cpp232 auto* bufferData = BufferObjects().Get(data->buffer.id); in OnBufferMapAsyncCallback() local
233 if (bufferData == nullptr || bufferData->generation != data->buffer.generation) { in OnBufferMapAsyncCallback()
254 bufferData->readHandle->SizeOfSerializeDataUpdate(data->offset, data->size); in OnBufferMapAsyncCallback()
258 bufferData->mapWriteState = BufferMapWriteState::Mapped; in OnBufferMapAsyncCallback()
265 bufferData->writeHandle->SetTarget( in OnBufferMapAsyncCallback()
277 bufferData->readHandle->SerializeDataUpdate(readData, data->offset, data->size, in OnBufferMapAsyncCallback()
/third_party/flutter/skia/third_party/externals/angle2/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()
/third_party/skia/third_party/externals/angle2/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()
/third_party/node/test/node-api/test_worker_terminate_finalization/
Dtest_worker_terminate_finalization.c25 void* bufferData = malloc(BUFFER_SIZE); in Test() local
28 …_CALL(env, napi_create_external_buffer(env, BUFFER_SIZE, bufferData, BufferFinalizer, bufferData, … in Test()
/third_party/skia/tools/gpu/vk/
DVkYcbcrSamplerHelper.cpp139 uint8_t* bufferData = reinterpret_cast<uint8_t*>(mappedBuffer) + yLayout.offset; in createBackendTexture() local
142 bufferData[y * yLayout.rowPitch + x] = GetExpectedY(x, y, width, height); in createBackendTexture()
151 bufferData = reinterpret_cast<uint8_t*>(mappedBuffer) + uvLayout.offset; in createBackendTexture()
155 bufferData[y * uvLayout.rowPitch + x * 2] = u; in createBackendTexture()
156 bufferData[y * uvLayout.rowPitch + x * 2 + 1] = v; in createBackendTexture()
/third_party/vk-gl-cts/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()
555 gl.bufferData(GL_ARRAY_BUFFER, 24 * sizeof(GLfloat), vertices, GL_STATIC_DRAW); in init()
565 gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 6 * sizeof(GLushort), elements, GL_STATIC_DRAW); in init()
575 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, 3 * sizeof(DrawElementsIndirectCommand), indirect, GL_STATI… in init()
585 gl.bufferData(GL_PARAMETER_BUFFER_ARB, 2 * sizeof(GLushort), parameters, GL_STATIC_DRAW); in init()
/third_party/flutter/skia/third_party/externals/angle2/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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DProgramPipelineVk.cpp141 uint8_t *bufferData = nullptr; in updateUniforms() local
157 if (!defaultUniformStorage->allocateFromCurrentBuffer(requiredSpace, &bufferData, in updateUniforms()
163 ANGLE_TRY(defaultUniformStorage->allocate(contextVk, requiredSpace, &bufferData, nullptr, in updateUniforms()
175 memcpy(&bufferData[offsets[shaderType]], uniformData.data(), uniformData.size()); in updateUniforms()
/third_party/node/test/node-api/test_buffer/
Dtest_buffer.c94 char *bufferData; in bufferInfo() local
101 (void**)(&bufferData), in bufferInfo()
104 !strcmp(bufferData, theText) && bufferLength == sizeof(theText), in bufferInfo()
/third_party/vk-gl-cts/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()
/third_party/vk-gl-cts/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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DBufferGL.cpp68 ANGLE_GL_TRY(context, functions->bufferData(gl::ToGLenum(DestBufferOperationTarget), size, data, in setData()
267 const uint8_t *bufferData = in getIndexRange() local
270 if (bufferData) in getIndexRange()
272 *outRange = gl::ComputeIndexRange(type, bufferData, count, primitiveRestartEnabled); in getIndexRange()
/third_party/vk-gl-cts/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()
/third_party/flutter/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()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fDrawTests.cpp861 ctx.bufferData(GL_ARRAY_BUFFER, sizeof(vertexPositions), vertexPositions, GL_STATIC_DRAW); in renderTo()
868 ctx.bufferData(GL_ARRAY_BUFFER, offsets.size() * sizeof(tcu::Vec4), &offsets[0], GL_STATIC_DRAW); in renderTo()
875 ctx.bufferData(GL_ARRAY_BUFFER, colors.size() * sizeof(tcu::Vec4), &colors[0], GL_STATIC_DRAW); in renderTo()
884 ctx.bufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices, GL_STATIC_DRAW); in renderTo()
899 ctx.bufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(command), &command, GL_STATIC_DRAW); in renderTo()
909 ctx.bufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(command), &command, GL_STATIC_DRAW); in renderTo()
1371 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, (glw::GLsizeiptr)(sizeof(DrawArraysCommand)*cmds.size()), &… in createDrawCommand()
1394 …gl.bufferData(GL_DRAW_INDIRECT_BUFFER, (glw::GLsizeiptr)(sizeof(DrawElementsCommand)*cmds.size()),… in createDrawCommand()
1439 …gl.bufferData(GL_ARRAY_BUFFER, (int)(buffer.size() * sizeof(tcu::Vec4)), buffer[0].getPtr(), GL_ST… in createDrawData()
1462 …gl.bufferData(GL_ARRAY_BUFFER, (int)(buffer.size() * sizeof(tcu::Vec4)), buffer[0].getPtr(), GL_ST… in createDrawData()
[all …]

12345678910>>...12