Trait erupt::ObjectHandle
source · pub trait ObjectHandle: Default + PartialEq {
const TYPE: ObjectType;
fn to_raw(self) -> u64;
fn from_raw(raw: u64) -> Self;
fn null() -> Self { ... }
fn is_null(self) -> bool { ... }
}
Expand description
Vulkan object handles (dispatchable and non-dispatchable).
This can be useful for building generic abstractions around functions like
DeviceLoader::debug_marker_set_object_name_ext
.
Required Associated Constants
sourceconst TYPE: ObjectType
const TYPE: ObjectType
An abstract object type.
Required Methods
Provided Methods
sourcefn null() -> Self
fn null() -> Self
Get the null handle for this object.
This is the same as Default::default
.
sourcefn is_null(self) -> bool
fn is_null(self) -> bool
Is this handle null / Default::default
?