diff --git a/src/d3d12/mod.rs b/src/d3d12/mod.rs index 6236fd9..b2467e2 100644 --- a/src/d3d12/mod.rs +++ b/src/d3d12/mod.rs @@ -628,7 +628,7 @@ impl Allocator { device.CheckFeatureSupport( D3D12_FEATURE_D3D12_OPTIONS, <*mut D3D12_FEATURE_DATA_D3D12_OPTIONS>::cast(&mut options), - std::mem::size_of_val(&options) as u32, + size_of_val(&options) as u32, ) } .map_err(|e| {