Skip to content

Engine → Platform

native_handle.h

Opaque per-OS window handles for the rhi: the D3D12 swapchain needs the HWND, MoltenVK the NSWindow. No OS header is involved; the pointers are what the backend got from GLFW's native access functions. kind == NONE on the null backend.

Structs

File Description
native_window_handle

Enumerations

native_handle_kind

enum class native_handle_kind : u8 {
    NONE = 0,
    WINDOWS,    // not WIN32: CMake defines that macro on every Windows build
    COCOA,
    X11,
    WAYLAND
};