mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
[metal] expose render_layer (#8707)
This commit is contained in:
1 parent
3f4edb11ff
commit
0ac2da4b6b
2 files changed
+5
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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`.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user