Trait vulkanalia::prelude::v1_0::Handle[][src]

pub trait Handle: Copy + Clone + Debug + PartialEq<Self> + Eq + Hash + Default {
    type Repr;

    pub const TYPE: ObjectType;

    pub fn null() -> Self;
pub fn from_raw(value: Self::Repr) -> Self;
pub fn as_raw(self) -> Self::Repr;
pub fn is_null(self) -> bool; }

A Vulkan handle type.

Associated Types

type Repr[src]

The underlying type for this handle type.

Loading content...

Associated Constants

pub const TYPE: ObjectType[src]

The object type for this handle type.

Loading content...

Required methods

pub fn null() -> Self[src]

Constructs a null instance of this handle type.

pub fn from_raw(value: Self::Repr) -> Self[src]

Constructs an instance of this handle type with the supplied underlying value.

pub fn as_raw(self) -> Self::Repr[src]

Gets the underlying value for this handle.

pub fn is_null(self) -> bool[src]

Returns whether this handle is a null handle.

Loading content...

Implementors

impl Handle for AccelerationStructureKHR[src]

impl Handle for AccelerationStructureNV[src]

impl Handle for Buffer[src]

type Repr = u64

impl Handle for BufferView[src]

type Repr = u64

impl Handle for CommandBuffer[src]

type Repr = usize

impl Handle for CommandPool[src]

type Repr = u64

impl Handle for DebugReportCallbackEXT[src]

impl Handle for DebugUtilsMessengerEXT[src]

impl Handle for DeferredOperationKHR[src]

impl Handle for DescriptorPool[src]

type Repr = u64

impl Handle for DescriptorSet[src]

type Repr = u64

impl Handle for DescriptorSetLayout[src]

impl Handle for DescriptorUpdateTemplate[src]

impl Handle for Device[src]

type Repr = usize

impl Handle for DeviceMemory[src]

type Repr = u64

impl Handle for DisplayKHR[src]

type Repr = u64

impl Handle for DisplayModeKHR[src]

type Repr = u64

impl Handle for Event[src]

type Repr = u64

impl Handle for Fence[src]

type Repr = u64

impl Handle for Framebuffer[src]

type Repr = u64

impl Handle for Image[src]

type Repr = u64

impl Handle for ImageView[src]

type Repr = u64

impl Handle for IndirectCommandsLayoutNV[src]

impl Handle for Instance[src]

type Repr = usize

impl Handle for PerformanceConfigurationINTEL[src]

impl Handle for PhysicalDevice[src]

type Repr = usize

impl Handle for Pipeline[src]

type Repr = u64

impl Handle for PipelineCache[src]

type Repr = u64

impl Handle for PipelineLayout[src]

type Repr = u64

impl Handle for PrivateDataSlotEXT[src]

impl Handle for QueryPool[src]

type Repr = u64

impl Handle for Queue[src]

type Repr = usize

impl Handle for RenderPass[src]

type Repr = u64

impl Handle for Sampler[src]

type Repr = u64

impl Handle for SamplerYcbcrConversion[src]

impl Handle for Semaphore[src]

type Repr = u64

impl Handle for ShaderModule[src]

type Repr = u64

impl Handle for SurfaceKHR[src]

type Repr = u64

impl Handle for SwapchainKHR[src]

type Repr = u64

impl Handle for ValidationCacheEXT[src]

Loading content...