diff options
Diffstat (limited to 'ext/webgpu/src/render_pass.rs')
-rw-r--r-- | ext/webgpu/src/render_pass.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/webgpu/src/render_pass.rs b/ext/webgpu/src/render_pass.rs index 16398359f..5d2cd6e5a 100644 --- a/ext/webgpu/src/render_pass.rs +++ b/ext/webgpu/src/render_pass.rs @@ -305,9 +305,9 @@ pub fn op_webgpu_render_pass_set_bind_group( // Align the data assert!(args.dynamic_offsets_data_start % std::mem::size_of::<u32>() == 0); - // SAFETY: A u8 to u32 cast is safe because we asserted that the length is a - // multiple of 4. let (prefix, dynamic_offsets_data, suffix) = + // SAFETY: A u8 to u32 cast is safe because we asserted that the length is a + // multiple of 4. unsafe { args.dynamic_offsets_data.align_to::<u32>() }; assert!(prefix.is_empty()); assert!(suffix.is_empty()); |