mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[spv-out] Fix duplicate scalar OpType
This commit is contained in:
@@ -189,7 +189,16 @@ impl Writer {
|
||||
*e.get()
|
||||
} else {
|
||||
match lookup_ty {
|
||||
LookupType::Handle(handle) => self.write_type_declaration_arena(arena, handle),
|
||||
LookupType::Handle(handle) => match arena[handle].inner {
|
||||
crate::TypeInner::Scalar { kind, width } => self.get_type_id(
|
||||
arena,
|
||||
LookupType::Local(LocalType::Scalar {
|
||||
kind,
|
||||
width,
|
||||
}),
|
||||
),
|
||||
_ => self.write_type_declaration_arena(arena, handle),
|
||||
},
|
||||
LookupType::Local(local_ty) => self.write_type_declaration_local(arena, local_ty),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user