Closed as not planned
Description
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.