Actually test push constants to be used (#1767)

This commit is contained in:
Dzmitry Malyshau authored and GitHub committed 2022-03-08 23:02:20 -05:00
1 parent c84aa77579
commit 1d3fb26ffd
6 files changed
+72 -60

No files matched your search

+4 -1
View File
@@ -418,7 +418,10 @@ impl crate::AddressSpace {
// may end up with "const" even if the binding is read-write,
// and that should be OK.
Self::Storage { .. } | Self::Private | Self::WorkGroup => true,
Self::Uniform | Self::PushConstant | Self::Handle | Self::Function => false,
// These translate to `constant` address space, no need for qualifiers.
Self::Uniform | Self::PushConstant => false,
// Not applicable.
Self::Handle | Self::Function => false,
}
}