mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
fix(dx12): actually use NONE comparison function when it is None (#10221)
This commit is contained in:
1 parent
000cc9699f
commit
7d1314d537
1 file changed
+3
-1
@@ -820,7 +820,9 @@ impl crate::Device for super::Device {
|
||||
MipLODBias: 0f32,
|
||||
MaxAnisotropy: desc.anisotropy_clamp as u32,
|
||||
|
||||
ComparisonFunc: conv::map_comparison(desc.compare.unwrap_or_default()),
|
||||
ComparisonFunc: desc
|
||||
.compare
|
||||
.map_or(Direct3D12::D3D12_COMPARISON_FUNC_NONE, conv::map_comparison),
|
||||
BorderColor: border_color,
|
||||
MinLOD: desc.lod_clamp.start,
|
||||
MaxLOD: desc.lod_clamp.end,
|
||||
|
||||
Reference in new issue
Block a user