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
@ -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 New Issue
Block a user