summaryrefslogtreecommitdiffstats
path: root/wgpu/src/triangle/solid.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wgpu/src/triangle/solid.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/wgpu/src/triangle/solid.rs b/wgpu/src/triangle/solid.rs
index 6b5dad41..2e1052f2 100644
--- a/wgpu/src/triangle/solid.rs
+++ b/wgpu/src/triangle/solid.rs
@@ -147,6 +147,13 @@ impl Pipeline {
self.buffer.write(device, staging_belt, encoder);
}
+ pub fn set_render_pass_pipeline<'a>(
+ &'a self,
+ render_pass: &mut wgpu::RenderPass<'a>,
+ ) {
+ render_pass.set_pipeline(&self.pipeline);
+ }
+
/// Configures the current render pass to draw the solid at its offset stored in the
/// [DynamicBuffer] at [index].
pub fn configure_render_pass<'a>(
@@ -154,7 +161,6 @@ impl Pipeline {
render_pass: &mut wgpu::RenderPass<'a>,
count: usize,
) {
- render_pass.set_pipeline(&self.pipeline);
render_pass.set_bind_group(
0,
&self.bind_group,