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

get_supported_formats: sort like the old get_preferred_format and simplify return type #2786

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

victorvde
Copy link
Contributor

Connections
Follow up to #2783 . Alternative to #2785 .

Description
Makes the first returned format the same as the old get_preferred_format. Simplifies the return type, and consequently the examples/

Testing
Ran some examples.

wgpu-core/src/instance.rs Outdated Show resolved Hide resolved
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

One nit, otherwise lgtm

wgpu/examples/hello-windows/main.rs Show resolved Hide resolved
wgpu/src/lib.rs Show resolved Hide resolved
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Tysm!

@cwfitzgerald cwfitzgerald enabled auto-merge (squash) June 22, 2022 21:01
@cwfitzgerald cwfitzgerald merged commit 7375acb into gfx-rs:master Jun 22, 2022
atadier pushed a commit to atadier/wgpu that referenced this pull request Jun 23, 2022
…plify return type (gfx-rs#2786)

* get_supported_formats: sort srgb first like the old get_preferred_format

* get_supported_formats: simplify return type
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.

2 participants