Trait ash::vk::Handle

source ·
pub trait Handle: Sized {
    const TYPE: ObjectType;

    // Required methods
    fn as_raw(self) -> u64;
    fn from_raw(_: u64) -> Self;

    // Provided method
    fn is_null(self) -> bool { ... }
}

Required Associated Constants§

Required Methods§

source

fn as_raw(self) -> u64

source

fn from_raw(_: u64) -> Self

Provided Methods§

source

fn is_null(self) -> bool

Returns whether the handle is a NULL value.

§Example
let instance = Instance::null();
assert!(instance.is_null());

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Handle for AccelerationStructureKHR

source§

const TYPE: ObjectType = ObjectType::ACCELERATION_STRUCTURE_KHR

source§

impl Handle for AccelerationStructureNV

source§

const TYPE: ObjectType = ObjectType::ACCELERATION_STRUCTURE_NV

source§

impl Handle for Buffer

source§

const TYPE: ObjectType = ObjectType::BUFFER

source§

impl Handle for BufferCollectionFUCHSIA

source§

const TYPE: ObjectType = ObjectType::BUFFER_COLLECTION_FUCHSIA

source§

impl Handle for BufferView

source§

const TYPE: ObjectType = ObjectType::BUFFER_VIEW

source§

impl Handle for CommandBuffer

source§

const TYPE: ObjectType = ObjectType::COMMAND_BUFFER

source§

impl Handle for CommandPool

source§

const TYPE: ObjectType = ObjectType::COMMAND_POOL

source§

impl Handle for CuFunctionNVX

source§

const TYPE: ObjectType = ObjectType::CU_FUNCTION_NVX

source§

impl Handle for CuModuleNVX

source§

const TYPE: ObjectType = ObjectType::CU_MODULE_NVX

source§

impl Handle for CudaFunctionNV

source§

const TYPE: ObjectType = ObjectType::CUDA_FUNCTION_NV

source§

impl Handle for CudaModuleNV

source§

const TYPE: ObjectType = ObjectType::CUDA_MODULE_NV

source§

impl Handle for DebugReportCallbackEXT

source§

const TYPE: ObjectType = ObjectType::DEBUG_REPORT_CALLBACK_EXT

source§

impl Handle for DebugUtilsMessengerEXT

source§

const TYPE: ObjectType = ObjectType::DEBUG_UTILS_MESSENGER_EXT

source§

impl Handle for DeferredOperationKHR

source§

const TYPE: ObjectType = ObjectType::DEFERRED_OPERATION_KHR

source§

impl Handle for DescriptorPool

source§

const TYPE: ObjectType = ObjectType::DESCRIPTOR_POOL

source§

impl Handle for DescriptorSet

source§

const TYPE: ObjectType = ObjectType::DESCRIPTOR_SET

source§

impl Handle for DescriptorSetLayout

source§

const TYPE: ObjectType = ObjectType::DESCRIPTOR_SET_LAYOUT

source§

impl Handle for DescriptorUpdateTemplate

source§

const TYPE: ObjectType = ObjectType::DESCRIPTOR_UPDATE_TEMPLATE

source§

impl Handle for Device

source§

const TYPE: ObjectType = ObjectType::DEVICE

source§

impl Handle for DeviceMemory

source§

const TYPE: ObjectType = ObjectType::DEVICE_MEMORY

source§

impl Handle for DisplayKHR

source§

const TYPE: ObjectType = ObjectType::DISPLAY_KHR

source§

impl Handle for DisplayModeKHR

source§

const TYPE: ObjectType = ObjectType::DISPLAY_MODE_KHR

source§

impl Handle for Event

source§

const TYPE: ObjectType = ObjectType::EVENT

source§

impl Handle for Fence

source§

const TYPE: ObjectType = ObjectType::FENCE

source§

impl Handle for Framebuffer

source§

const TYPE: ObjectType = ObjectType::FRAMEBUFFER

source§

impl Handle for Image

source§

const TYPE: ObjectType = ObjectType::IMAGE

source§

impl Handle for ImageView

source§

const TYPE: ObjectType = ObjectType::IMAGE_VIEW

source§

impl Handle for IndirectCommandsLayoutNV

source§

const TYPE: ObjectType = ObjectType::INDIRECT_COMMANDS_LAYOUT_NV

source§

impl Handle for Instance

source§

const TYPE: ObjectType = ObjectType::INSTANCE

source§

impl Handle for MicromapEXT

source§

const TYPE: ObjectType = ObjectType::MICROMAP_EXT

source§

impl Handle for OpticalFlowSessionNV

source§

const TYPE: ObjectType = ObjectType::OPTICAL_FLOW_SESSION_NV

source§

impl Handle for PerformanceConfigurationINTEL

source§

const TYPE: ObjectType = ObjectType::PERFORMANCE_CONFIGURATION_INTEL

source§

impl Handle for PhysicalDevice

source§

const TYPE: ObjectType = ObjectType::PHYSICAL_DEVICE

source§

impl Handle for Pipeline

source§

const TYPE: ObjectType = ObjectType::PIPELINE

source§

impl Handle for PipelineCache

source§

const TYPE: ObjectType = ObjectType::PIPELINE_CACHE

source§

impl Handle for PipelineLayout

source§

const TYPE: ObjectType = ObjectType::PIPELINE_LAYOUT

source§

impl Handle for PrivateDataSlot

source§

const TYPE: ObjectType = ObjectType::PRIVATE_DATA_SLOT

source§

impl Handle for QueryPool

source§

const TYPE: ObjectType = ObjectType::QUERY_POOL

source§

impl Handle for Queue

source§

const TYPE: ObjectType = ObjectType::QUEUE

source§

impl Handle for RenderPass

source§

const TYPE: ObjectType = ObjectType::RENDER_PASS

source§

impl Handle for Sampler

source§

const TYPE: ObjectType = ObjectType::SAMPLER

source§

impl Handle for SamplerYcbcrConversion

source§

const TYPE: ObjectType = ObjectType::SAMPLER_YCBCR_CONVERSION

source§

impl Handle for Semaphore

source§

const TYPE: ObjectType = ObjectType::SEMAPHORE

source§

impl Handle for ShaderEXT

source§

const TYPE: ObjectType = ObjectType::SHADER_EXT

source§

impl Handle for ShaderModule

source§

const TYPE: ObjectType = ObjectType::SHADER_MODULE

source§

impl Handle for SurfaceKHR

source§

const TYPE: ObjectType = ObjectType::SURFACE_KHR

source§

impl Handle for SwapchainKHR

source§

const TYPE: ObjectType = ObjectType::SWAPCHAIN_KHR

source§

impl Handle for ValidationCacheEXT

source§

const TYPE: ObjectType = ObjectType::VALIDATION_CACHE_EXT

source§

impl Handle for VideoSessionKHR

source§

const TYPE: ObjectType = ObjectType::VIDEO_SESSION_KHR

source§

impl Handle for VideoSessionParametersKHR

source§

const TYPE: ObjectType = ObjectType::VIDEO_SESSION_PARAMETERS_KHR