mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 06:30:19 +00:00
Add wgpu_pass method to TrackedRenderPass (#10722)
# Objective - Fixes #10707 ## Solution - Add a method to obtain `RenderPass` to `TrackedRenderPass` simillar to `RenderDevice::wgpu_device` --- ## Changelog Added `wgpu_pass` method to `TrackedRenderPass`
This commit is contained in:
parent
c33bacd5fd
commit
4eafd60ce9
1 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,11 @@ impl<'a> TrackedRenderPass<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns the wgpu [`RenderPass`].
|
||||
pub fn wgpu_pass(&mut self) -> &mut RenderPass<'a> {
|
||||
&mut self.pass
|
||||
}
|
||||
|
||||
/// Sets the active [`RenderPipeline`].
|
||||
///
|
||||
/// Subsequent draw calls will exhibit the behavior defined by the `pipeline`.
|
||||
|
|
Loading…
Reference in a new issue