Răsfoiți Sursa

Merge pull request #6190 from lioncash/constfn2

vk_master_semaphore: Add missing const qualifier for IsFree()
bunnei 5 ani în urmă
părinte
comite
12a343ed8d
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/video_core/renderer_vulkan/vk_master_semaphore.h

+ 2 - 2
src/video_core/renderer_vulkan/vk_master_semaphore.h

@@ -35,8 +35,8 @@ public:
     }
     }
 
 
     /// Returns true when a tick has been hit by the GPU.
     /// Returns true when a tick has been hit by the GPU.
-    [[nodiscard]] bool IsFree(u64 tick) {
-        return gpu_tick.load(std::memory_order_relaxed) >= tick;
+    [[nodiscard]] bool IsFree(u64 tick) const noexcept {
+        return KnownGpuTick() >= tick;
     }
     }
 
 
     /// Advance to the logical tick.
     /// Advance to the logical tick.