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
sourceimpl<I: Clone> Clone for ImageAccessFromUndefinedLayout<I>
impl<I: Clone> Clone for ImageAccessFromUndefinedLayout<I>
sourcefn clone(&self) -> ImageAccessFromUndefinedLayout<I>
fn clone(&self) -> ImageAccessFromUndefinedLayout<I>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<I: Debug> Debug for ImageAccessFromUndefinedLayout<I>
impl<I: Debug> Debug for ImageAccessFromUndefinedLayout<I>
sourceimpl<I> ImageAccess for ImageAccessFromUndefinedLayout<I>where
I: ImageAccess,
impl<I> ImageAccess for ImageAccessFromUndefinedLayout<I>where
I: ImageAccess,
sourcefn inner(&self) -> ImageInner<'_>
fn inner(&self) -> ImageInner<'_>
Returns the inner unsafe image object used by this image.
sourcefn 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
sourcefn 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
sourcefn conflicts_buffer(&self, other: &dyn BufferAccess) -> bool
fn conflicts_buffer(&self, other: &dyn BufferAccess) -> bool
Returns true if an access to
self
potentially overlaps the same memory as an
access to other
. Read moresourcefn conflicts_image(&self, other: &dyn ImageAccess) -> bool
fn conflicts_image(&self, other: &dyn ImageAccess) -> bool
Returns true if an access to
self
potentially overlaps the same memory as an
access to other
. Read moresourcefn conflict_key(&self) -> u64
fn conflict_key(&self) -> u64
Returns a key that uniquely identifies the memory content of the image.
Two ranges that potentially overlap in memory must return the same key. Read more
sourcefn try_gpu_lock(
&self,
exclusive_access: bool,
expected_layout: ImageLayout
) -> Result<(), AccessError>
fn try_gpu_lock(
&self,
exclusive_access: bool,
expected_layout: ImageLayout
) -> Result<(), AccessError>
Locks the resource for usage on the GPU. Returns an error if the lock can’t be acquired. Read more
sourceunsafe fn increase_gpu_lock(&self)
unsafe fn increase_gpu_lock(&self)
Locks the resource for usage on the GPU. Supposes that the resource is already locked, and
simply increases the lock by one. Read more
sourceunsafe fn unlock(&self, new_layout: Option<ImageLayout>)
unsafe fn unlock(&self, new_layout: Option<ImageLayout>)
sourcefn has_depth(&self) -> bool
fn has_depth(&self) -> bool
Returns true if the image has a depth component. In other words, if it is a depth or a
depth-stencil format. Read more
sourcefn has_stencil(&self) -> bool
fn has_stencil(&self) -> bool
Returns true if the image has a stencil component. In other words, if it is a stencil or a
depth-stencil format. Read more
sourcefn mipmap_levels(&self) -> u32
fn mipmap_levels(&self) -> u32
Returns the number of mipmap levels of this image.
sourcefn dimensions(&self) -> ImageDimensions
fn dimensions(&self) -> ImageDimensions
Returns the dimensions of the image.
sourcefn supports_blit_source(&self) -> bool
fn supports_blit_source(&self) -> bool
Returns true if the image can be used as a source for blits.
sourcefn supports_blit_destination(&self) -> bool
fn supports_blit_destination(&self) -> bool
Returns true if the image can be used as a destination for blits.
sourceunsafe fn forced_undefined_initial_layout(
self,
preinitialized: bool
) -> ImageAccessFromUndefinedLayout<Self>where
Self: Sized,
unsafe fn forced_undefined_initial_layout(
self,
preinitialized: bool
) -> ImageAccessFromUndefinedLayout<Self>where
Self: Sized,
Wraps around this
ImageAccess
and returns an identical ImageAccess
but whose initial
layout requirement is either Undefined
or Preinitialized
. Read moreimpl<I: Copy> Copy for ImageAccessFromUndefinedLayout<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for ImageAccessFromUndefinedLayout<I>where
I: RefUnwindSafe,
impl<I> Send for ImageAccessFromUndefinedLayout<I>where
I: Send,
impl<I> Sync for ImageAccessFromUndefinedLayout<I>where
I: Sync,
impl<I> Unpin for ImageAccessFromUndefinedLayout<I>where
I: Unpin,
impl<I> UnwindSafe for ImageAccessFromUndefinedLayout<I>where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.