ludus::graphics::rhi::DeviceHandle¶
Ludus Wiki · API overview · Browse API
Struct
Identity of the single explicitly owned device session; never a backend pointer. Copying does not transfer ownership. Main-thread use only; destroy exactly once. The owner identity never wraps or becomes valid again after destruction/restart.
Declared in modules/graphics/rhi/include/ludus/graphics/rhi/device.h
#include <ludus/graphics/rhi/device.h>
struct ludus::graphics::rhi::DeviceHandle final
Members¶
internal::DeviceAccess¶
friend struct internal::DeviceAccess
Grants private dispatch access to assign and validate the owner identity.
Declared in modules/graphics/rhi/include/ludus/graphics/rhi/device.h
Methods¶
operator==¶
LUDUS_INLINE bool ludus::graphics::rhi::DeviceHandle::operator==(const DeviceHandle &) const noexcept=default
Compare session identities only, without querying readiness or retaining ownership.
Related types: DeviceHandle
Declared in modules/graphics/rhi/include/ludus/graphics/rhi/device.h