Skip to content

Engine → RHI

native_window.h

The operating-system window a swapchain presents to, as opaque handles. The fields mirror platform::native_window_handle one to one so the engine copies window.native_handle() into this struct; the rhi module itself never includes a platform header. A handle of kind NONE means headless: the null device ignores it and the D3D12 backend creates a composition swapchain that is never attached to a visual, which lets GPU tests exercise the real present path without a window.

Structs

File Description
native_window

Enumerations

native_window_kind

enum class native_window_kind : u8 {
    NONE = 0,
    WINDOWS,
    COCOA,
    X11,
    WAYLAND
};

Functions

Public

to_string

[[nodiscard]] CONJURE_API std::string_view to_string(
    native_window_kind kind) noexcept;

The enumerator name of a window kind ("WINDOWS", "NONE"); "" for an out-of-range value.