wgpu/wgpu-hal/examples/halmark
Connor Fitzgerald c7458638d1
[hal/vk] Rework Submission and Surface Synchronization (#5681)
Fix two major synchronization issues in `wgpu_val::vulkan`:

- Properly order queue command buffer submissions. Due to Mesa bugs, two semaphores are required even though the Vulkan spec says that only one should be necessary.

- Properly manage surface texture acquisition and presentation:

    - Acquiring a surface texture can return while the presentation engine is still displaying the texture. Applications must wait for a semaphore to be signaled before using the acquired texture.

    - Presenting a surface texture requires a semaphore to ensure that drawing is complete before presentation occurs.

Co-authored-by: Jim Blandy <jimb@red-bean.com>
2024-05-30 13:53:34 -07:00
..
main.rs [hal/vk] Rework Submission and Surface Synchronization (#5681) 2024-05-30 13:53:34 -07:00
shader.wgsl Implement SHADER_PRIMITIVE_INDEX on all Backends (#3272) 2022-12-08 08:47:44 -05:00