Skip to content

Commit

Permalink
chore: hoist std::mem::size_of import, Vulkan edition
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Nov 22, 2024
1 parent a902645 commit b1ca9df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wgpu-hal/src/vulkan/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use std::{
borrow::Cow,
collections::{hash_map::Entry, BTreeMap},
ffi::{CStr, CString},
mem,
mem::MaybeUninit,
mem::{self, size_of, MaybeUninit},
num::NonZeroU32,
ptr, slice,
sync::Arc,
Expand Down Expand Up @@ -2571,8 +2570,7 @@ impl crate::Device for super::Device {
};
let temp: *const _ = &temp;
unsafe {
slice::from_raw_parts::<u8>(temp.cast::<u8>(), mem::size_of::<RawTlasInstance>())
.to_vec()
slice::from_raw_parts::<u8>(temp.cast::<u8>(), size_of::<RawTlasInstance>()).to_vec()
}
}
}
Expand Down

0 comments on commit b1ca9df

Please sign in to comment.