mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 03:09:58 +00:00
vk_resource_manager: Add entry to VKFence to test its usage
This commit is contained in:
parent
ec983a2451
commit
e41da22c8d
1 changed files with 8 additions and 0 deletions
|
@ -124,6 +124,14 @@ public:
|
||||||
|
|
||||||
void OnFenceRemoval(VKFence* signaling_fence) override;
|
void OnFenceRemoval(VKFence* signaling_fence) override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Do not use it paired with Watch. Use TryWatch instead.
|
||||||
|
* Returns true when the watch is free.
|
||||||
|
*/
|
||||||
|
bool IsUsed() const {
|
||||||
|
return fence != nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
VKFence* fence{}; ///< Fence watching this resource. nullptr when the watch is free.
|
VKFence* fence{}; ///< Fence watching this resource. nullptr when the watch is free.
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue