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

Improve Presentation Api #2803

Merged
merged 7 commits into from Jun 30, 2022
Merged

Conversation

cwfitzgerald
Copy link
Member

@cwfitzgerald cwfitzgerald commented Jun 23, 2022

Connections
Closes #2711
Closes #2712

Description

This does a couple things:

  • Exposes an improved set of presentation mode.
  • Addes explicit "automatic" modes and removes default fallback.
  • Users must either use an Auto format or match what the surface wants exactly.
  • Added get_supported_modes which returns a vector of supported presentation modes.

As a related fix - properly exposes more formats on all vulkan and metal.

In a weird surprise we weren't updated to rust 2021, so I updated it so I could use format strings in an unreachable!.

Commits can be reviewed independently.

Good to review, just don't merge - I need to test on DX12/VK first.

Testing

Manually.

wgpu-types/src/lib.rs Outdated Show resolved Hide resolved
cwfitzgerald and others added 2 commits June 23, 2022 08:38
Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
@victorvde
Copy link
Contributor

The changes to framework.rs in Fix issues with ALLOW_TEARING seem to be testing changes that were accidentally committed.

@cwfitzgerald
Copy link
Member Author

Good catch, thank you!

Copy link
Member

@jimblandy jimblandy 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 to me.

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.

Creating a Window with DX12 and Immediate Mode Causes Error in ResizeBuffers Improve PresentationMode Api
5 participants