Home
last modified time | relevance | path

Searched refs:BufferUsage (Results 1 – 25 of 242) sorted by relevance

12345678910

/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DBufferVk.cpp31 VkBufferUsageFlags VulkanBufferUsage(wgpu::BufferUsage usage) { in VulkanBufferUsage()
34 if (usage & wgpu::BufferUsage::CopySrc) { in VulkanBufferUsage()
37 if (usage & wgpu::BufferUsage::CopyDst) { in VulkanBufferUsage()
40 if (usage & wgpu::BufferUsage::Index) { in VulkanBufferUsage()
43 if (usage & wgpu::BufferUsage::Vertex) { in VulkanBufferUsage()
46 if (usage & wgpu::BufferUsage::Uniform) { in VulkanBufferUsage()
50 (wgpu::BufferUsage::Storage | kInternalStorageBuffer | kReadOnlyStorageBuffer)) { in VulkanBufferUsage()
53 if (usage & wgpu::BufferUsage::Indirect) { in VulkanBufferUsage()
56 if (usage & wgpu::BufferUsage::QueryResolve) { in VulkanBufferUsage()
63 VkPipelineStageFlags VulkanPipelineStage(wgpu::BufferUsage usage) { in VulkanPipelineStage()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DBuffer.h35 static constexpr wgpu::BufferUsage kReadOnlyBufferUsages =
36 wgpu::BufferUsage::MapRead | wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::Index |
37 wgpu::BufferUsage::Vertex | wgpu::BufferUsage::Uniform | kReadOnlyStorageBuffer |
38 wgpu::BufferUsage::Indirect;
40 static constexpr wgpu::BufferUsage kMappableBufferUsages =
41 wgpu::BufferUsage::MapRead | wgpu::BufferUsage::MapWrite;
59 wgpu::BufferUsage GetUsage() const;
119 wgpu::BufferUsage mUsage = wgpu::BufferUsage::None;
DBuffer.cpp103 wgpu::BufferUsage usage = descriptor->usage; in ValidateBufferDescriptor()
105 const wgpu::BufferUsage kMapWriteAllowedUsages = in ValidateBufferDescriptor()
106 wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc; in ValidateBufferDescriptor()
108 usage & wgpu::BufferUsage::MapWrite && !IsSubset(usage, kMapWriteAllowedUsages), in ValidateBufferDescriptor()
111 usage, wgpu::BufferUsage::MapWrite, wgpu::BufferUsage::CopySrc); in ValidateBufferDescriptor()
113 const wgpu::BufferUsage kMapReadAllowedUsages = in ValidateBufferDescriptor()
114 wgpu::BufferUsage::MapRead | wgpu::BufferUsage::CopyDst; in ValidateBufferDescriptor()
116 usage & wgpu::BufferUsage::MapRead && !IsSubset(usage, kMapReadAllowedUsages), in ValidateBufferDescriptor()
119 usage, wgpu::BufferUsage::MapRead, wgpu::BufferUsage::CopyDst); in ValidateBufferDescriptor()
137 if (mUsage & wgpu::BufferUsage::Storage) { in BufferBase()
[all …]
DInternalPipelineStore.cpp30 : scratchStorage(device, wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::Storage), in InternalPipelineStore()
32 wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::Indirect | in InternalPipelineStore()
33 wgpu::BufferUsage::Storage) { in InternalPipelineStore()
Ddawn_platform.h34 static constexpr wgpu::BufferUsage kInternalStorageBuffer =
35 static_cast<wgpu::BufferUsage>(0x40000000);
38 static constexpr wgpu::BufferUsage kReadOnlyStorageBuffer =
39 static_cast<wgpu::BufferUsage>(0x80000000);
/third_party/skia/src/gpu/dawn/
DGrDawnBuffer.cpp13 wgpu::BufferUsage GrGpuBufferTypeToDawnUsageBit(GrGpuBufferType type) { in GrGpuBufferTypeToDawnUsageBit()
16 return wgpu::BufferUsage::Vertex | wgpu::BufferUsage::CopyDst; in GrGpuBufferTypeToDawnUsageBit()
18 return wgpu::BufferUsage::Index | wgpu::BufferUsage::CopyDst; in GrGpuBufferTypeToDawnUsageBit()
20 return wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc; in GrGpuBufferTypeToDawnUsageBit()
22 return wgpu::BufferUsage::MapRead | wgpu::BufferUsage::CopyDst; in GrGpuBufferTypeToDawnUsageBit()
25 return wgpu::BufferUsage::Vertex; in GrGpuBufferTypeToDawnUsageBit()
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()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DBufferD3D12.cpp32 D3D12_RESOURCE_FLAGS D3D12ResourceFlags(wgpu::BufferUsage usage) { in D3D12ResourceFlags()
35 if (usage & (wgpu::BufferUsage::Storage | kInternalStorageBuffer)) { in D3D12ResourceFlags()
42 D3D12_RESOURCE_STATES D3D12BufferUsage(wgpu::BufferUsage usage) { in D3D12BufferUsage()
45 if (usage & wgpu::BufferUsage::CopySrc) { in D3D12BufferUsage()
48 if (usage & wgpu::BufferUsage::CopyDst) { in D3D12BufferUsage()
51 if (usage & (wgpu::BufferUsage::Vertex | wgpu::BufferUsage::Uniform)) { in D3D12BufferUsage()
54 if (usage & wgpu::BufferUsage::Index) { in D3D12BufferUsage()
57 if (usage & (wgpu::BufferUsage::Storage | kInternalStorageBuffer)) { in D3D12BufferUsage()
64 if (usage & wgpu::BufferUsage::Indirect) { in D3D12BufferUsage()
67 if (usage & wgpu::BufferUsage::QueryResolve) { in D3D12BufferUsage()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DComputeStorageBufferBarrierTests.cpp32 device, data.data(), bufferSize, wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc); in TEST_P()
79 device, data.data(), bufferSize, wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc); in TEST_P()
82 device, data.data(), bufferSize, wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc); in TEST_P()
145 device, data.data(), bufferSize, wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc); in TEST_P()
148 device, data.data(), bufferSize, wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc); in TEST_P()
212 wgpu::BufferUsage::Storage | wgpu::BufferUsage::Uniform | wgpu::BufferUsage::CopySrc); in TEST_P()
216 wgpu::BufferUsage::Storage | wgpu::BufferUsage::Uniform | wgpu::BufferUsage::CopySrc); in TEST_P()
280 wgpu::BufferUsage::Storage | wgpu::BufferUsage::Uniform | wgpu::BufferUsage::CopySrc); in TEST_P()
284 wgpu::BufferUsage::Storage | wgpu::BufferUsage::Uniform | wgpu::BufferUsage::CopySrc); in TEST_P()
380 device, wgpu::BufferUsage::Storage | wgpu::BufferUsage::Indirect, {0u, 0u, 0u}); in TEST_P()
[all …]
DBufferZeroInitTests.cpp59 wgpu::BufferUsage usage, in CreateBuffer()
138 CreateBuffer(bufferSize, wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst); in TestBufferZeroInitInCopyTextureToBuffer()
179 CreateBuffer(bufferSize, wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::CopySrc | in TestBufferZeroInitInBindGroup()
180 wgpu::BufferUsage::Storage | wgpu::BufferUsage::Uniform); in TestBufferZeroInitInBindGroup()
272 CreateBuffer(vertexBufferSize, wgpu::BufferUsage::Vertex | wgpu::BufferUsage::CopySrc | in TestBufferZeroInitAsVertexBuffer()
273 wgpu::BufferUsage::CopyDst); in TestBufferZeroInitAsVertexBuffer()
318 CreateBuffer(indexBufferSize, wgpu::BufferUsage::Index | wgpu::BufferUsage::CopySrc | in TestBufferZeroInitAsIndexBuffer()
319 wgpu::BufferUsage::CopyDst); in TestBufferZeroInitAsIndexBuffer()
368 CreateBuffer(bufferSize, wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::Indirect); in TestBufferZeroInitAsIndirectBufferForDrawIndirect()
401 utils::CreateBufferFromData<uint32_t>(device, wgpu::BufferUsage::Index, {0}); in TestBufferZeroInitAsIndirectBufferForDrawIndexedIndirect()
[all …]
DMaxLimitTests.cpp78 wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst; in TEST_P()
111 for (wgpu::BufferUsage usage : {wgpu::BufferUsage::Storage, wgpu::BufferUsage::Uniform}) { in TEST_P()
115 case wgpu::BufferUsage::Storage: in TEST_P()
151 case wgpu::BufferUsage::Uniform: in TEST_P()
190 bufDesc.usage = usage | wgpu::BufferUsage::CopyDst; in TEST_P()
203 resultBufDesc.usage = wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc; in TEST_P()
DCommandEncoderTests.cpp23 device, wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::CopySrc, {0, 0, 0, 0}); in TEST_P()
25 device, wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::CopySrc, {0, 0, 0, 0}); in TEST_P()
27 device, wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::CopySrc, {0, 0, 0, 0}); in TEST_P()
DBufferTests.cpp43 descriptor.usage = wgpu::BufferUsage::MapRead | wgpu::BufferUsage::CopyDst; in CreateMapReadBuffer()
50 descriptor.usage = wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc; in CreateMapWriteBuffer()
375 descriptor.usage = wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc; in TEST_P()
561 wgpu::Buffer BufferMappedAtCreation(wgpu::BufferUsage usage, uint64_t size) { in BufferMappedAtCreation()
569 wgpu::Buffer BufferMappedAtCreationWithData(wgpu::BufferUsage usage, in BufferMappedAtCreationWithData()
582 wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc, {myData}); in TEST_P()
590 wgpu::Buffer buffer = BufferMappedAtCreationWithData(wgpu::BufferUsage::MapRead, {myData}); in TEST_P()
601 wgpu::Buffer buffer = BufferMappedAtCreationWithData(wgpu::BufferUsage::CopySrc, {myData}); in TEST_P()
616 wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc, {myData}); in TEST_P()
630 wgpu::Buffer buffer = BufferMappedAtCreationWithData(wgpu::BufferUsage::MapRead, myData); in TEST_P()
[all …]
DNonzeroBufferCreationTests.cpp45 descriptor.usage = wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst; in TEST_P()
61 descriptor.usage = wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc; in TEST_P()
91 descriptor.usage = wgpu::BufferUsage::MapRead; in TEST_P()
107 descriptor.usage = wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc; in TEST_P()
120 descriptor.usage = wgpu::BufferUsage::CopySrc; in TEST_P()
DIndexFormatTests.cpp74 device, wgpu::BufferUsage::Vertex, in TEST_P()
79 utils::CreateBufferFromData<uint32_t>(device, wgpu::BufferUsage::Index, {1, 2, 3}); in TEST_P()
102 device, wgpu::BufferUsage::Vertex, in TEST_P()
106 utils::CreateBufferFromData<uint16_t>(device, wgpu::BufferUsage::Index, {1, 2, 0, 0, 0, 0}); in TEST_P()
132 device, wgpu::BufferUsage::Vertex, in TEST_P()
137 utils::CreateBufferFromData<uint32_t>(device, wgpu::BufferUsage::Index, {1, 2, 3}); in TEST_P()
163 device, wgpu::BufferUsage::Vertex, in TEST_P()
166 utils::CreateBufferFromData<uint32_t>(device, wgpu::BufferUsage::Index, {0, 1, 2}); in TEST_P()
191 device, wgpu::BufferUsage::Vertex, in TEST_P()
194 utils::CreateBufferFromData<uint32_t>(device, wgpu::BufferUsage::Index, {0, 1, 2}); in TEST_P()
[all …]
DDeviceLostTests.cpp242 bufferDescriptor.usage = wgpu::BufferUsage::CopySrc; in TEST_P()
250 bufferDescriptor.usage = wgpu::BufferUsage::MapWrite; in TEST_P()
263 bufferDescriptor.usage = wgpu::BufferUsage::MapWrite; in TEST_P()
275 bufferDescriptor.usage = wgpu::BufferUsage::MapWrite; in TEST_P()
287 bufferDescriptor.usage = wgpu::BufferUsage::MapWrite; in TEST_P()
298 bufferDescriptor.usage = wgpu::BufferUsage::MapRead | wgpu::BufferUsage::CopyDst; in TEST_P()
312 bufferDescriptor.usage = wgpu::BufferUsage::MapRead | wgpu::BufferUsage::CopyDst; in TEST_P()
325 bufferDescriptor.usage = wgpu::BufferUsage::MapRead | wgpu::BufferUsage::CopyDst; in TEST_P()
340 desc.usage = wgpu::BufferUsage::CopySrc; in TEST_P()
351 desc.usage = wgpu::BufferUsage::CopySrc; in TEST_P()
[all …]
DGpuMemorySynchronizationTests.cpp28 wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::Storage; in CreateBuffer()
240 bufferDesc.usage = wgpu::BufferUsage::Storage | wgpu::BufferUsage::Uniform; in CreateBuffer()
423 wgpu::Buffer CreateZeroedBuffer(uint64_t size, wgpu::BufferUsage usage) { in CreateZeroedBuffer()
477 wgpu::BufferUsage::Vertex | wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopyDst); in TEST_P()
480 wgpu::BufferUsage::Index | wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopyDst); in TEST_P()
482 CreateZeroedBuffer(sizeof(float), wgpu::BufferUsage::Uniform | wgpu::BufferUsage::Storage | in TEST_P()
483 wgpu::BufferUsage::CopyDst); in TEST_P()
485 CreateZeroedBuffer(sizeof(float), wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopyDst); in TEST_P()
601 sizeof(Data), wgpu::BufferUsage::Vertex | wgpu::BufferUsage::Index | in TEST_P()
602 wgpu::BufferUsage::Uniform | wgpu::BufferUsage::Storage | in TEST_P()
[all …]
DComputeCopyStorageBufferTests.cpp44 wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst; in BasicTest()
58 wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst; in BasicTest()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DBufferValidationTests.cpp38 descriptor.usage = wgpu::BufferUsage::MapRead; in CreateMapReadBuffer()
46 descriptor.usage = wgpu::BufferUsage::MapWrite; in CreateMapWriteBuffer()
51 wgpu::Buffer BufferMappedAtCreation(uint64_t size, wgpu::BufferUsage usage) { in BufferMappedAtCreation()
91 descriptor.usage = wgpu::BufferUsage::Uniform; in TEST_F()
103 descriptor.usage = wgpu::BufferUsage::MapRead | wgpu::BufferUsage::CopyDst; in TEST_F()
112 descriptor.usage = wgpu::BufferUsage::MapRead | wgpu::BufferUsage::Uniform; in TEST_F()
121 descriptor.usage = wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc; in TEST_F()
130 descriptor.usage = wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::Uniform; in TEST_F()
164 desc.usage = wgpu::BufferUsage::MapRead | wgpu::BufferUsage::MapWrite; in TEST_F()
249 desc.usage = wgpu::BufferUsage::Vertex; in TEST_F()
[all …]
DCopyCommandsValidationTests.cpp25 wgpu::Buffer CreateBuffer(uint64_t size, wgpu::BufferUsage usage) { in CreateBuffer()
188 CreateBuffer(bufferSize, wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst); in TestBothTBCopiesExactBufferSize()
195 CreateBuffer(invalidSize, wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst); in TestBothTBCopiesExactBufferSize()
234 wgpu::Buffer source = CreateBuffer(16, wgpu::BufferUsage::CopySrc); in TEST_F()
235 wgpu::Buffer destination = CreateBuffer(16, wgpu::BufferUsage::CopyDst); in TEST_F()
260 wgpu::Buffer source = CreateBuffer(16, wgpu::BufferUsage::CopySrc); in TEST_F()
261 wgpu::Buffer destination = CreateBuffer(16, wgpu::BufferUsage::CopyDst); in TEST_F()
274 wgpu::Buffer source = CreateBuffer(16, wgpu::BufferUsage::CopySrc); in TEST_F()
275 wgpu::Buffer destination = CreateBuffer(16, wgpu::BufferUsage::CopyDst); in TEST_F()
294 wgpu::Buffer source = CreateBuffer(16, wgpu::BufferUsage::CopySrc); in TEST_F()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DBufferD3D.cpp50 void BufferD3D::updateD3DBufferUsage(const gl::Context *context, gl::BufferUsage usage) in updateD3DBufferUsage()
54 case gl::BufferUsage::StaticCopy: in updateD3DBufferUsage()
55 case gl::BufferUsage::StaticDraw: in updateD3DBufferUsage()
56 case gl::BufferUsage::StaticRead: in updateD3DBufferUsage()
57 case gl::BufferUsage::DynamicCopy: in updateD3DBufferUsage()
58 case gl::BufferUsage::DynamicRead: in updateD3DBufferUsage()
59 case gl::BufferUsage::StreamCopy: in updateD3DBufferUsage()
60 case gl::BufferUsage::StreamRead: in updateD3DBufferUsage()
65 case gl::BufferUsage::DynamicDraw: in updateD3DBufferUsage()
66 case gl::BufferUsage::StreamDraw: in updateD3DBufferUsage()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DBufferD3D.cpp50 void BufferD3D::updateD3DBufferUsage(const gl::Context *context, gl::BufferUsage usage) in updateD3DBufferUsage()
54 case gl::BufferUsage::StaticCopy: in updateD3DBufferUsage()
55 case gl::BufferUsage::StaticDraw: in updateD3DBufferUsage()
56 case gl::BufferUsage::StaticRead: in updateD3DBufferUsage()
57 case gl::BufferUsage::DynamicCopy: in updateD3DBufferUsage()
58 case gl::BufferUsage::DynamicRead: in updateD3DBufferUsage()
59 case gl::BufferUsage::StreamCopy: in updateD3DBufferUsage()
60 case gl::BufferUsage::StreamRead: in updateD3DBufferUsage()
65 case gl::BufferUsage::DynamicDraw: in updateD3DBufferUsage()
66 case gl::BufferUsage::StreamDraw: in updateD3DBufferUsage()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/white_box/
DBufferAllocatedSizeTests.cpp24 wgpu::Buffer CreateBuffer(wgpu::BufferUsage usage, uint64_t size) { in CreateBuffer()
55 wgpu::Buffer buffer = CreateBuffer(wgpu::BufferUsage::Uniform, bufferSize); in TEST_P()
65 CreateBuffer(wgpu::BufferUsage::Uniform | wgpu::BufferUsage::Storage, bufferSize); in TEST_P()
74 CreateBuffer(wgpu::BufferUsage::Uniform | wgpu::BufferUsage::Storage, bufferSize); in TEST_P()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DBuffer11.h32 enum BufferUsage enum
57 BufferUsage usage,
97 gl::BufferUsage usage) override;
132 void markBufferUsage(BufferUsage usage);
133 angle::Result markBufferUsage(const gl::Context *context, BufferUsage usage);
134 angle::Result garbageCollection(const gl::Context *context, BufferUsage currentUsage);
146 BufferUsage usage,
160 BufferStorage *allocateStorage(BufferUsage usage);
161 void updateDeallocThreshold(BufferUsage usage);
164 angle::Result checkForDeallocation(const gl::Context *context, BufferUsage usage);
/third_party/skia/src/gpu/vk/
DGrVkBuffer.cpp82 using BufferUsage = GrVkMemoryAllocator::BufferUsage; in Make() typedef
83 BufferUsage allocUsage; in Make()
94 allocUsage = requiresMappable ? BufferUsage::kCpuWritesGpuReads : BufferUsage::kGpuOnly; in Make()
98 allocUsage = requiresMappable ? BufferUsage::kCpuWritesGpuReads : BufferUsage::kGpuOnly; in Make()
102 allocUsage = requiresMappable ? BufferUsage::kCpuWritesGpuReads : BufferUsage::kGpuOnly; in Make()
106 allocUsage = BufferUsage::kCpuWritesGpuReads; in Make()
110 allocUsage = BufferUsage::kTransfersFromCpuToGpu; in Make()
114 allocUsage = BufferUsage::kTransfersFromGpuToCpu; in Make()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DBuffer11.h32 enum BufferUsage enum
58 BufferUsage usage,
103 gl::BufferUsage usage) override;
153 void markBufferUsage(BufferUsage usage);
154 angle::Result markBufferUsage(const gl::Context *context, BufferUsage usage);
155 angle::Result garbageCollection(const gl::Context *context, BufferUsage currentUsage);
167 BufferUsage usage,
181 BufferStorage *allocateStorage(BufferUsage usage);
182 void updateDeallocThreshold(BufferUsage usage);
185 angle::Result checkForDeallocation(const gl::Context *context, BufferUsage usage);

12345678910