mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
[spv-out] Fix word order for constants
This commit is contained in:
1 parent
ce1aed3423
commit
fc07d9c4cc
1 file changed
+3
-3
@@ -1004,7 +1004,7 @@ impl Writer {
|
||||
&solo[..]
|
||||
}
|
||||
8 => {
|
||||
pair = [(val >> 32) as u32, val as u32];
|
||||
pair = [val as u32, (val >> 32) as u32];
|
||||
&pair
|
||||
}
|
||||
_ => unreachable!(),
|
||||
@@ -1018,7 +1018,7 @@ impl Writer {
|
||||
&solo[..]
|
||||
}
|
||||
8 => {
|
||||
pair = [(val >> 32) as u32, val as u32];
|
||||
pair = [val as u32, (val >> 32) as u32];
|
||||
&pair
|
||||
}
|
||||
_ => unreachable!(),
|
||||
@@ -1033,7 +1033,7 @@ impl Writer {
|
||||
}
|
||||
8 => {
|
||||
let bits = f64::to_bits(val);
|
||||
pair = [(bits >> 32) as u32, bits as u32];
|
||||
pair = [bits as u32, (bits >> 32) as u32];
|
||||
&pair
|
||||
}
|
||||
_ => unreachable!(),
|
||||
|
||||
Reference in new issue
Block a user