We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2601910 commit ad06659Copy full SHA for ad06659
src/lib.rs
@@ -209,7 +209,7 @@ impl State {
209
// we need to use a scoped block to release this mutable borrow, to call
210
// encoder.finish()
211
{
212
- let _render_pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
+ let mut render_pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
213
label: Some("Render Pass"),
214
215
color_attachments: &[Some(wgpu::RenderPassColorAttachment {
@@ -230,6 +230,9 @@ impl State {
230
231
depth_stencil_attachment: None,
232
});
233
+
234
+ render_pass.set_pipeline(&self.render_pipeline);
235
+ render_pass.draw(0..3, 0..1);
236
}
237
238
self.queue.submit(std::iter::once(encoder.finish()));
0 commit comments