Skip to content

Commit

Permalink
UB
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Aug 27, 2024
1 parent ca7b68d commit a41faec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wgpu-hal/src/dx12/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
}
}
Expand Down

0 comments on commit a41faec

Please sign in to comment.