mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 17:19:11 +01:00
spv-out: support version 1.4 (#2230)
* spv-out: support version 1.4 * Extract SPV version numner from the comment
This commit is contained in:
1 parent
6be394dac3
commit
16be1a9237
7 files changed
+66
-2
No files matched your search
@@ -4221,7 +4221,7 @@ fn test_stack_size() {
|
||||
let stack_size = addresses_end - addresses_start;
|
||||
// check the size (in debug only)
|
||||
// last observed macOS value: 19152 (CI)
|
||||
if !(9500..=20000).contains(&stack_size) {
|
||||
if !(9000..=20000).contains(&stack_size) {
|
||||
panic!("`put_block` stack size {stack_size} has changed!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -585,6 +585,12 @@ impl Writer {
|
||||
}
|
||||
|
||||
let mut gv = self.global_variables[handle.index()].clone();
|
||||
if let Some(ref mut iface) = interface {
|
||||
// Have to include global variables in the interface
|
||||
if self.physical_layout.version >= 0x10400 {
|
||||
iface.varying_ids.push(gv.var_id);
|
||||
}
|
||||
}
|
||||
|
||||
// Handle globals are pre-emitted and should be loaded automatically.
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user