Skip to content

Commit

Permalink
fixup! feat: make GPU-based validation opt-in with new `InstanceFlags…
Browse files Browse the repository at this point in the history
…::GPU_BASED_VALIDATION`

Intended to resolve
<#5146 (comment)>.
  • Loading branch information
ErichDonGubler committed Jan 30, 2024
1 parent f4e6b32 commit f652549
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wgpu-hal/src/dx12/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ impl crate::Instance<super::Api> for super::Instance {
if desc
.flags
.intersects(wgt::InstanceFlags::GPU_BASED_VALIDATION)
&& !debug_controller.enable_gpu_based_validation()
{
log::warn!("Failed to enable GPU-based validation");
#[allow(clippy::collapsible_if)]
if !debug_controller.enable_gpu_based_validation() {
log::warn!("Failed to enable GPU-based validation");
}
}
}
Err(err) => {
Expand Down

0 comments on commit f652549

Please sign in to comment.