# HG changeset patch # User sam # Date 1711701857 -25200 # Node ID 459066429a72e8da460eab727c2e61e5a121ae34 # Parent f28db3c48d0c2221fda34674e3175f3cba512310 fix: last commit was actually only relevant for ARM, also adjust validation outputs diff -r f28db3c48d0c -r 459066429a72 semicongine/engine.nim --- a/semicongine/engine.nim Fri Mar 29 15:39:04 2024 +0700 +++ b/semicongine/engine.nim Fri Mar 29 15:44:17 2024 +0700 @@ -89,7 +89,7 @@ instanceExtensions.add "VK_EXT_debug_utils" layers.add "VK_LAYER_KHRONOS_validation" # putEnv("VK_LAYER_ENABLES", "VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT") - putEnv("VK_LAYER_ENABLES", "VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_ALL,VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT,VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXTVK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT") + putEnv("VK_LAYER_ENABLES", "VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_AMD,VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_NVIDIA,VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXTVK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT,VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT") if defined(linux) and DEBUG: layers.add "VK_LAYER_MESA_overlay" diff -r f28db3c48d0c -r 459066429a72 semicongine/vulkan/image.nim --- a/semicongine/vulkan/image.nim Fri Mar 29 15:39:04 2024 +0700 +++ b/semicongine/vulkan/image.nim Fri Mar 29 15:44:17 2024 +0700 @@ -225,7 +225,7 @@ mipmapMode: VK_SAMPLER_MIPMAP_MODE_LINEAR, mipLodBias: 0, minLod: 0, - maxLod: VK_LOD_CLAMP_NONE, + maxLod: 0, ) result.device = device checkVkResult device.vk.vkCreateSampler(addr samplerInfo, nil, addr result.vk)