We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674dca7 commit dc2b6deCopy full SHA for dc2b6de
crates/spirv-std/src/byte_addressable_buffer.rs
@@ -71,7 +71,7 @@ fn bounds_check<T>(data: &[u32], byte_index: u32) {
71
panic!("`byte_index` should be a multiple of 4");
72
}
73
let last_byte = byte_index + sizeof;
74
- let len = data.len() as u32;
+ let len = data.len() as u32 * 4;
75
if byte_index + sizeof > len {
76
panic!(
77
"index out of bounds: the len is {} but loading {} bytes at `byte_index` {} reads until {} (exclusive)",
0 commit comments