mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
Expose Metal surface creation
This commit is contained in:
1 parent
180dc27144
commit
bdd72dc94d
2 files changed
+6
-5
No files matched your search
@@ -131,7 +131,6 @@ impl Context {
|
||||
self.0.generate_report()
|
||||
}
|
||||
|
||||
/*TODO: raw surface
|
||||
#[cfg(any(target_os = "ios", target_os = "macos"))]
|
||||
pub unsafe fn create_surface_from_core_animation_layer(
|
||||
self: &Arc<Self>,
|
||||
@@ -140,9 +139,12 @@ impl Context {
|
||||
let id = self.0.instance_create_surface_metal(layer, PhantomData);
|
||||
crate::Surface {
|
||||
context: Arc::clone(self),
|
||||
id,
|
||||
id: Surface {
|
||||
id,
|
||||
configured_device: Mutex::default(),
|
||||
},
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
fn handle_error(
|
||||
&self,
|
||||
|
||||
+1
-2
@@ -1467,7 +1467,6 @@ impl Instance {
|
||||
}
|
||||
}
|
||||
|
||||
/*TODO: raw CAL surface
|
||||
/// Creates a surface from `CoreAnimationLayer`.
|
||||
///
|
||||
/// # Safety
|
||||
@@ -1479,7 +1478,7 @@ impl Instance {
|
||||
layer: *mut std::ffi::c_void,
|
||||
) -> Surface {
|
||||
self.context.create_surface_from_core_animation_layer(layer)
|
||||
}*/
|
||||
}
|
||||
|
||||
/// Polls all devices.
|
||||
/// If `force_wait` is true and this is not running on the web,
|
||||
|
||||
Reference in new issue
Block a user