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
@ -194,4 +194,10 @@ impl<'a> TrackedRenderPass<'a> {
|
|||||||
);
|
);
|
||||||
self.pass.draw_indexed(indices, base_vertex, instances);
|
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…
Reference in New Issue
Block a user