-
Notifications
You must be signed in to change notification settings - Fork 943
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
Implement view_formats
for SurfaceConfiguration
#3409
Conversation
view_formats
for SurfaceConfiguration
36133ac
to
bfb3eab
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.
Deno part looks good to me.
If you want, i can test the deno change, but am unsure how viewformats are used. Though, given its a simple & straight-forward change, testing it doesnt seem too necessary
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.
We should validate the viewFormats
in validate_surface_configuration
according to https://gpuweb.github.io/gpuweb/#dom-gpucanvascontext-configure.
Otherwise, looks good!
Looking at the #3399 implementation, I'm not sure if the Vulkan backend needs to be handled separately here as well. |
Thanks for updating the validation but there is one more rule:
Ideally, we'd share some validation for the
I don't think we need to do anything extra for Vulkan here. @cwfitzgerald can maybe confirm? |
Yeah, I think we need mutable format on the swapchain via https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSwapchainCreateFlagBitsKHR.html and VK_KHR_swapchain_mutable_format. This is fine on desktop, but has zero support on android. |
9e89f65
to
d30bc2c
Compare
The addition of the corresponding extension |
Or can we still set |
I checked the
Yes, after re-reading the documentation, they should all be required. Since |
d30bc2c
to
d0cbd72
Compare
1fc9229
to
2458a18
Compare
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
2458a18
to
007537a
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.
2 remaining things and we should be good to go.
Thanks for addressing all the comments!
Adopting this PR so we can get it in this release |
3f1a955
to
f87eda9
Compare
Checklist
cargo clippy
.RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown
if applicable.Connections
Follow up to #3237
Testing
Tested locally except deno part