[metal] expose render_layer (#8707)

This commit is contained in:
Xiaopeng Li authored and GitHub committed 2025-12-12 01:43:22 +00:00
1 parent 3f4edb11ff
commit 0ac2da4b6b
2 files changed
+5

No files matched your search

+1
View File
@@ -201,6 +201,7 @@ By @cwfitzgerald in [#8609](https://github.com/gfx-rs/wgpu/pull/8609).
#### Metal
- Add support for mesh shaders. By @SupaMaggie70Incorporated in [#8139](https://github.com/gfx-rs/wgpu/pull/8139)
- Expose render layer. By @xiaopengli89 in [#8707](https://github.com/gfx-rs/wgpu/pull/8707)
#### Naga
+4
View File
@@ -50,6 +50,10 @@ impl super::Surface {
Self::new(layer.to_owned())
}
pub fn render_layer(&self) -> &Mutex<metal::MetalLayer> {
&self.render_layer
}
/// Get or create a new `CAMetalLayer` associated with the given `NSView`
/// or `UIView`.
///