aboutsummaryrefslogtreecommitdiff
path: root/src/platform/vulkan/vulkan_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/vulkan/vulkan_device.h')
-rw-r--r--src/platform/vulkan/vulkan_device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/platform/vulkan/vulkan_device.h b/src/platform/vulkan/vulkan_device.h
index 85cc5ca..31f5842 100644
--- a/src/platform/vulkan/vulkan_device.h
+++ b/src/platform/vulkan/vulkan_device.h
@@ -14,4 +14,8 @@ namespace Donut::RHI
// the loader the app links against (its own dlopen fails on macOS/Homebrew)
// and configures the MoltenVK ICD / layer paths.
auto vulkan_prepare_glfw() -> void;
+
+ // whether a Vulkan loader exists on this machine at all. on windows vulkan-1.dll
+ // is delay-loaded, so this has to say yes before any vk* call; true elsewhere.
+ auto vulkan_runtime_available() -> bool;
}