Skip to content

Commit

Permalink
fix(dx12): query resource binding tier, not resource heap tier, for b…
Browse files Browse the repository at this point in the history
…indless feature check
  • Loading branch information
ErichDonGubler committed Feb 5, 2025
1 parent d9e9c3a commit 6950702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu-hal/src/dx12/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6950702

Please sign in to comment.