blob: efc2433cc77749bab3de96c5e8f2d28c29f3d3c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}
|