From 9b76bcf12e291e8c7e2410ea83cb884f27e3d906 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 5 Feb 2025 10:41:46 -0500 Subject: [PATCH] fix(dx12): query resource binding tier, not resource heap tier, for bindless feature check (#7059) --- wgpu-hal/src/dx12/adapter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-hal/src/dx12/adapter.rs b/wgpu-hal/src/dx12/adapter.rs index ad37f6ad0b..8211fd9f94 100644 --- a/wgpu-hal/src/dx12/adapter.rs +++ b/wgpu-hal/src/dx12/adapter.rs @@ -154,8 +154,8 @@ impl super::Adapter { } .unwrap(); - if options.ResourceHeapTier == Direct3D12::D3D12_RESOURCE_HEAP_TIER_1 { - // We require Tier 2 for the ability to make samplers bindless in all cases. + if options.ResourceBindingTier.0 < Direct3D12::D3D12_RESOURCE_BINDING_TIER_2.0 { + // We require Tier 2 or higher for the ability to make samplers bindless in all cases. return None; }