mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
Add set_stencil_reference to TrackedRenderPass (#2885)
`TrackedRenderPass` is a wrapper around wgpu's `RenderPass` and should expose needed methods such as `set_stencil_reference`.
This commit is contained in:
parent
fb33d591df
commit
d2bba8cb15
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue