diff options
| author | hachem <im@hachem.wtf> | 2026-08-23 17:21:37 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-23 17:21:37 +0200 |
| commit | 3fd33ecff7472e4d6fc9e6b3905f56982e497ef2 (patch) | |
| tree | 66e5812f1a18b926e88a0dd549fe14e7c7327165 /src/platform/vulkan/vulkan_device.h | |
| parent | e3aa33fc9a99d8b817bda42a567a4c347e18ab32 (diff) | |
[feat]: complete RHI api
Diffstat (limited to 'src/platform/vulkan/vulkan_device.h')
| -rw-r--r-- | src/platform/vulkan/vulkan_device.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/platform/vulkan/vulkan_device.h b/src/platform/vulkan/vulkan_device.h new file mode 100644 index 0000000..efc2433 --- /dev/null +++ b/src/platform/vulkan/vulkan_device.h @@ -0,0 +1,17 @@ +#pragma once + +#include "rendering/rhi.h" + +namespace Donut::RHI +{ + // Vulkan implementation of the RHI Device (MoltenVK on macOS). Owns the + // instance/device/swapchain and translates the RHI's baked pipelines + + // recorded command lists into native Vulkan; the geometry it draws is the + // shared SceneRenderer / BlackHoleRenderer, identical to every other backend. + auto create_vulkan_device() -> Scope<Device>; + + // Must run BEFORE glfwInit() when Vulkan is the selected API: points GLFW at + // 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; +} |
