Skip to content

Commit 7c46b4b

Browse files
fixup! WIP-TEST: refactor(hlsl-out): remove unsafe ops in Adapter::texture_format_capabilities
1 parent 754ff7d commit 7c46b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-hal/src/dx12/adapter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ impl crate::Adapter<super::Api> for super::Adapter {
390390
winerror::S_OK,
391391
self.device.CheckFeatureSupport(
392392
d3d12::D3D12_FEATURE_FORMAT_SUPPORT,
393-
ptr::addr_of_mut!(data_no_depth).cast::<c_void>(),
393+
ptr::addr_of_mut!(data_no_depth).cast(),
394394
DWORD::try_from(mem::size_of::<d3d12::D3D12_FEATURE_DATA_FORMAT_SUPPORT>())
395395
.unwrap(),
396396
)

0 commit comments

Comments
 (0)