pub trait TypedVulkanSinkStructure: VulkanSinkStructure {
const TYPE: i32;
// Provided methods
fn uninit_sink() -> MaybeUninit<Self>
where Self: Sized { ... }
fn try_from_generic(g: &GenericVulkanSinkStructure) -> Option<&Self>
where Self: Sized { ... }
}Expand description
Trait for Vulkan structures that have a known [crate::vk::VkStructureType] at compile time.
Required Associated Constants§
Provided Methods§
Sourcefn uninit_sink() -> MaybeUninit<Self>where
Self: Sized,
fn uninit_sink() -> MaybeUninit<Self>where
Self: Sized,
Constructs an uninitialized cell for this structure, that is ready to pass the api
Sourcefn try_from_generic(g: &GenericVulkanSinkStructure) -> Option<&Self>where
Self: Sized,
fn try_from_generic(g: &GenericVulkanSinkStructure) -> Option<&Self>where
Self: Sized,
Cast structure ref only if sType matches
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.
Implementations on Foreign Types§
Source§impl<T> TypedVulkanSinkStructure for &mut Twhere
T: TypedVulkanSinkStructure,
impl<T> TypedVulkanSinkStructure for &mut Twhere
T: TypedVulkanSinkStructure,
Source§impl<T> TypedVulkanSinkStructure for Box<T>where
T: TypedVulkanSinkStructure,
impl<T> TypedVulkanSinkStructure for Box<T>where
T: TypedVulkanSinkStructure,
Implementors§
Source§impl TypedVulkanSinkStructure for VkFormatProperties2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanSinkStructure for VkFormatProperties2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanSinkStructure for VkImageFormatProperties2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanSinkStructure for VkImageFormatProperties2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanSinkStructure for VkMemoryDedicatedRequirementsKHR
Available on crate feature VK_KHR_dedicated_allocation only.
impl TypedVulkanSinkStructure for VkMemoryDedicatedRequirementsKHR
Available on crate feature
VK_KHR_dedicated_allocation only.Source§impl TypedVulkanSinkStructure for VkMemoryRequirements2KHR
Available on crate feature VK_KHR_get_memory_requirements2 only.
impl TypedVulkanSinkStructure for VkMemoryRequirements2KHR
Available on crate feature
VK_KHR_get_memory_requirements2 only.Source§impl TypedVulkanSinkStructure for VkPhysicalDeviceFeatures2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanSinkStructure for VkPhysicalDeviceFeatures2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanSinkStructure for VkPhysicalDeviceMemoryProperties2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanSinkStructure for VkPhysicalDeviceMemoryProperties2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanSinkStructure for VkPhysicalDeviceProperties2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanSinkStructure for VkPhysicalDeviceProperties2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanSinkStructure for VkPhysicalDeviceSynchronization2FeaturesKHR
Available on crate feature VK_KHR_synchronization2 only.
impl TypedVulkanSinkStructure for VkPhysicalDeviceSynchronization2FeaturesKHR
Available on crate feature
VK_KHR_synchronization2 only.Source§impl TypedVulkanSinkStructure for VkQueueFamilyProperties2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanSinkStructure for VkQueueFamilyProperties2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanSinkStructure for VkSparseImageFormatProperties2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanSinkStructure for VkSparseImageFormatProperties2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanSinkStructure for VkSparseImageMemoryRequirements2KHR
Available on crate feature VK_KHR_get_memory_requirements2 only.
impl TypedVulkanSinkStructure for VkSparseImageMemoryRequirements2KHR
Available on crate feature
VK_KHR_get_memory_requirements2 only.