Struct vulkano::image::traits::ImageAccessFromUndefinedLayout
source · pub struct ImageAccessFromUndefinedLayout<I> { /* private fields */ }
Expand description
Wraps around an object that implements ImageAccess
and modifies the initial layout
requirement to be either Undefined
or Preinitialized
.
Trait Implementations§
source§impl<I: Clone> Clone for ImageAccessFromUndefinedLayout<I>
impl<I: Clone> Clone for ImageAccessFromUndefinedLayout<I>
source§fn clone(&self) -> ImageAccessFromUndefinedLayout<I>
fn clone(&self) -> ImageAccessFromUndefinedLayout<I>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<I: Debug> Debug for ImageAccessFromUndefinedLayout<I>
impl<I: Debug> Debug for ImageAccessFromUndefinedLayout<I>
source§impl<I> DeviceOwned for ImageAccessFromUndefinedLayout<I>where
I: ImageAccess,
impl<I> DeviceOwned for ImageAccessFromUndefinedLayout<I>where I: ImageAccess,
source§impl<I> Hash for ImageAccessFromUndefinedLayout<I>where
I: ImageAccess,
impl<I> Hash for ImageAccessFromUndefinedLayout<I>where I: ImageAccess,
source§impl<I> ImageAccess for ImageAccessFromUndefinedLayout<I>where
I: ImageAccess,
impl<I> ImageAccess for ImageAccessFromUndefinedLayout<I>where I: ImageAccess,
source§fn inner(&self) -> ImageInner<'_>
fn inner(&self) -> ImageInner<'_>
Returns the inner unsafe image object used by this image.
source§fn initial_layout_requirement(&self) -> ImageLayout
fn initial_layout_requirement(&self) -> ImageLayout
Returns the layout that the image has when it is first used in a primary command buffer. Read more
source§fn final_layout_requirement(&self) -> ImageLayout
fn final_layout_requirement(&self) -> ImageLayout
Returns the layout that the image must be returned to before the end of the command buffer. Read more
source§fn descriptor_layouts(&self) -> Option<ImageDescriptorLayouts>
fn descriptor_layouts(&self) -> Option<ImageDescriptorLayouts>
Returns an
ImageDescriptorLayouts
structure specifying the image layout to use
in descriptors of various kinds. Read moresource§fn dimensions(&self) -> ImageDimensions
fn dimensions(&self) -> ImageDimensions
Returns the dimensions of the image.
source§fn format_features(&self) -> FormatFeatures
fn format_features(&self) -> FormatFeatures
Returns the features supported by the image’s format.
source§fn mip_levels(&self) -> u32
fn mip_levels(&self) -> u32
Returns the number of mipmap levels of this image.
source§fn samples(&self) -> SampleCount
fn samples(&self) -> SampleCount
Returns the number of samples of this image.
source§fn usage(&self) -> ImageUsage
fn usage(&self) -> ImageUsage
Returns the usage the image was created with.
source§fn stencil_usage(&self) -> ImageUsage
fn stencil_usage(&self) -> ImageUsage
Returns the stencil usage the image was created with.
source§fn subresource_layers(&self) -> ImageSubresourceLayers
fn subresource_layers(&self) -> ImageSubresourceLayers
Returns an
ImageSubresourceLayers
covering the first mip level of the image. All aspects
of the image are selected, or plane0
if the image is multi-planar.source§fn subresource_range(&self) -> ImageSubresourceRange
fn subresource_range(&self) -> ImageSubresourceRange
Returns an
ImageSubresourceRange
covering the whole image. If the image is multi-planar,
only the color
aspect is selected.source§unsafe fn layout_initialized(&self)
unsafe fn layout_initialized(&self)
When images are created their memory layout is initially
Undefined
or Preinitialized
.
This method allows the image memory barrier creation process to signal when an image
has been transitioned out of its initial Undefined
or Preinitialized
state. This
allows vulkano to avoid creating unnecessary image memory barriers between future
uses of the image. Read morefn is_layout_initialized(&self) -> bool
fn initial_layout(&self) -> ImageLayout
source§unsafe fn forced_undefined_initial_layout(
self,
preinitialized: bool
) -> Arc<ImageAccessFromUndefinedLayout<Self>>where
Self: Sized,
unsafe fn forced_undefined_initial_layout( self, preinitialized: bool ) -> Arc<ImageAccessFromUndefinedLayout<Self>>where Self: Sized,
Wraps around this
ImageAccess
and returns an identical ImageAccess
but whose initial
layout requirement is either Undefined
or Preinitialized
.