pub struct ColorAttachment<'a> {
pub view: &'a TextureView,
pub load: Load,
pub clear: [f32; 4],
pub store: bool,
pub before: Layout,
pub after: Layout,
}Expand description
a colour attachment of a render pass: the view goes from before to ColorTarget at the
start and to after at the end
Fields§
§view: &'a TextureView§load: Load§clear: [f32; 4]§store: bool§before: Layout§after: LayoutTrait Implementations§
Source§impl<'a> Clone for ColorAttachment<'a>
impl<'a> Clone for ColorAttachment<'a>
impl<'a> Copy for ColorAttachment<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ColorAttachment<'a>
impl<'a> !Send for ColorAttachment<'a>
impl<'a> !Sync for ColorAttachment<'a>
impl<'a> !UnwindSafe for ColorAttachment<'a>
impl<'a> Forget for ColorAttachment<'a>
impl<'a> Freeze for ColorAttachment<'a>
impl<'a> Unpin for ColorAttachment<'a>
impl<'a> UnsafeUnpin for ColorAttachment<'a>
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