mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 17:44:09 +01:00
Update to naga-13
This commit is contained in:
1 parent
cadc2df8a1
commit
ebd1f8d32e
2 files changed
+6
-20
No files matched your search
+1
-15
@@ -54,21 +54,7 @@ impl Context {
|
||||
self: &Arc<Self>,
|
||||
layer: *mut std::ffi::c_void,
|
||||
) -> crate::Surface {
|
||||
let surface = wgc::instance::Surface {
|
||||
#[cfg(feature = "vulkan-portability")]
|
||||
vulkan: None, //TODO: create_surface_from_layer ?
|
||||
metal: self
|
||||
.0
|
||||
.instance
|
||||
.metal
|
||||
.as_ref()
|
||||
.map(|inst| inst.create_surface_from_layer(std::mem::transmute(layer))),
|
||||
};
|
||||
|
||||
let id = self.0.surfaces.process_id(PhantomData);
|
||||
self.0
|
||||
.surfaces
|
||||
.register(id, surface, &mut wgc::hub::Token::root());
|
||||
let id = self.0.instance_create_surface_metal(layer, PhantomData);
|
||||
crate::Surface {
|
||||
context: Arc::clone(self),
|
||||
id,
|
||||
|
||||
Reference in new issue
Block a user