Skip to content

Commit

Permalink
Add space to a comment inside make_spirv_raw (#4804)
Browse files Browse the repository at this point in the history
  • Loading branch information
ComfyFluffy authored Nov 29, 2023
1 parent 8da4925 commit c4ef520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn make_spirv_raw(data: &[u8]) -> Cow<'_, [u32]> {
);
assert_ne!(data.len(), 0, "data size must be larger than zero");

//If the data happens to be aligned, directly use the byte array,
// If the data happens to be aligned, directly use the byte array,
// otherwise copy the byte array in an owned vector and use that instead.
let mut words = if data.as_ptr().align_offset(align_of::<u32>()) == 0 {
let (pre, words, post) = unsafe { data.align_to::<u32>() };
Expand Down

0 comments on commit c4ef520

Please sign in to comment.