You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ByteAddressableBuffer requires for the data to be aligned to 4 bytes, so the current condition is fine IMO; the naming could be better (word_index: u32), but the comment above explains it's inherited from HLSL.
Note that buffer_load_intrinsic() ends up doing 4 * byte_index:
rust-gpu/crates/spirv-std/src/byte_addressable_buffer.rs
Lines 73 to 78 in e87c324
Isn't the right-hand side multiplied by 4 because
data
is&[u32]
?The text was updated successfully, but these errors were encountered: