mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-12 12:44:19 +01:00
Merge pull request #6190 from lioncash/constfn2
vk_master_semaphore: Add missing const qualifier for IsFree()
This commit is contained in:
commit
12a343ed8d
@ -35,8 +35,8 @@ public:
|
||||
}
|
||||
|
||||
/// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user