Mercurial > games > semicongine
diff src/zamikongine/vulkan_helpers.nim @ 483:73a0954beabd
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 | 14e5151f68d1 |
children | 3f1111f3b9f8 |
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