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

An abstract object type.

Required Methods

Get this object’s raw handle.

Construct an object from an raw handle.

Provided Methods

Get the null handle for this object.

This is the same as Default::default.

Is this handle null / Default::default?

Implementors