# HG changeset patch # User sam # Date 1711701857 -25200 # Node ID 93623146dd618e35a5d6a02c5061d7bd4c5904b0 # Parent 2a836a58d2313df662f6b03087a05bc9bb50cf5c fix: last commit was actually only relevant for ARM, also adjust validation outputs diff -r 2a836a58d231 -r 93623146dd61 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 2a836a58d231 -r 93623146dd61 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)