From 728d21a3408f4ec83325feef9202fac43e680e2b Mon Sep 17 00:00:00 2001 From: nek0 Date: Wed, 19 Apr 2023 16:05:52 +0200 Subject: [PATCH] make runnable on non-discrete GPUs --- src/Devices.hs | 2 +- vulkan-tutorial.cabal | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Devices.hs b/src/Devices.hs index 38756bd..ec5f19c 100644 --- a/src/Devices.hs +++ b/src/Devices.hs @@ -39,7 +39,7 @@ pickPhysicalDevice vkInstance = do let discretePhysDevices = V.filter (\(_, devProps, devFeatures) -> - Vk.deviceType devProps == Vk.PHYSICAL_DEVICE_TYPE_DISCRETE_GPU && + Vk.deviceType devProps == -- Vk.PHYSICAL_DEVICE_TYPE_DISCRETE_GPU && Vk.geometryShader devFeatures ) devicesWithPropsAndFeatures diff --git a/vulkan-tutorial.cabal b/vulkan-tutorial.cabal index bf470be..9b14870 100644 --- a/vulkan-tutorial.cabal +++ b/vulkan-tutorial.cabal @@ -42,7 +42,6 @@ executable vulkan-tutorial build-depends: base >=4.14.3.0 , sdl2 , vulkan - , vulkan-api , vulkan-utils , VulkanMemoryAllocator , wavefront