pub struct ColorAttachment {
pub view: ImageViewHandle,
pub resolve: Option<ImageViewHandle>,
pub load: LoadOp,
pub store: StoreOp,
pub clear: ClearValue,
}Expand description
One colour attachment of a render pass.
Fields§
§view: ImageViewHandleView rendered into. Must already be in
ResourceState::ColorAttachment; the HAL does not transition it.
resolve: Option<ImageViewHandle>MSAA resolve destination, if any.
Like view, and for the same reason it says so: this must
already be in ResourceState::ColorAttachment. Every backend reads it
that way — crcbl-vk names COLOR_ATTACHMENT_OPTIMAL as the resolve
image’s layout and crcbl-dx12 transitions out of RENDER_TARGET and
back — so the seam should say it rather than leave three backends
agreeing by coincidence..
load: LoadOpStart-of-pass behaviour.
store: StoreOpEnd-of-pass behaviour.
clear: ClearValueUsed when load is LoadOp::Clear.
Trait Implementations§
Source§impl Clone for ColorAttachment
impl Clone for ColorAttachment
impl Copy for ColorAttachment
Source§impl Debug for ColorAttachment
impl Debug for ColorAttachment
Source§impl PartialEq for ColorAttachment
impl PartialEq for ColorAttachment
impl StructuralPartialEq for ColorAttachment
Auto Trait Implementations§
impl Freeze for ColorAttachment
impl RefUnwindSafe for ColorAttachment
impl Send for ColorAttachment
impl Sync for ColorAttachment
impl Unpin for ColorAttachment
impl UnsafeUnpin for ColorAttachment
impl UnwindSafe for ColorAttachment
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