Skip to content

ludus::graphics::rhi::NativeDeviceInfo

Ludus Wiki · API overview · Browse API

Struct

Borrowed native context snapshot, valid only while its NativeDeviceLease is held.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/native_interop.h

#include <ludus/graphics/rhi/native_interop.h>
struct ludus::graphics::rhi::NativeDeviceInfo final

Fields

Identity

NativeDeviceIdentity ludus::graphics::rhi::NativeDeviceInfo::Identity {}
Exact logical device, instance and command queue used by RHI.

Related types: NativeDeviceIdentity

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/native_interop.h

Incarnation

ludus::foundation::uint64 ludus::graphics::rhi::NativeDeviceInfo::Incarnation = 0
RHI session incarnation; native pointer reuse does not revive an old lease.

Related types: ludus::foundation::uint64

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/native_interop.h

RegistryId

ludus::foundation::uint64 ludus::graphics::rhi::NativeDeviceInfo::RegistryId = 0
Metal registry ID, or zero on Vulkan.

Related types: ludus::foundation::uint64

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/native_interop.h

DeviceUuid

ludus::foundation::uint8 ludus::graphics::rhi::NativeDeviceInfo::DeviceUuid[16][16] {}
Vulkan device UUID, or all zeros on Metal.

Related types: ludus::foundation::uint8

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/native_interop.h

InstanceApiVersion

ludus::foundation::uint32 ludus::graphics::rhi::NativeDeviceInfo::InstanceApiVersion = 0
Vulkan instance API version, or zero on Metal.

Related types: ludus::foundation::uint32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/native_interop.h

Retiring

bool ludus::graphics::rhi::NativeDeviceInfo::Retiring = false
Shutdown has invalidated ordinary RHI handles; leased native objects remain alive until consumer completion and lease release. No new reads may be acquired.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/native_interop.h