Skip to content

Is it possible to use this without Winit on the web? #328

Answered by parasyte
breqdev asked this question in Q&A
Discussion options

You must be logged in to vote

At present you need something that implements HasRawWindowHandle to gain access to a WebGL (or WebGPU) context. This is by design. See #309 (comment) for rationale. This means you do not need winit, but you still need some abstraction layer.

If we decide to support canvases directly, it will be behind a feature flag and will pretty much be a bespoke substitute for rust-windowing/raw-window-handle#102 (which is at an impasse and not expected to see any progress in the near future).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by breqdev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants