d3d11/12: fix sampler set creation
This commit is contained in:
parent
e2901b4a59
commit
a3024686ad
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue