mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Adds mipLODBias usage to Vulkan samplers.
This was SVN commit r27784.
This commit is contained in:
parent
80bcf944bc
commit
94e30ae08e
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ VkSampler CSamplerManager::GetOrCreateSampler(
|
|||
samplerCreateInfo.addressModeU = Mapping::FromAddressMode(samplerDesc.addressModeU);
|
||||
samplerCreateInfo.addressModeV = Mapping::FromAddressMode(samplerDesc.addressModeV);
|
||||
samplerCreateInfo.addressModeW = Mapping::FromAddressMode(samplerDesc.addressModeW);
|
||||
samplerCreateInfo.mipLodBias = samplerDesc.mipLODBias;
|
||||
if (samplerDesc.anisotropyEnabled && m_Device->GetCapabilities().anisotropicFiltering)
|
||||
{
|
||||
samplerCreateInfo.anisotropyEnable = VK_TRUE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue