pub struct ImageState {
pub queue: QueueId,
pub stage: PipelineStage,
pub access: Access,
pub layout: Layout,
}
Expand description
State of the image on device.
Fields§
§queue: QueueId
Queue that uses the image.
stage: PipelineStage
Stages when image get used.
access: Access
Access performed by device.
layout: Layout
Layout in which image is accessed.
Implementations§
Source§impl ImageState
impl ImageState
Sourcepub fn with_stage(self, stage: PipelineStage) -> Self
pub fn with_stage(self, stage: PipelineStage) -> Self
Set specific stage.
Sourcepub fn with_access(self, access: Access) -> Self
pub fn with_access(self, access: Access) -> Self
Set specific access.
Trait Implementations§
Source§impl Clone for ImageState
impl Clone for ImageState
Source§fn clone(&self) -> ImageState
fn clone(&self) -> ImageState
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 Debug for ImageState
impl Debug for ImageState
Source§impl From<ImageState> for ImageStateOrLayout
impl From<ImageState> for ImageStateOrLayout
Source§fn from(state: ImageState) -> Self
fn from(state: ImageState) -> Self
Converts to this type from the input type.
impl Copy for ImageState
Auto Trait Implementations§
impl Freeze for ImageState
impl RefUnwindSafe for ImageState
impl Send for ImageState
impl Sync for ImageState
impl Unpin for ImageState
impl UnwindSafe for ImageState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)