pub struct ImageAccess { /* private fields */ }
Implementations§
Source§impl ImageAccess
impl ImageAccess
Sourcepub const NONE: Self
pub const NONE: Self
An ImageAccess
that signifies the lack thereof, for instance because the resource was
never accessed.
Sourcepub const fn new(
access_types: AccessTypes,
layout_type: ImageLayoutType,
queue_family_index: u32,
) -> Self
pub const fn new( access_types: AccessTypes, layout_type: ImageLayoutType, queue_family_index: u32, ) -> Self
Creates a new ImageAccess
.
§Panics
- Panics if
access_types
contains any access type that’s not valid for images.
Sourcepub const fn stage_mask(&self) -> PipelineStages
pub const fn stage_mask(&self) -> PipelineStages
Returns the stage mask of this access.
Sourcepub const fn access_mask(&self) -> AccessFlags
pub const fn access_mask(&self) -> AccessFlags
Returns the access mask of this access.
Sourcepub const fn image_layout(&self) -> ImageLayout
pub const fn image_layout(&self) -> ImageLayout
Returns the image layout of this access.
Sourcepub const fn queue_family_index(&self) -> u32
pub const fn queue_family_index(&self) -> u32
Returns the queue family index of this access.
Trait Implementations§
Source§impl Clone for ImageAccess
impl Clone for ImageAccess
Source§fn clone(&self) -> ImageAccess
fn clone(&self) -> ImageAccess
Returns a duplicate 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 Debug for ImageAccess
impl Debug for ImageAccess
Source§impl Hash for ImageAccess
impl Hash for ImageAccess
Source§impl PartialEq for ImageAccess
impl PartialEq for ImageAccess
impl Copy for ImageAccess
impl Eq for ImageAccess
impl StructuralPartialEq for ImageAccess
Auto Trait Implementations§
impl Freeze for ImageAccess
impl RefUnwindSafe for ImageAccess
impl Send for ImageAccess
impl Sync for ImageAccess
impl Unpin for ImageAccess
impl UnwindSafe for ImageAccess
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