pub struct AttachmentBuilder { /* private fields */ }
Expand description
Implementations§
Source§impl AttachmentBuilder
builder for a render attachment
impl AttachmentBuilder
builder for a render attachment
pub fn new() -> Self
Sourcepub fn with_samples(self, samples: u8) -> Self
pub fn with_samples(self, samples: u8) -> Self
Sets the number of samples to use for the attachment.
Sourcepub fn with_color_format(self, color_format: ColorFormat) -> Self
pub fn with_color_format(self, color_format: ColorFormat) -> Self
Sets the color format to use for the attachment.
Sourcepub fn on_load(self, operation: Operations) -> Self
pub fn on_load(self, operation: Operations) -> Self
Sets the load operation for the attachment.
Sourcepub fn on_store(self, operation: Operations) -> Self
pub fn on_store(self, operation: Operations) -> Self
Sourcepub fn build(self) -> Attachment
pub fn build(self) -> Attachment
Builds a render attachment that can be used within a render pass.
Auto Trait Implementations§
impl Freeze for AttachmentBuilder
impl RefUnwindSafe for AttachmentBuilder
impl Send for AttachmentBuilder
impl Sync for AttachmentBuilder
impl Unpin for AttachmentBuilder
impl UnwindSafe for AttachmentBuilder
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