pub enum Attachment {
Color {
index: u32,
load: LoadOp,
store: StoreOp,
clear: ClearValue,
},
Depth {
load: LoadOp,
store: StoreOp,
clear: ClearValue,
write: bool,
},
}Expand description
How a pass attaches an image, if it attaches it at all.
Variants§
Color
A colour attachment at index in shader output order.
Fields
§
clear: ClearValueUsed when load is LoadOp::Clear.
Depth
The depth/stencil attachment.
Fields
§
clear: ClearValueUsed when load is LoadOp::Clear. Defaults to the reversed-Z far
plane; see crcbl_hal::depth.
§
write: boolWhether the pass writes depth. false is a pass drawing against an
existing prepass, and is the difference between
ResourceState::DepthStencilWrite and
ResourceState::DepthStencilRead.
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Attachment
Source§impl Debug for Attachment
impl Debug for Attachment
Source§impl PartialEq for Attachment
impl PartialEq for Attachment
impl StructuralPartialEq for Attachment
Auto Trait Implementations§
impl Forget for Attachment
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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