Struct SwapchainImage

Source
pub struct SwapchainImage<Swapchain>(/* private fields */);
Expand description

Opaque handle to a image object, backed by Swapchain.

Implementations§

Source§

impl<Swapchain: Clone> SwapchainImage<&Swapchain>

Source

pub fn clone_parent(self) -> SwapchainImage<Swapchain>

Clones parent reference

Source§

impl<Swapchain> SwapchainImage<Swapchain>

Source

pub const fn unmanage(self) -> (VkImage, Swapchain, VkExtent3D)

Purges the construct

Trait Implementations§

Source§

impl<Swapchain: DeviceChild> DeviceChild for SwapchainImage<Swapchain>

Source§

type ConcreteDevice = <Swapchain as DeviceChild>::ConcreteDevice

A concrete type of the parent device object.
Source§

fn device(&self) -> &Self::ConcreteDevice

Retrieve a reference to a device object that creates this object
Source§

impl<Swapchain: DeviceChildHandle> DeviceChildHandle for SwapchainImage<Swapchain>

Source§

fn device_handle(&self) -> VkDevice

Retrieve a reference to a device handle that creates this objecs
Source§

impl<Swapchain: Swapchain> Image for SwapchainImage<Swapchain>

Source§

fn format(&self) -> VkFormat

The pixel format of an image
Source§

fn size(&self) -> &VkExtent3D

The size of an image
Source§

fn dimension(&self) -> VkImageViewType

Source§

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

Query the memory requirements for a sparse image
Source§

fn sparse_requirements_alloc(&self) -> Vec<VkSparseImageMemoryRequirements>

Query the memory requirements for a sparse image
Source§

fn layout_info(&self, subresource: &ImageSubresource) -> VkSubresourceLayout

Retrieve information about an image subresource
Source§

fn memory_barrier( &self, subresource_range: ImageSubresourceRange, trans: LayoutTransition, ) -> ImageMemoryBarrier

Source§

fn memory_barrier2<'r>( &'r self, subresource_range: ImageSubresourceRange, ) -> ImageMemoryBarrier2<'r>

Source§

impl<Swapchain> VkHandle for SwapchainImage<Swapchain>

Source§

type Handle = VkImage

Source§

fn native_ptr(&self) -> Self::Handle

Retrieve an underlying handle
Source§

fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>

Source§

impl<Swapchain> VkHandleMut for SwapchainImage<Swapchain>

Source§

fn native_ptr_mut(&mut self) -> Self::Handle

Retrieve an underlying mutable handle
Source§

fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>

Source§

impl<Swapchain> VkObject for SwapchainImage<Swapchain>

Source§

const TYPE: VkObjectType = 10i32

Source§

impl<Swapchain: Send> Send for SwapchainImage<Swapchain>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> VkHandleExt for T
where T: VkHandle,

Source§

fn eq_handle(&self, other: &Self) -> bool
where Self::Handle: VkRawHandle,

Checks the equality between vulkan objects by their handle value.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeviceChildImage for T
where T: Image + DeviceChild,