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

proposal: support for automatic presentation modes #163

Closed
rajveermalviya opened this issue Jul 4, 2022 · 1 comment
Closed

proposal: support for automatic presentation modes #163

rajveermalviya opened this issue Jul 4, 2022 · 1 comment
Labels
presentation Presenting images to surfaces like windows and canvases

Comments

@rajveermalviya
Copy link
Collaborator

wgpu recently made changes to presention api, which removes implicit fallback for unsupported presentation modes.

it now allows three new presentation modes:

  • FifoRelaxed
  • AutoVsync : FifoRelaxed if available, otherwise fallback to Fifo
  • AutoNoVsync : Immediate or else Mailbox or else Fifo

it also adds a companion method for listing supported presentation modes for a surface.
for webgpu.h it can be:

WGPUPresentMode const * wgpuSurfaceGetSupportedPresentModes(WGPUSurface surface, WGPUAdapter adapter, size_t * count);

so can we add these three present modes & this function to webgpu.h ?

for more info check:
https://github.com/gfx-rs/wgpu/blob/c36eb9f44bd9462fe176fb859839592131428feb/wgpu-types/src/lib.rs#L2951-L3021

also cc @cwfitzgerald @jimblandy

@kainino0x kainino0x added the presentation Presenting images to surfaces like windows and canvases label Jun 29, 2023
@rajveermalviya
Copy link
Collaborator Author

closing in favor of #197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
presentation Presenting images to surfaces like windows and canvases
Projects
None yet
Development

No branches or pull requests

2 participants