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:
wgxer 2023-11-25 06:11:24 +03:00 committed by GitHub
parent c33bacd5fd
commit 4eafd60ce9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.