We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::mem::size_of
1 parent a902645 commit b1ca9dfCopy full SHA for b1ca9df
wgpu-hal/src/vulkan/device.rs
@@ -9,8 +9,7 @@ use std::{
9
borrow::Cow,
10
collections::{hash_map::Entry, BTreeMap},
11
ffi::{CStr, CString},
12
- mem,
13
- mem::MaybeUninit,
+ mem::{self, size_of, MaybeUninit},
14
num::NonZeroU32,
15
ptr, slice,
16
sync::Arc,
@@ -2571,8 +2570,7 @@ impl crate::Device for super::Device {
2571
2570
};
2572
let temp: *const _ = &temp;
2573
unsafe {
2574
- slice::from_raw_parts::<u8>(temp.cast::<u8>(), mem::size_of::<RawTlasInstance>())
2575
- .to_vec()
+ slice::from_raw_parts::<u8>(temp.cast::<u8>(), size_of::<RawTlasInstance>()).to_vec()
2576
}
2577
2578
0 commit comments