Mercurial > games > semicongine
diff src/zamikongine/vulkan_helpers.nim @ 22:b45a5d338cd0
did: improve alotof_triangles example, remove glslang lib, use only binary, easier cross-compilation
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 11 Jan 2023 00:43:17 +0700 |
parents | b55d6ecde79d |
children | c3c963e7c1a6 |
line wrap: on
line diff
--- a/src/zamikongine/vulkan_helpers.nim Tue Jan 10 00:24:37 2023 +0700 +++ b/src/zamikongine/vulkan_helpers.nim Wed Jan 11 00:43:17 2023 +0700 @@ -149,9 +149,11 @@ when ENABLEVULKANVALIDATIONLAYERS: const desiredLayers = ["VK_LAYER_KHRONOS_validation".cstring, "VK_LAYER_MESA_overlay".cstring] - for layer in desiredLayers: - if $layer in availableLayers: - usableLayers.add(layer) + else: + const desiredLayers = ["VK_LAYER_MESA_overlay".cstring] + for layer in desiredLayers: + if $layer in availableLayers: + usableLayers.add(layer) echo "Available validation layers: ", availableLayers echo "Using validation layers: ", usableLayers