Browse Source
Merge pull request #6190 from lioncash/constfn2
vk_master_semaphore: Add missing const qualifier for IsFree()
pull/15/merge
bunnei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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. |
|
|
|
[[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. |
|
|
|
|