mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 22:25:42 +00:00
Vulkan: Don't hardcode mipmap samplers to lod0
This commit is contained in:
parent
59e8363075
commit
2ce5dc3bbe
|
@ -454,6 +454,12 @@ void SamplerBuilder::SetLinearSampler(bool mipmaps,
|
||||||
SetFilter(VK_FILTER_LINEAR, VK_FILTER_LINEAR,
|
SetFilter(VK_FILTER_LINEAR, VK_FILTER_LINEAR,
|
||||||
mipmaps ? VK_SAMPLER_MIPMAP_MODE_LINEAR : VK_SAMPLER_MIPMAP_MODE_NEAREST);
|
mipmaps ? VK_SAMPLER_MIPMAP_MODE_LINEAR : VK_SAMPLER_MIPMAP_MODE_NEAREST);
|
||||||
SetAddressMode(address_mode, address_mode, address_mode);
|
SetAddressMode(address_mode, address_mode, address_mode);
|
||||||
|
|
||||||
|
if (mipmaps)
|
||||||
|
{
|
||||||
|
m_ci.minLod = std::numeric_limits<float>::min();
|
||||||
|
m_ci.maxLod = std::numeric_limits<float>::max();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DescriptorSetUpdateBuilder::DescriptorSetUpdateBuilder()
|
DescriptorSetUpdateBuilder::DescriptorSetUpdateBuilder()
|
||||||
|
|
Loading…
Reference in a new issue