/// Begins a new [ArenaRenderPass] from the stored pass configuration.
Begins a new [ArenaRenderPass] from the stored pass configuration.
Begins a new [ ArenaRenderPass ] from the stored pass configuration .
pub fn begin(self, frame: &'a mut Frame) -> ArenaRenderPass<'a> {
        let pass = frame.cmd.begin_render_pass(&wgpu::RenderPassDescriptor {
            label: None,
            color_attachments: &[wgpu::RenderPassColorAttachment {
                view: self.target,
                resolve_target: self.resolve,
                ops: wgpu::Operations {
                    load: match self.clear {
                        Some(color) => wgpu::LoadOp::Clear(color.into()),
                        None => wgpu::LoadOp::Load,
                    },
                    store: true,
                },
            }],
            depth_stencil_attachment: self.depth_stencil,
        });
        ArenaRenderPass {
            arena: &frame.arena,
            pass,
        }
    }
pub fn begin ( self , frame : & ' a mut Frame ) -> ArenaRenderPass < ' a > { let pass = frame . cmd . begin_render_pass ( & wgpu :: RenderPassDescriptor { label : None , color_attachments : & [ wgpu :: RenderPassColorAttachment { view : self . target , resolve_target : self . resolve , ops : wgpu :: Operations { load : match self . clear { Some ( color ) => wgpu :: LoadOp :: Clear ( color . into ( ) ) , None => wgpu :: LoadOp :: Load , } , store : true , } , } ] , depth_stencil_attachment : self . depth_stencil , } ) ; ArenaRenderPass { arena : & frame . arena , pass , } }
Begins a new [ArenaRenderPass] from the stored pass configuration.
Begins a new [ ArenaRenderPass ] from the stored pass configuration .
self
frame
&'a mut Frame