changeset 1048:2a836a58d231

did: adjust max LOD according to vk best practices output
author sam <sam@basx.dev>
date Fri, 29 Mar 2024 15:39:04 +0700
parents 7524deee1e8c
children 93623146dd61
files semicongine/vulkan/image.nim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/vulkan/image.nim	Fri Mar 29 15:10:23 2024 +0700
+++ b/semicongine/vulkan/image.nim	Fri Mar 29 15:39:04 2024 +0700
@@ -225,7 +225,7 @@
     mipmapMode: VK_SAMPLER_MIPMAP_MODE_LINEAR,
     mipLodBias: 0,
     minLod: 0,
-    maxLod: 0,
+    maxLod: VK_LOD_CLAMP_NONE,
   )
   result.device = device
   checkVkResult device.vk.vkCreateSampler(addr samplerInfo, nil, addr result.vk)