Struct sierra::ImageSubresourceState [−][src]
pub struct ImageSubresourceState { pub subresource: ImageSubresourceRange, pub access: AccessFlags, pub stages: PipelineStageFlags, pub layout: Option<Layout>, pub family: Ownership, }
Expand description
Image region with access mask, specifying how it may be accessed “before”.
Note that “before” is loosely defined, as whatever previous owners do. Which should be translated to “earlier GPU operations” but this crate doesn’t attempt to enforce that.
Fields
subresource: ImageSubresourceRange
access: AccessFlags
stages: PipelineStageFlags
layout: Option<Layout>
family: Ownership
Implementations
pub fn access<'a>(
&'a mut self,
access: AccessFlags,
stages: PipelineStageFlags,
layout: Layout,
queue: QueueId,
encoder: &mut Encoder<'a>
) -> &'a Self
pub fn access<'a>(
&'a mut self,
access: AccessFlags,
stages: PipelineStageFlags,
layout: Layout,
queue: QueueId,
encoder: &mut Encoder<'a>
) -> &'a Self
pub fn overwrite<'a>(
&'a mut self,
access: AccessFlags,
stages: PipelineStageFlags,
layout: Layout,
queue: QueueId,
encoder: &mut Encoder<'a>
) -> &'a ImageSubresourceRange
pub fn overwrite<'a>(
&'a mut self,
access: AccessFlags,
stages: PipelineStageFlags,
layout: Layout,
queue: QueueId,
encoder: &mut Encoder<'a>
) -> &'a ImageSubresourceRange
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for ImageSubresourceState
impl Send for ImageSubresourceState
impl Sync for ImageSubresourceState
impl Unpin for ImageSubresourceState
impl !UnwindSafe for ImageSubresourceState
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more