Skip to main content

Handle

Trait Handle 

Source
pub trait Handle:
    Copy
    + Eq
    + Hash {
    type Repr;

    // Required methods
    fn null() -> Self;
    fn from_raw(raw: Self::Repr) -> Self;
    fn as_raw(self) -> Self::Repr;
    fn is_null(self) -> bool;
}
Expand description

Trait implemented by all Vulkan handle types.

Required Associated Types§

Source

type Repr

The raw representation type (usize for dispatchable, u64 for non-dispatchable).

Required Methods§

Source

fn null() -> Self

Returns the null handle.

Source

fn from_raw(raw: Self::Repr) -> Self

Constructs a handle from its raw representation.

Source

fn as_raw(self) -> Self::Repr

Returns the raw representation.

Source

fn is_null(self) -> bool

Returns true if this is the null handle.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Handle for AccelerationStructureKHR

Source§

impl Handle for AccelerationStructureNV

Source§

impl Handle for Buffer

Source§

impl Handle for BufferCollectionFUCHSIA

Source§

impl Handle for BufferView

Source§

impl Handle for CommandBuffer

Source§

impl Handle for CommandPool

Source§

impl Handle for CuFunctionNVX

Source§

impl Handle for CuModuleNVX

Source§

impl Handle for CudaFunctionNV

Source§

impl Handle for CudaModuleNV

Source§

impl Handle for DataGraphPipelineSessionARM

Source§

impl Handle for DebugReportCallbackEXT

Source§

impl Handle for DebugUtilsMessengerEXT

Source§

impl Handle for DeferredOperationKHR

Source§

impl Handle for DescriptorPool

Source§

impl Handle for DescriptorSet

Source§

impl Handle for DescriptorSetLayout

Source§

impl Handle for DescriptorUpdateTemplate

Source§

impl Handle for Device

Source§

impl Handle for DeviceMemory

Source§

impl Handle for DisplayKHR

Source§

impl Handle for DisplayModeKHR

Source§

impl Handle for Event

Source§

impl Handle for ExternalComputeQueueNV

Source§

impl Handle for Fence

Source§

impl Handle for Framebuffer

Source§

impl Handle for Image

Source§

impl Handle for ImageView

Source§

impl Handle for IndirectCommandsLayoutEXT

Source§

impl Handle for IndirectCommandsLayoutNV

Source§

impl Handle for IndirectExecutionSetEXT

Source§

impl Handle for Instance

Source§

impl Handle for MicromapEXT

Source§

impl Handle for OpticalFlowSessionNV

Source§

impl Handle for PerformanceConfigurationINTEL

Source§

impl Handle for PhysicalDevice

Source§

impl Handle for Pipeline

Source§

impl Handle for PipelineBinaryKHR

Source§

impl Handle for PipelineCache

Source§

impl Handle for PipelineLayout

Source§

impl Handle for PrivateDataSlot

Source§

impl Handle for QueryPool

Source§

impl Handle for Queue

Source§

impl Handle for RenderPass

Source§

impl Handle for Sampler

Source§

impl Handle for SamplerYcbcrConversion

Source§

impl Handle for Semaphore

Source§

impl Handle for SemaphoreSciSyncPoolNV

Source§

impl Handle for ShaderEXT

Source§

impl Handle for ShaderInstrumentationARM

Source§

impl Handle for ShaderModule

Source§

impl Handle for SurfaceKHR

Source§

impl Handle for SwapchainKHR

Source§

impl Handle for TensorARM

Source§

impl Handle for TensorViewARM

Source§

impl Handle for ValidationCacheEXT

Source§

impl Handle for VideoSessionKHR

Source§

impl Handle for VideoSessionParametersKHR