mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
Fix build for iOS
This commit is contained in:
1 parent
b51053dc2d
commit
7a57b4590b
1 file changed
+1
-1
@@ -21,7 +21,7 @@ pub fn wgpu_create_surface(raw_handle: raw_window_handle::RawWindowHandle) -> id
|
||||
let instance = &GLOBAL.instance;
|
||||
let surface = match raw_handle {
|
||||
#[cfg(target_os = "ios")]
|
||||
Rwh::IOS(h) => Surface {
|
||||
Rwh::IOS(h) => core::instance::Surface {
|
||||
#[cfg(feature = "vulkan-portability")]
|
||||
vulkan: None,
|
||||
metal: instance
|
||||
|
||||
Reference in new issue
Block a user