Skip to content

Present with damage region (VkPresentRegionKHR) #682

Closed as not planned
Closed as not planned
@valpackett

Description

@valpackett

Is your feature request related to a problem? Please describe.

Looks like there is no way to pass the VkPresentRegion (and equivalents on other platforms) when presenting a frame.

The thing the Vulkan WSI-side code gets as the last arg here:

static VkResult
wsi_wl_swapchain_queue_present(struct wsi_swapchain *wsi_chain,
                               uint32_t image_index,
                               const VkPresentRegionKHR *damage)

Describe the solution you'd like

Some way to do that. I can't find anything like that in the WebGPU spec :(
Are custom extensions allowed in wgpu?

Additional context

Damage tracking allows applications to only render changed parts between frames, saving power. In this case, I'm only talking about the compositor-side thing, where applications tell the compositor which regions of the window have changed so the compositor can only update them. This is called EGL_KHR_swap_buffers_with_damage in the GL world.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: wsiIssues with swapchain management or windowinghelp requiredWe need community help to make this happen.type: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions