Replies: 2 comments 1 reply
|
It appears that you, or some intermediate code you are using, have constructed an If it is unclear how to do this, or this doesn’t seem to match what you have, please provide code of the functions you have written that work with display handles, and the versions of all involved dependencies, so we can understand the problem further. If you know that, for some reason, you must have such an |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The documentation for
InstanceDescriptorrecommends passing anOwnedDisplayHandleas thedisplay. However, it provides zero guidance on how to actually do that. I also wasn't able to find any examples that do this.How do I convert the
OwnedDisplayHandleinto the requiredBox<dyn WgpuHasDisplayHandle>? Is this even possible with the latest version ofraw_window_handleandwinit, or is this outdated information? Am I missing something obvious?The most obvious approach,
Box::new(owned_display_handle)results in the following error:All reactions