pub struct RenderPass {
pub color_attachments: Vec<TextureHandle>,
pub depth_attachment: Option<TextureHandle>,
pub clear_color: [f32; 4],
}Expand description
Describes a render pass with colour and depth attachments.
Fields§
§color_attachments: Vec<TextureHandle>§depth_attachment: Option<TextureHandle>§clear_color: [f32; 4]Implementations§
Source§impl RenderPass
impl RenderPass
pub fn new() -> Self
pub fn with_color(self, tex: TextureHandle) -> Self
pub fn with_depth(self, tex: TextureHandle) -> Self
pub fn with_clear(self, r: f32, g: f32, b: f32, a: f32) -> Self
Trait Implementations§
Source§impl Clone for RenderPass
impl Clone for RenderPass
Source§fn clone(&self) -> RenderPass
fn clone(&self) -> RenderPass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderPass
impl Debug for RenderPass
Auto Trait Implementations§
impl Freeze for RenderPass
impl RefUnwindSafe for RenderPass
impl Send for RenderPass
impl Sync for RenderPass
impl Unpin for RenderPass
impl UnsafeUnpin for RenderPass
impl UnwindSafe for RenderPass
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