Skip to content
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 Unorm10_10_10_2 VertexFormat #5477

Merged
merged 9 commits into from
Apr 3, 2024

Conversation

McMackety
Copy link
Contributor

@McMackety McMackety commented Apr 2, 2024

Connections

Description
This PR implements the Unorm10_10_10_2 VertexFormat as well as implements the translations required to make it useable on all available backends.

Testing
I manually tested the changes and haven't found any issues, though still need to run it through the updated conformance tests. Additionally, it may be useful to add Unit Tests for this, although currently the different vertex formats are not tested.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown (Failed due to web-sys version)
    • --target wasm32-unknown-emscripten (Failed due to web-sys version)
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@McMackety McMackety requested a review from a team as a code owner April 2, 2024 18:11
@McMackety McMackety changed the title Implement Unorm10_10_10_2 VertexFormat WIP: Implement Unorm10_10_10_2 VertexFormat Apr 2, 2024
@teoxoy
Copy link
Member

teoxoy commented Apr 3, 2024

@McMackety could you resolve the conflicts?

@McMackety
Copy link
Contributor Author

@teoxoy just resolved them.

wgpu-types/src/lib.rs Outdated Show resolved Hide resolved
wgpu/src/backend/webgpu.rs Outdated Show resolved Hide resolved
@teoxoy teoxoy changed the title WIP: Implement Unorm10_10_10_2 VertexFormat Implement Unorm10_10_10_2 VertexFormat Apr 3, 2024
McMackety and others added 3 commits April 3, 2024 13:32
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
@McMackety McMackety requested a review from teoxoy April 3, 2024 17:35
wgpu/src/backend/webgpu.rs Outdated Show resolved Hide resolved
wgpu/src/backend/webgpu.rs Outdated Show resolved Hide resolved
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

wgpu-types/src/lib.rs Outdated Show resolved Hide resolved
@teoxoy teoxoy enabled auto-merge (squash) April 3, 2024 19:29
@teoxoy teoxoy mentioned this pull request Apr 3, 2024
37 tasks
@teoxoy teoxoy merged commit 3db0e46 into gfx-rs:trunk Apr 3, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing VertexFormat unorm10_10_10_2 present in other implementations
2 participants