pub struct SwapchainImage<Swapchain>(/* private fields */);Expand description
Opaque handle to a image object, backed by Swapchain.
Implementations§
Source§impl<Swapchain: Clone> SwapchainImage<&Swapchain>
impl<Swapchain: Clone> SwapchainImage<&Swapchain>
Sourcepub fn clone_parent(self) -> SwapchainImage<Swapchain>
pub fn clone_parent(self) -> SwapchainImage<Swapchain>
Clones parent reference
Source§impl<Swapchain> SwapchainImage<Swapchain>
impl<Swapchain> SwapchainImage<Swapchain>
Sourcepub const fn unmanage(self) -> (VkImage, Swapchain, VkExtent3D)
pub const fn unmanage(self) -> (VkImage, Swapchain, VkExtent3D)
Purges the construct
Trait Implementations§
Source§impl<Swapchain: DeviceChild> DeviceChild for SwapchainImage<Swapchain>
impl<Swapchain: DeviceChild> DeviceChild for SwapchainImage<Swapchain>
Source§type ConcreteDevice = <Swapchain as DeviceChild>::ConcreteDevice
type ConcreteDevice = <Swapchain as DeviceChild>::ConcreteDevice
A concrete type of the parent device object.
Source§fn device(&self) -> &Self::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Retrieve a reference to a device object that creates this object
Source§impl<Swapchain: DeviceChildHandle> DeviceChildHandle for SwapchainImage<Swapchain>
impl<Swapchain: DeviceChildHandle> DeviceChildHandle for SwapchainImage<Swapchain>
Source§fn device_handle(&self) -> VkDevice
fn device_handle(&self) -> VkDevice
Retrieve a reference to a device handle that creates this objecs
Source§impl<Swapchain: Swapchain> Image for SwapchainImage<Swapchain>
impl<Swapchain: Swapchain> Image for SwapchainImage<Swapchain>
Source§fn size(&self) -> &VkExtent3D
fn size(&self) -> &VkExtent3D
The size of an image
fn dimension(&self) -> VkImageViewType
Source§fn sparse_requirement_count(&self) -> u32
fn sparse_requirement_count(&self) -> u32
Query a count of the memory requirements for a sparse image
Source§fn sparse_requirements(
&self,
sink: &mut [MaybeUninit<VkSparseImageMemoryRequirements>],
) -> u32
fn sparse_requirements( &self, sink: &mut [MaybeUninit<VkSparseImageMemoryRequirements>], ) -> u32
Query the memory requirements for a sparse image
Source§fn sparse_requirements_alloc(&self) -> Vec<VkSparseImageMemoryRequirements>
fn sparse_requirements_alloc(&self) -> Vec<VkSparseImageMemoryRequirements>
Query the memory requirements for a sparse image
Source§fn layout_info(&self, subresource: &ImageSubresource) -> VkSubresourceLayout
fn layout_info(&self, subresource: &ImageSubresource) -> VkSubresourceLayout
Retrieve information about an image subresource
fn memory_barrier( &self, subresource_range: ImageSubresourceRange, trans: LayoutTransition, ) -> ImageMemoryBarrier
fn memory_barrier2<'r>( &'r self, subresource_range: ImageSubresourceRange, ) -> ImageMemoryBarrier2<'r>
Source§impl<Swapchain> VkHandle for SwapchainImage<Swapchain>
impl<Swapchain> VkHandle for SwapchainImage<Swapchain>
type Handle = VkImage
Source§fn native_ptr(&self) -> Self::Handle
fn native_ptr(&self) -> Self::Handle
Retrieve an underlying handle
fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>
Source§impl<Swapchain> VkHandleMut for SwapchainImage<Swapchain>
impl<Swapchain> VkHandleMut for SwapchainImage<Swapchain>
Source§fn native_ptr_mut(&mut self) -> Self::Handle
fn native_ptr_mut(&mut self) -> Self::Handle
Retrieve an underlying mutable handle
fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>
Source§impl<Swapchain> VkObject for SwapchainImage<Swapchain>
impl<Swapchain> VkObject for SwapchainImage<Swapchain>
const TYPE: VkObjectType = 10i32
impl<Swapchain: Send> Send for SwapchainImage<Swapchain>
impl<Swapchain: Sync> Sync for SwapchainImage<Swapchain>
Auto Trait Implementations§
impl<Swapchain> Freeze for SwapchainImage<Swapchain>where
Swapchain: Freeze,
impl<Swapchain> RefUnwindSafe for SwapchainImage<Swapchain>where
Swapchain: RefUnwindSafe,
impl<Swapchain> Unpin for SwapchainImage<Swapchain>where
Swapchain: Unpin,
impl<Swapchain> UnwindSafe for SwapchainImage<Swapchain>where
Swapchain: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more