-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Labels
presentationPresenting images to surfaces like windows and canvasesPresenting images to surfaces like windows and canvases
Description
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 toFifo
AutoNoVsync
:Immediate
or elseMailbox
or elseFifo
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
Metadata
Metadata
Assignees
Labels
presentationPresenting images to surfaces like windows and canvasesPresenting images to surfaces like windows and canvases