/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | AtomicCounterBufferTest.cpp | 168 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 …]
|
D | VulkanDescriptorSetTest.cpp | 86 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()
|
D | ComputeShaderTest.cpp | 412 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/ |
D | esextcGPUShader5AtomicCountersArrayIndexing.cpp | 101 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()
|
D | esextcGPUShader5PreciseQualifier.cpp | 155 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()
|
D | esextcGPUShader5FmaPrecision.cpp | 200 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/skia/third_party/externals/dawn/src/dawn_wire/server/ |
D | ServerBuffer.cpp | 232 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/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
D | IndexDataManager.cpp | 201 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/ |
D | test_worker_terminate_finalization.c | 25 void* bufferData = malloc(BUFFER_SIZE); in Test() local 30 env, BUFFER_SIZE, bufferData, BufferFinalizer, bufferData, &result)); in Test()
|
/third_party/skia/tools/gpu/vk/ |
D | VkYcbcrSamplerHelper.cpp | 139 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/ |
D | gl4cShaderDrawParametersTests.cpp | 187 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()
|
D | gl4cIndirectParametersTests.cpp | 123 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/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | ProgramPipelineVk.cpp | 141 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/vk-gl-cts/framework/opengl/simplereference/ |
D | sglrContextUtil.cpp | 78 …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/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
D | BufferGL.cpp | 68 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/geometry_shader/ |
D | esextcGeometryShaderAdjacency.cpp | 320 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/vk-gl-cts/external/openglcts/modules/glesext/tessellation_shader/ |
D | esextcTessellationShaderMaxPatchVertices.cpp | 436 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/vk-gl-cts/modules/gles31/functional/ |
D | es31fDrawTests.cpp | 861 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 …]
|
D | es31fBasicComputeShaderTests.cpp | 182 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 …]
|
/third_party/node/test/node-api/test_buffer/ |
D | test_buffer.c | 100 char *bufferData; in bufferInfo() local 105 env, theBuffer, (void**)(&bufferData), &bufferLength)); in bufferInfo() 107 !strcmp(bufferData, theText) && bufferLength == sizeof(theText), in bufferInfo()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | BindGroup.cpp | 360 mBindingData.bufferData[bindingIndex].offset = entry.offset; in BindGroupBase() 364 mBindingData.bufferData[bindingIndex].size = bufferSize; in BindGroupBase() 394 mBindingData.bufferData[bindingIndex].size; in BindGroupBase() 458 return {buffer, mBindingData.bufferData[bindingIndex].offset, in GetBindingAsBufferBinding() 459 mBindingData.bufferData[bindingIndex].size}; in GetBindingAsBufferBinding()
|
/third_party/vk-gl-cts/modules/egl/ |
D | teglAndroidUtil.cpp | 296 void* bufferData = DE_NULL; in createBuffer() local 311 buffer->lock(&bufferData); in createBuffer() 316 …fferAccess nativeBuffer (texFormat, desc.width, desc.height, 1, rowPitch, slicePitch, bufferData); in createBuffer()
|
/third_party/vk-gl-cts/modules/gles2/performance/ |
D | es2pDrawCallBatchingTests.cpp | 361 …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()
|
/third_party/vk-gl-cts/modules/gles3/performance/ |
D | es3pBufferDataUploadTests.cpp | 2042 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 …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/ |
D | vktDynamicStateComputeTests.cpp | 787 std::vector<deUint32> bufferData (m_params.states.size(), 0u); in iterateCompute() local 788 const auto dataSize (de::dataSize(bufferData)); in iterateCompute() 796 deMemcpy(outputBufferPtr, bufferData.data(), dataSize); in iterateCompute() 849 deMemcpy(bufferData.data(), outputBufferPtr, dataSize); in iterateCompute() 851 for (size_t idx = 0u; idx < bufferData.size(); ++idx) in iterateCompute() 853 if (bufferData[idx] != 1u) in iterateCompute() 856 msg << "Unexpected value found at buffer position " << idx << ": " << bufferData[idx]; in iterateCompute()
|