mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-04-10 19:16:35 +00:00
chore: hoist std::mem::size_of
import, Vulkan edition
This commit is contained in:
parent
a902645592
commit
b1ca9dfd1f
@ -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,
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user