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

Separate Out Backend Options into Individual Structs #6895

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

cwfitzgerald
Copy link
Member

Connections

Part of the work on #4589

Description

This better organizes the backend options to allow us to add more options without the users needing to explicitly think about it

Testing

Clappy

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@cwfitzgerald cwfitzgerald requested review from crowlKats and a team as code owners January 11, 2025 02:16
@cwfitzgerald
Copy link
Member Author

cwfitzgerald commented Jan 11, 2025

There's a decent amount of code that was just moved and not majorly rewritten. This unfortunately couldn't really be captured well in a move commit without undue effort on my part.

@cwfitzgerald cwfitzgerald force-pushed the cw/per-backend-configurations branch 4 times, most recently from 5dc796b to 96815d2 Compare January 11, 2025 02:47
@Wumpf Wumpf self-requested a review January 11, 2025 14:40
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

I've been recently dealing with a lot of config things in egui & Rerun and as such I deeply appreciate this refactor. Rather kinda embarrassing I didn't bring it up myself!
But now I'd really really would want to go the extra step to make it even better & consistent, see comments. Also happy to take over

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
wgpu-types/src/instance.rs Outdated Show resolved Hide resolved
wgpu-types/src/instance.rs Outdated Show resolved Hide resolved
wgpu-types/src/instance.rs Show resolved Hide resolved
wgpu-types/src/instance.rs Show resolved Hide resolved
@cwfitzgerald
Copy link
Member Author

Appreciate you caring so much about the little api details, very much appreciate it!

@cwfitzgerald cwfitzgerald force-pushed the cw/per-backend-configurations branch from 96815d2 to d24ddba Compare January 14, 2025 22:42
@cwfitzgerald
Copy link
Member Author

@kpreid @Wumpf take a re-lookie

@cwfitzgerald cwfitzgerald requested review from Wumpf and kpreid January 14, 2025 22:44
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

perfect, thank you for making this even better :)

CHANGELOG.md Outdated Show resolved Hide resolved
@cwfitzgerald cwfitzgerald enabled auto-merge (squash) January 15, 2025 17:15
@cwfitzgerald cwfitzgerald merged commit 0f37714 into gfx-rs:trunk Jan 15, 2025
30 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.

3 participants