-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web: use get_preferred_canvas_format()
to fill SurfaceCapabilities
#3744
web: use get_preferred_canvas_format()
to fill SurfaceCapabilities
#3744
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah well that will do I guess 😄 👍
50d75f0
to
b9cff4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nits, then good!
c3d8861
to
b17e692
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
Checklist
cargo clippy
.RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown
if applicable.Description
On the web, wgpu always prioritizes returning the
Bgra8Unorm
format in theformats
field ofSurfaceCapabilities
, but this format is not supported on Android devices:Testing
Tested on Android Chrome Canary 115.0.5747.0 via https://jinleili.github.io/learn-wgpu-zh/simuverse