From c6ab95f87caabf8c868876bd009e22a8e0f56be5 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 8 Feb 2022 09:09:37 -0500 Subject: [PATCH] Restore mip map functionality in Vulkan --- engine/gfx/vulkan/src/gfx_vulkan.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/gfx/vulkan/src/gfx_vulkan.cpp b/engine/gfx/vulkan/src/gfx_vulkan.cpp index cd1cb52..5487b40 100755 --- a/engine/gfx/vulkan/src/gfx_vulkan.cpp +++ b/engine/gfx/vulkan/src/gfx_vulkan.cpp @@ -508,6 +508,7 @@ GFXTexture* GFXVulkan::create_texture(const GFXTextureCreateInfo& info) { samplerInfo.borderColor = toBorderColor(info.border_color); samplerInfo.compareOp = toCompareFunc(info.compare_function); samplerInfo.mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR; + samplerInfo.maxLod = static_cast(info.mip_count); vkCreateSampler(device, &samplerInfo, nullptr, &texture->sampler);