mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Fix Vulkan Portability check
This commit is contained in:
parent
f01feacc2e
commit
80fe0d8fdd
@ -641,7 +641,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
|
||||
let surface =
|
||||
Surface {
|
||||
#[cfg(feature = "vulkan-portability")]
|
||||
#[cfg(feature = "gfx-backend-vulkan")]
|
||||
vulkan: None, //TODO: create_surface_from_layer ?
|
||||
metal: self.instance.metal.as_ref().map(|inst| {
|
||||
inst.create_surface_from_layer(unsafe { std::mem::transmute(layer) })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user