mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-19 09:55:26 +00:00
Add semantic::Struct::SizeNoPadding
This is the size of the structure without the trailing alignment padding. This is what the Dawn needs from the Inspector. Fixed: tint:653 Change-Id: Iaa01ba949e114973e4a33e084fc10ef9e111016c Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/45120 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
96829ed314
commit
ad97343214
@@ -392,6 +392,7 @@ std::vector<ResourceBinding> Inspector::GetUniformBufferResourceBindings(
|
||||
entry.bind_group = binding_info.group->value();
|
||||
entry.binding = binding_info.binding->value();
|
||||
entry.size = sem->Size();
|
||||
entry.size_no_padding = sem->SizeNoPadding();
|
||||
|
||||
result.push_back(entry);
|
||||
}
|
||||
@@ -567,6 +568,7 @@ std::vector<ResourceBinding> Inspector::GetStorageBufferResourceBindingsImpl(
|
||||
entry.bind_group = binding_info.group->value();
|
||||
entry.binding = binding_info.binding->value();
|
||||
entry.size = sem->Size();
|
||||
entry.size_no_padding = sem->SizeNoPadding();
|
||||
|
||||
result.push_back(entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user