Skip to content

Commit

Permalink
Add set_stencil_reference to TrackedRenderPass (#2885)
Browse files Browse the repository at this point in the history
`TrackedRenderPass` is a wrapper around wgpu's `RenderPass` and should expose needed methods such as `set_stencil_reference`.
  • Loading branch information
VVishion committed Sep 28, 2021
1 parent fb33d59 commit d2bba8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pipelined/bevy_render2/src/render_phase/draw_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,10 @@ impl<'a> TrackedRenderPass<'a> {
);
self.pass.draw_indexed(indices, base_vertex, instances);
}

pub fn set_stencil_reference(&mut self, reference: u32) {
debug!("set stencil reference: {}", reference);

self.pass.set_stencil_reference(reference);
}
}

0 comments on commit d2bba8c

Please sign in to comment.