From ded8851e16cdf11b52a8931ea34c1ed9691de03a Mon Sep 17 00:00:00 2001 From: chyyran Date: Tue, 21 Feb 2023 17:07:48 -0500 Subject: [PATCH] d3d11/12: fix sampler set creation --- librashader-runtime-d3d11/src/samplers.rs | 2 +- librashader-runtime-d3d12/src/samplers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/librashader-runtime-d3d11/src/samplers.rs b/librashader-runtime-d3d11/src/samplers.rs index 5ecf7c9..3a42564 100644 --- a/librashader-runtime-d3d11/src/samplers.rs +++ b/librashader-runtime-d3d11/src/samplers.rs @@ -31,7 +31,7 @@ impl SamplerSet { let mut sampler = None; device.CreateSamplerState( &D3D11_SAMPLER_DESC { - Filter: FilterMode::Linear.into(), + Filter: filter_mode.into(), AddressU: D3D11_TEXTURE_ADDRESS_MODE::from(*wrap_mode), AddressV: D3D11_TEXTURE_ADDRESS_MODE::from(*wrap_mode), AddressW: D3D11_TEXTURE_ADDRESS_MODE::from(*wrap_mode), diff --git a/librashader-runtime-d3d12/src/samplers.rs b/librashader-runtime-d3d12/src/samplers.rs index 219fbfe..80998b9 100644 --- a/librashader-runtime-d3d12/src/samplers.rs +++ b/librashader-runtime-d3d12/src/samplers.rs @@ -41,7 +41,7 @@ impl SamplerSet { let sampler = heap.alloc_slot()?; device.CreateSampler( &D3D12_SAMPLER_DESC { - Filter: FilterMode::Linear.into(), + Filter: filter_mode.into(), AddressU: D3D12_TEXTURE_ADDRESS_MODE::from(*wrap_mode), AddressV: D3D12_TEXTURE_ADDRESS_MODE::from(*wrap_mode), AddressW: D3D12_TEXTURE_ADDRESS_MODE::from(*wrap_mode),