/third_party/skia/src/gpu/d3d/ |
D | GrD3DBuffer.cpp | 45 D3D12_RESOURCE_DESC bufferDesc = {}; in make_d3d_buffer() local 46 bufferDesc.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER; in make_d3d_buffer() 47 bufferDesc.Alignment = 0; // default alignment in make_d3d_buffer() 48 bufferDesc.Width = size; in make_d3d_buffer() 49 bufferDesc.Height = 1; in make_d3d_buffer() 50 bufferDesc.DepthOrArraySize = 1; in make_d3d_buffer() 51 bufferDesc.MipLevels = 1; in make_d3d_buffer() 52 bufferDesc.Format = DXGI_FORMAT_UNKNOWN; in make_d3d_buffer() 53 bufferDesc.SampleDesc.Count = 1; in make_d3d_buffer() 54 bufferDesc.SampleDesc.Quality = 0; // Doesn't apply to buffers in make_d3d_buffer() [all …]
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnBuffer.cpp | 33 wgpu::BufferDescriptor bufferDesc; in GrDawnBuffer() local 34 bufferDesc.size = sizeInBytes; in GrDawnBuffer() 35 bufferDesc.usage = GrGpuBufferTypeToDawnUsageBit(type); in GrDawnBuffer() 37 if (bufferDesc.usage & wgpu::BufferUsage::MapRead) { in GrDawnBuffer() 38 SkASSERT(!SkToBool(bufferDesc.usage & wgpu::BufferUsage::MapWrite)); in GrDawnBuffer() 40 } else if (bufferDesc.usage & wgpu::BufferUsage::MapWrite) { in GrDawnBuffer() 45 fBuffer = this->getDawnGpu()->device().CreateBuffer(&bufferDesc); in GrDawnBuffer() 47 bufferDesc.mappedAtCreation = true; in GrDawnBuffer() 48 fBuffer = this->getDawnGpu()->device().CreateBuffer(&bufferDesc); in GrDawnBuffer()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | OpArrayLengthTests.cpp | 27 wgpu::BufferDescriptor bufferDesc; in SetUp() local 28 bufferDesc.size = 4; in SetUp() 29 bufferDesc.usage = wgpu::BufferUsage::Storage; in SetUp() 30 mStorageBuffer4 = device.CreateBuffer(&bufferDesc); in SetUp() 32 bufferDesc.size = 256; in SetUp() 33 mStorageBuffer256 = device.CreateBuffer(&bufferDesc); in SetUp() 35 bufferDesc.size = 512 + 256; in SetUp() 36 mStorageBuffer512 = device.CreateBuffer(&bufferDesc); in SetUp() 101 wgpu::BufferDescriptor bufferDesc; in TEST_P() local 102 bufferDesc.usage = wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc; in TEST_P() [all …]
|
D | ShaderFloat16Tests.cpp | 52 wgpu::BufferDescriptor bufferDesc; in TEST_P() local 53 bufferDesc.size = 2 * sizeof(uint16_t); in TEST_P() 54 bufferDesc.usage = wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc; in TEST_P() 55 wgpu::Buffer bufferOut = device.CreateBuffer(&bufferDesc); in TEST_P()
|
D | EntryPointTests.cpp | 109 wgpu::BufferDescriptor bufferDesc; in TEST_P() local 110 bufferDesc.size = 4; in TEST_P() 111 bufferDesc.usage = wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc; in TEST_P() 112 wgpu::Buffer buffer = device.CreateBuffer(&bufferDesc); in TEST_P()
|
D | BindGroupTests.cpp | 146 wgpu::BufferDescriptor bufferDesc; in TEST_P() local 147 bufferDesc.size = sizeof(float); in TEST_P() 148 bufferDesc.usage = wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::Uniform; in TEST_P() 149 wgpu::Buffer buffer = device.CreateBuffer(&bufferDesc); in TEST_P() 467 wgpu::BufferDescriptor bufferDesc; in TEST_P() local 468 bufferDesc.size = sizeof(float); in TEST_P() 469 bufferDesc.usage = wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::Uniform; in TEST_P() 470 wgpu::Buffer buffer0 = device.CreateBuffer(&bufferDesc); in TEST_P() 492 wgpu::BufferDescriptor bufferDesc; in TEST_P() local 493 bufferDesc.size = sizeof(float); in TEST_P() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | Buffer11.cpp | 194 static void FillBufferDesc(D3D11_BUFFER_DESC *bufferDesc, 1232 D3D11_BUFFER_DESC bufferDesc; in resize() local 1233 FillBufferDesc(&bufferDesc, mRenderer, mUsage, static_cast<unsigned int>(size)); in resize() 1237 mRenderer->allocateResource(SafeGetImplAs<Context11>(context), bufferDesc, &newBuffer)); in resize() 1261 mBufferSize = bufferDesc.ByteWidth; in resize() 1279 void Buffer11::NativeStorage::FillBufferDesc(D3D11_BUFFER_DESC *bufferDesc, in FillBufferDesc() argument 1284 bufferDesc->ByteWidth = bufferSize; in FillBufferDesc() 1285 bufferDesc->MiscFlags = 0; in FillBufferDesc() 1286 bufferDesc->StructureByteStride = 0; in FillBufferDesc() 1291 bufferDesc->Usage = D3D11_USAGE_STAGING; in FillBufferDesc() [all …]
|
D | VertexBuffer11.cpp | 46 D3D11_BUFFER_DESC bufferDesc; in initialize() local 47 bufferDesc.ByteWidth = size; in initialize() 48 bufferDesc.Usage = D3D11_USAGE_DYNAMIC; in initialize() 49 bufferDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; in initialize() 50 bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; in initialize() 51 bufferDesc.MiscFlags = 0; in initialize() 52 bufferDesc.StructureByteStride = 0; in initialize() 54 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &mBuffer)); in initialize()
|
D | IndexBuffer11.cpp | 40 D3D11_BUFFER_DESC bufferDesc; in initialize() local 41 bufferDesc.ByteWidth = bufferSize; in initialize() 42 bufferDesc.Usage = D3D11_USAGE_DYNAMIC; in initialize() 43 bufferDesc.BindFlags = D3D11_BIND_INDEX_BUFFER; in initialize() 44 bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; in initialize() 45 bufferDesc.MiscFlags = 0; in initialize() 46 bufferDesc.StructureByteStride = 0; in initialize() 48 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &mBuffer)); in initialize()
|
D | Clear11.cpp | 310 D3D11_BUFFER_DESC bufferDesc; in ensureConstantBufferCreated() local 311 bufferDesc.ByteWidth = g_ConstantBufferSize; in ensureConstantBufferCreated() 312 bufferDesc.Usage = D3D11_USAGE_DYNAMIC; in ensureConstantBufferCreated() 313 bufferDesc.BindFlags = D3D11_BIND_CONSTANT_BUFFER; in ensureConstantBufferCreated() 314 bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; in ensureConstantBufferCreated() 315 bufferDesc.MiscFlags = 0; in ensureConstantBufferCreated() 316 bufferDesc.StructureByteStride = 0; in ensureConstantBufferCreated() 323 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &initialData, in ensureConstantBufferCreated() 348 D3D11_BUFFER_DESC bufferDesc; in ensureVertexBufferCreated() local 349 bufferDesc.ByteWidth = vbSize; in ensureVertexBufferCreated() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | IndexBuffer11.cpp | 40 D3D11_BUFFER_DESC bufferDesc; in initialize() local 41 bufferDesc.ByteWidth = bufferSize; in initialize() 42 bufferDesc.Usage = D3D11_USAGE_DYNAMIC; in initialize() 43 bufferDesc.BindFlags = D3D11_BIND_INDEX_BUFFER; in initialize() 44 bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; in initialize() 45 bufferDesc.MiscFlags = 0; in initialize() 46 bufferDesc.StructureByteStride = 0; in initialize() 48 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &mBuffer)); in initialize()
|
D | VertexBuffer11.cpp | 46 D3D11_BUFFER_DESC bufferDesc; in initialize() local 47 bufferDesc.ByteWidth = size; in initialize() 48 bufferDesc.Usage = D3D11_USAGE_DYNAMIC; in initialize() 49 bufferDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; in initialize() 50 bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; in initialize() 51 bufferDesc.MiscFlags = 0; in initialize() 52 bufferDesc.StructureByteStride = 0; in initialize() 54 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &mBuffer)); in initialize()
|
D | Buffer11.cpp | 186 static void FillBufferDesc(D3D11_BUFFER_DESC *bufferDesc, 1114 D3D11_BUFFER_DESC bufferDesc; in resize() local 1115 FillBufferDesc(&bufferDesc, mRenderer, mUsage, static_cast<unsigned int>(size)); in resize() 1119 mRenderer->allocateResource(SafeGetImplAs<Context11>(context), bufferDesc, &newBuffer)); in resize() 1143 mBufferSize = bufferDesc.ByteWidth; in resize() 1161 void Buffer11::NativeStorage::FillBufferDesc(D3D11_BUFFER_DESC *bufferDesc, in FillBufferDesc() argument 1166 bufferDesc->ByteWidth = bufferSize; in FillBufferDesc() 1167 bufferDesc->MiscFlags = 0; in FillBufferDesc() 1168 bufferDesc->StructureByteStride = 0; in FillBufferDesc() 1173 bufferDesc->Usage = D3D11_USAGE_STAGING; in FillBufferDesc() [all …]
|
D | Clear11.cpp | 318 D3D11_BUFFER_DESC bufferDesc; in ensureConstantBufferCreated() local 319 bufferDesc.ByteWidth = g_ConstantBufferSize; in ensureConstantBufferCreated() 320 bufferDesc.Usage = D3D11_USAGE_DYNAMIC; in ensureConstantBufferCreated() 321 bufferDesc.BindFlags = D3D11_BIND_CONSTANT_BUFFER; in ensureConstantBufferCreated() 322 bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; in ensureConstantBufferCreated() 323 bufferDesc.MiscFlags = 0; in ensureConstantBufferCreated() 324 bufferDesc.StructureByteStride = 0; in ensureConstantBufferCreated() 331 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &initialData, in ensureConstantBufferCreated() 356 D3D11_BUFFER_DESC bufferDesc; in ensureVertexBufferCreated() local 357 bufferDesc.ByteWidth = vbSize; in ensureVertexBufferCreated() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | D3D11EmulatedIndexedBufferTest.cpp | 66 D3D11_BUFFER_DESC bufferDesc; in createMappableCompareBufferFromEmulatedBuffer() local 67 bufferDesc.ByteWidth = size; in createMappableCompareBufferFromEmulatedBuffer() 68 bufferDesc.MiscFlags = 0; in createMappableCompareBufferFromEmulatedBuffer() 69 bufferDesc.StructureByteStride = 0; in createMappableCompareBufferFromEmulatedBuffer() 70 bufferDesc.Usage = D3D11_USAGE_STAGING; in createMappableCompareBufferFromEmulatedBuffer() 71 bufferDesc.BindFlags = 0; in createMappableCompareBufferFromEmulatedBuffer() 72 bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_READ | D3D11_CPU_ACCESS_WRITE; in createMappableCompareBufferFromEmulatedBuffer() 74 HRESULT hr = mRenderer->getDevice()->CreateBuffer(&bufferDesc, nullptr, mappableBuffer); in createMappableCompareBufferFromEmulatedBuffer()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | D3D11EmulatedIndexedBufferTest.cpp | 66 D3D11_BUFFER_DESC bufferDesc; in createMappableCompareBufferFromEmulatedBuffer() local 67 bufferDesc.ByteWidth = size; in createMappableCompareBufferFromEmulatedBuffer() 68 bufferDesc.MiscFlags = 0; in createMappableCompareBufferFromEmulatedBuffer() 69 bufferDesc.StructureByteStride = 0; in createMappableCompareBufferFromEmulatedBuffer() 70 bufferDesc.Usage = D3D11_USAGE_STAGING; in createMappableCompareBufferFromEmulatedBuffer() 71 bufferDesc.BindFlags = 0; in createMappableCompareBufferFromEmulatedBuffer() 72 bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_READ | D3D11_CPU_ACCESS_WRITE; in createMappableCompareBufferFromEmulatedBuffer() 74 HRESULT hr = mRenderer->getDevice()->CreateBuffer(&bufferDesc, nullptr, mappableBuffer); in createMappableCompareBufferFromEmulatedBuffer()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | IndexBufferValidationTests.cpp | 48 wgpu::BufferDescriptor bufferDesc; in TEST_F() local 49 bufferDesc.usage = wgpu::BufferUsage::Index; in TEST_F() 50 bufferDesc.size = 256; in TEST_F() 51 wgpu::Buffer buffer = device.CreateBuffer(&bufferDesc); in TEST_F() 63 wgpu::BufferDescriptor bufferDesc; in TEST_F() local 64 bufferDesc.usage = wgpu::BufferUsage::Index; in TEST_F() 65 bufferDesc.size = 256; in TEST_F() 66 wgpu::Buffer buffer = device.CreateBuffer(&bufferDesc); in TEST_F() 78 wgpu::BufferDescriptor bufferDesc; in TEST_F() local 79 bufferDesc.usage = wgpu::BufferUsage::Index; in TEST_F() [all …]
|
/third_party/skia/src/gpu/ |
D | GrAHardwareBufferImageGenerator.cpp | 52 AHardwareBuffer_Desc bufferDesc; in Make() local 53 AHardwareBuffer_describe(graphicBuffer, &bufferDesc); in Make() 56 GrAHardwareBufferUtils::GetSkColorTypeFromBufferFormat(bufferDesc.format); in Make() 57 SkImageInfo info = SkImageInfo::Make(bufferDesc.width, bufferDesc.height, colorType, in Make() 60 bool createProtectedImage = 0 != (bufferDesc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); in Make() 63 bufferDesc.format, surfaceOrigin)); in Make()
|
/third_party/flutter/skia/src/gpu/ |
D | GrAHardwareBufferImageGenerator.cpp | 52 AHardwareBuffer_Desc bufferDesc; in Make() local 53 AHardwareBuffer_describe(graphicBuffer, &bufferDesc); in Make() 56 GrAHardwareBufferUtils::GetSkColorTypeFromBufferFormat(bufferDesc.format); in Make() 57 SkImageInfo info = SkImageInfo::Make(bufferDesc.width, bufferDesc.height, colorType, in Make() 60 bool createProtectedImage = 0 != (bufferDesc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); in Make() 63 bufferDesc.format, surfaceOrigin)); in Make()
|
/third_party/flutter/skia/src/gpu/dawn/ |
D | GrDawnBuffer.cpp | 34 dawn::BufferDescriptor bufferDesc; in GrDawnBuffer() local 35 bufferDesc.size = sizeInBytes; in GrDawnBuffer() 36 bufferDesc.usage = GrGpuBufferTypeToDawnUsageBit(type) | dawn::BufferUsageBit::CopyDst; in GrDawnBuffer() 37 fBuffer = this->getDawnGpu()->device().CreateBuffer(&bufferDesc); in GrDawnBuffer()
|
/third_party/skia/third_party/externals/dawn/examples/ |
D | Animometer.cpp | 142 wgpu::BufferDescriptor bufferDesc; in init() local 143 bufferDesc.size = kNumTriangles * sizeof(ShaderData); in init() 144 bufferDesc.usage = wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::Uniform; in init() 145 ubo = device.CreateBuffer(&bufferDesc); in init()
|
/third_party/flutter/skia/third_party/externals/dawn/examples/ |
D | Animometer.cpp | 135 dawn::BufferDescriptor bufferDesc; in init() local 136 bufferDesc.size = kNumTriangles * sizeof(ShaderData); in init() 137 bufferDesc.usage = dawn::BufferUsageBit::CopyDst | dawn::BufferUsageBit::Uniform; in init() 138 ubo = device.CreateBuffer(&bufferDesc); in init()
|
/third_party/skia/src/image/ |
D | SkSurface_Gpu.cpp | 644 AHardwareBuffer_Desc bufferDesc; in MakeFromAHardwareBuffer() local 645 AHardwareBuffer_describe(hardwareBuffer, &bufferDesc); in MakeFromAHardwareBuffer() 647 if (!SkToBool(bufferDesc.usage & AHARDWAREBUFFER_USAGE_GPU_COLOR_OUTPUT)) { in MakeFromAHardwareBuffer() 651 bool isTextureable = SkToBool(bufferDesc.usage & AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE); in MakeFromAHardwareBuffer() 655 bufferDesc.format, in MakeFromAHardwareBuffer() 667 SkToBool(bufferDesc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); in MakeFromAHardwareBuffer() 671 bufferDesc.width, bufferDesc.height, in MakeFromAHardwareBuffer() 680 GrAHardwareBufferUtils::GetSkColorTypeFromBufferFormat(bufferDesc.format); in MakeFromAHardwareBuffer()
|
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/ |
D | EGLDeviceTest.cpp | 146 D3D11_BUFFER_DESC bufferDesc = {0}; in trigger9_3DeviceLost() local 147 bufferDesc.ByteWidth = 64; in trigger9_3DeviceLost() 148 bufferDesc.Usage = D3D11_USAGE_DEFAULT; in trigger9_3DeviceLost() 149 bufferDesc.BindFlags = D3D11_BIND_CONSTANT_BUFFER; in trigger9_3DeviceLost() 151 HRESULT result = mDevice->CreateBuffer(&bufferDesc, nullptr, &gsBuffer); in trigger9_3DeviceLost()
|
/third_party/flutter/skia/src/image/ |
D | SkSurface_Gpu.cpp | 717 AHardwareBuffer_Desc bufferDesc; in MakeFromAHardwareBuffer() local 718 AHardwareBuffer_describe(hardwareBuffer, &bufferDesc); in MakeFromAHardwareBuffer() 720 if (!SkToBool(bufferDesc.usage & AHARDWAREBUFFER_USAGE_GPU_COLOR_OUTPUT)) { in MakeFromAHardwareBuffer() 724 bool isTextureable = SkToBool(bufferDesc.usage & AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE); in MakeFromAHardwareBuffer() 725 bool isProtectedContent = SkToBool(bufferDesc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); in MakeFromAHardwareBuffer() 735 bufferDesc.format, in MakeFromAHardwareBuffer() 748 bufferDesc.width, bufferDesc.height, in MakeFromAHardwareBuffer() 757 GrAHardwareBufferUtils::GetSkColorTypeFromBufferFormat(bufferDesc.format); in MakeFromAHardwareBuffer()
|