pub fn render<'a, 'b>(&'a self, render_pass: &mut RenderPass<'b>) where 'a: 'b {
        render_pass.set_bind_group(0, &self.uniform_bind_group, &[]);
        render_pass.set_index_buffer(self.index_buffer.slice(..));
        render_pass.set_vertex_buffer(0, self.vertex_buffer.slice(..));
        render_pass.draw_indexed(0..6, 0, 0..1);
    }
// Quad will always outlive the RenderPass
Quad will always outlive the RenderPass
Quad will always outlive the RenderPass
pub fn render<'a, 'b>(&'a self, render_pass: &mut RenderPass<'b>) where 'a: 'b {
        render_pass.set_bind_group(0, &self.uniform_bind_group, &[]);
        render_pass.set_index_buffer(self.index_buffer.slice(..));
        render_pass.set_vertex_buffer(0, self.vertex_buffer.slice(..));
        render_pass.draw_indexed(0..6, 0, 0..1);
    }
pub fn render < ' a , ' b > ( & ' a self , render_pass : & mut RenderPass < ' b > ) where ' a : ' b { render_pass . set_bind_group ( 0 , & self . uniform_bind_group , & [ ] ) ; render_pass . set_index_buffer ( self . index_buffer . slice ( .. ) ) ; render_pass . set_vertex_buffer ( 0 , self . vertex_buffer . slice ( .. ) ) ; render_pass . draw_indexed ( 0 .. 6 , 0 , 0 .. 1 ) ; }
Quad will always outlive the RenderPass
Quad will always outlive the RenderPass
&'a self
render_pass
&mut RenderPass<'b>
&'a self
render_pass
&mut RenderPass<'b>