-
Notifications
You must be signed in to change notification settings - Fork 960
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
use custom ser/de impl for TextureFormat #2908
Conversation
What's the status of this, I know there was a bunch of discussion about it. |
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.
This looks great - thank you for taking care of it!
I think all we need here are some tests. Please add two #[test]
functions to wgpu-types/src/lib.rs
, just after the the impl TextureFormat
block, that compare the serializations and deserializations of wgpu_types::TextureFormat
against the strings given in the WebGPU spec's definition of GPUTextureFormat
.
ok, will do. will wait for #2954 to land first. |
# Conflicts: # wgpu-types/src/lib.rs
Co-authored-by: Alphyr <[email protected]>
Co-authored-by: Alphyr <[email protected]>
Co-authored-by: Alphyr <[email protected]>
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.
Once CI isn't mad, G2G
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.
Thanks!
I am unsure whats going on with the errors |
Perhaps try updating your clippy? |
@jimblandy clippy should be fixed now, but i was rather asking about the windows & linux tests that are failing |
Has the ron serialization of traces changed? It's a parsing failure of the .ron traces in the test. |
Yes, texture formats were previously (de)serialized as enum variants and they are now (de)serialized as strings. |
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.
LGTM !
No description provided.