mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 20:58:07 -08:00
462: Using default nsview if not provided by raw-window-handle r=kvark a=lmcgrath Per #453 I've added some native code to get the default `NSView` if it's not provided by `RawWindowHandle`. This is to support libraries like SDL2 which expose an `NSWindow` but no `NSView`. I'm using the [`[NSWindow contentView]`](https://developer.apple.com/documentation/appkit/nswindow/1419160-contentview) property to get the `NSView`. Co-authored-by: Logan McGrath <1755866+lmcgrath@users.noreply.github.com>