From a41faec4396bb87c6c2aa9a94afb48eb4c4421cf Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Tue, 27 Aug 2024 22:52:12 +0200 Subject: [PATCH] UB --- wgpu-hal/src/dx12/command.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wgpu-hal/src/dx12/command.rs b/wgpu-hal/src/dx12/command.rs index 0babfcbb315..8f4bf6c81a4 100644 --- a/wgpu-hal/src/dx12/command.rs +++ b/wgpu-hal/src/dx12/command.rs @@ -763,6 +763,8 @@ impl crate::CommandEncoder for super::CommandEncoder { ds.clear_value.0, ds.clear_value.1 as u8, &[], // TODO: Pass None when https://github.com/microsoft/win32metadata/pull/1971 is in windows-rs + // This is UB. + // std::slice::from_raw_parts(std::ptr::null(), 0), ) } }