Struct lambda_platform::gfx::render_pass::AttachmentBuilder
source · pub struct AttachmentBuilder { /* private fields */ }
Expand description
Implementations§
source§impl AttachmentBuilder
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.