Skip to content

Commit 0ac2da4

Browse files
authored
[metal] expose render_layer (#8707)
1 parent 3f4edb1 commit 0ac2da4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ By @cwfitzgerald in [#8609](https://github.com/gfx-rs/wgpu/pull/8609).
201201
#### Metal
202202

203203
- Add support for mesh shaders. By @SupaMaggie70Incorporated in [#8139](https://github.com/gfx-rs/wgpu/pull/8139)
204+
- Expose render layer. By @xiaopengli89 in [#8707](https://github.com/gfx-rs/wgpu/pull/8707)
204205

205206
#### Naga
206207

wgpu-hal/src/metal/surface.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ impl super::Surface {
5050
Self::new(layer.to_owned())
5151
}
5252

53+
pub fn render_layer(&self) -> &Mutex<metal::MetalLayer> {
54+
&self.render_layer
55+
}
56+
5357
/// Get or create a new `CAMetalLayer` associated with the given `NSView`
5458
/// or `UIView`.
5559
///

0 commit comments

Comments
 (0)