Skip to content

Refactor adapter selection to use environment initialization#3302

Open
jorgeajimenezl wants to merge 1 commit intoiced-rs:masterfrom
jorgeajimenezl:feat/wgpu-adapter-selection
Open

Refactor adapter selection to use environment initialization#3302
jorgeajimenezl wants to merge 1 commit intoiced-rs:masterfrom
jorgeajimenezl:feat/wgpu-adapter-selection

Conversation

@jorgeajimenezl
Copy link
Copy Markdown

This pull request refactors the adapter initialization logic in the Compositor implementation to use the utility function initialize_adapter_from_env_or_default from wgpu::util. This change simplifies adapter selection and error handling. This also allows to the users to utilize the WGPU_ADAPTER_NAME to select which adapter they want to use

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.

1 participant