pub trait TypedVulkanStructure: VulkanStructure {
const TYPE: i32;
// Provided method
fn try_from_generic(g: &GenericVulkanStructure) -> 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 try_from_generic(g: &GenericVulkanStructure) -> Option<&Self>where
Self: Sized,
fn try_from_generic(g: &GenericVulkanStructure) -> 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<S> TypedVulkanStructure for &mut Swhere
S: TypedVulkanStructure + ?Sized,
impl<S> TypedVulkanStructure for &mut Swhere
S: TypedVulkanStructure + ?Sized,
Source§impl<S> TypedVulkanStructure for Box<S>where
S: TypedVulkanStructure + ?Sized,
impl<S> TypedVulkanStructure for Box<S>where
S: TypedVulkanStructure + ?Sized,
Implementors§
Source§impl TypedVulkanStructure for VkBindBufferMemoryInfoKHR
Available on crate feature VK_KHR_bind_memory2 only.
impl TypedVulkanStructure for VkBindBufferMemoryInfoKHR
Available on crate feature
VK_KHR_bind_memory2 only.Source§impl TypedVulkanStructure for VkBindImageMemoryInfoKHR
Available on crate feature VK_KHR_bind_memory2 only.
impl TypedVulkanStructure for VkBindImageMemoryInfoKHR
Available on crate feature
VK_KHR_bind_memory2 only.Source§impl TypedVulkanStructure for VkBufferMemoryBarrier2KHR
Available on crate feature VK_KHR_synchronization2 only.
impl TypedVulkanStructure for VkBufferMemoryBarrier2KHR
Available on crate feature
VK_KHR_synchronization2 only.Source§impl TypedVulkanStructure for VkBufferMemoryRequirementsInfo2KHR
Available on crate feature VK_KHR_get_memory_requirements2 only.
impl TypedVulkanStructure for VkBufferMemoryRequirementsInfo2KHR
Available on crate feature
VK_KHR_get_memory_requirements2 only.Source§impl TypedVulkanStructure for VkCommandBufferSubmitInfoKHR
Available on crate feature VK_KHR_synchronization2 only.
impl TypedVulkanStructure for VkCommandBufferSubmitInfoKHR
Available on crate feature
VK_KHR_synchronization2 only.Source§impl TypedVulkanStructure for VkDependencyInfoKHR
Available on crate feature VK_KHR_synchronization2 only.
impl TypedVulkanStructure for VkDependencyInfoKHR
Available on crate feature
VK_KHR_synchronization2 only.Source§impl TypedVulkanStructure for VkImageMemoryBarrier2KHR
Available on crate feature VK_KHR_synchronization2 only.
impl TypedVulkanStructure for VkImageMemoryBarrier2KHR
Available on crate feature
VK_KHR_synchronization2 only.Source§impl TypedVulkanStructure for VkImageMemoryRequirementsInfo2KHR
Available on crate feature VK_KHR_get_memory_requirements2 only.
impl TypedVulkanStructure for VkImageMemoryRequirementsInfo2KHR
Available on crate feature
VK_KHR_get_memory_requirements2 only.Source§impl TypedVulkanStructure for VkImageSparseMemoryRequirementsInfo2KHR
Available on crate feature VK_KHR_get_memory_requirements2 only.
impl TypedVulkanStructure for VkImageSparseMemoryRequirementsInfo2KHR
Available on crate feature
VK_KHR_get_memory_requirements2 only.Source§impl TypedVulkanStructure for VkMemoryBarrier2KHR
Available on crate feature VK_KHR_synchronization2 only.
impl TypedVulkanStructure for VkMemoryBarrier2KHR
Available on crate feature
VK_KHR_synchronization2 only.Source§impl TypedVulkanStructure for VkMemoryDedicatedAllocateInfoKHR
Available on crate feature VK_KHR_dedicated_allocation only.
impl TypedVulkanStructure for VkMemoryDedicatedAllocateInfoKHR
Available on crate feature
VK_KHR_dedicated_allocation only.Source§impl TypedVulkanStructure for VkPhysicalDeviceFeatures2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanStructure for VkPhysicalDeviceFeatures2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanStructure for VkPhysicalDeviceImageFormatInfo2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanStructure for VkPhysicalDeviceImageFormatInfo2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanStructure for VkPhysicalDeviceSparseImageFormatInfo2KHR
Available on crate feature VK_KHR_get_physical_device_properties2 only.
impl TypedVulkanStructure for VkPhysicalDeviceSparseImageFormatInfo2KHR
Available on crate feature
VK_KHR_get_physical_device_properties2 only.Source§impl TypedVulkanStructure for VkPhysicalDeviceSynchronization2FeaturesKHR
Available on crate feature VK_KHR_synchronization2 only.
impl TypedVulkanStructure for VkPhysicalDeviceSynchronization2FeaturesKHR
Available on crate feature
VK_KHR_synchronization2 only.Source§impl TypedVulkanStructure for VkPresentInfoKHR
Available on crate feature VK_KHR_swapchain only.
impl TypedVulkanStructure for VkPresentInfoKHR
Available on crate feature
VK_KHR_swapchain only.Source§impl TypedVulkanStructure for VkSemaphoreSubmitInfoKHR
Available on crate feature VK_KHR_synchronization2 only.
impl TypedVulkanStructure for VkSemaphoreSubmitInfoKHR
Available on crate feature
VK_KHR_synchronization2 only.Source§impl TypedVulkanStructure for VkSubmitInfo2KHR
Available on crate feature VK_KHR_synchronization2 only.
impl TypedVulkanStructure for VkSubmitInfo2KHR
Available on crate feature
VK_KHR_synchronization2 only.Source§impl TypedVulkanStructure for VkSubmitInfo
impl TypedVulkanStructure for VkSubmitInfo
Source§impl TypedVulkanStructure for VkSwapchainCreateInfoKHR
Available on crate feature VK_KHR_swapchain only.
impl TypedVulkanStructure for VkSwapchainCreateInfoKHR
Available on crate feature
VK_KHR_swapchain only.