Struct vulkano::image::immutable::ImmutableImageInitialization
source · pub struct ImmutableImageInitialization<F, A = PotentialDedicatedAllocation<StdMemoryPoolAlloc>> { /* private fields */ }
Trait Implementations
sourceimpl<F, A> ImageAccess for ImmutableImageInitialization<F, A>where
F: 'static + Send + Sync,
impl<F, A> ImageAccess for ImmutableImageInitialization<F, A>where
F: 'static + Send + Sync,
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,
_: bool,
expected_layout: ImageLayout
) -> Result<(), AccessError>
fn try_gpu_lock(
&self,
_: 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 moreAuto Trait Implementations
impl<F, A> RefUnwindSafe for ImmutableImageInitialization<F, A>where
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, A> Send for ImmutableImageInitialization<F, A>where
A: Send + Sync,
F: Send + Sync,
impl<F, A> Sync for ImmutableImageInitialization<F, A>where
A: Send + Sync,
F: Send + Sync,
impl<F, A> Unpin for ImmutableImageInitialization<F, A>
impl<F, A> UnwindSafe for ImmutableImageInitialization<F, A>where
A: RefUnwindSafe,
F: RefUnwindSafe,
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.