mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 08:06:19 +00:00
Use C++17 structured binding in more places.
Bug: dawn:824 Change-Id: Ie39d4f622bfb3dcc3a74b03d594efcea7139a9dc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/75069 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
1c49d1b43b
commit
5984d8d1a8
@@ -230,11 +230,10 @@ namespace dawn_native {
|
||||
const uint32_t minStorageBufferOffsetAlignment =
|
||||
device->GetLimits().v1.minStorageBufferOffsetAlignment;
|
||||
|
||||
for (auto& entry : bufferInfoMap) {
|
||||
const IndirectDrawMetadata::IndexedIndirectConfig& config = entry.first;
|
||||
for (auto& [config, validationInfo] : bufferInfoMap) {
|
||||
BufferBase* clientIndirectBuffer = config.first;
|
||||
for (const IndirectDrawMetadata::IndexedIndirectValidationBatch& batch :
|
||||
entry.second.GetBatches()) {
|
||||
validationInfo.GetBatches()) {
|
||||
const uint64_t minOffsetFromAlignedBoundary =
|
||||
batch.minOffset % minStorageBufferOffsetAlignment;
|
||||
const uint64_t minOffsetAlignedDown =
|
||||
|
||||
Reference in New Issue
Block a user