]> git.nega.tv - josh/narcissus/commitdiff
shark: Move barrier till after UI work
authorJoshua Simmons <josh@nega.tv>
Sat, 18 Oct 2025 21:37:04 +0000 (23:37 +0200)
committerJoshua Simmons <josh@nega.tv>
Sat, 18 Oct 2025 21:38:02 +0000 (23:38 +0200)
title/shark/src/draw.rs

index bc77c01df9a907af135faa2bdfcbd663df566274..c10c67d7aded77237bbee1d35742bd70c5a96bb7 100644 (file)
@@ -711,8 +711,6 @@ impl<'gpu> DrawState<'gpu> {
 
             gpu.cmd_end_debug_marker(cmd_encoder);
 
-            gpu.cmd_compute_touch_swapchain(cmd_encoder, swapchain_image);
-
             let compute_bind_group = gpu.request_transient_bind_group(
                 frame,
                 thread_token,
@@ -1059,6 +1057,8 @@ impl<'gpu> DrawState<'gpu> {
                 gpu.cmd_end_debug_marker(cmd_encoder);
             }
 
+            gpu.cmd_compute_touch_swapchain(cmd_encoder, swapchain_image);
+
             // Display transform and composite
             {
                 gpu.cmd_begin_debug_marker(