mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-15 22:07:48 +00:00
vk_resource_manager: Add entry to VKFence to test its usage
This commit is contained in:
parent
9929ad309d
commit
bb51f0809a
1 changed files with 8 additions and 0 deletions
|
@ -124,6 +124,14 @@ public:
|
|||
|
||||
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:
|
||||
VKFence* fence{}; ///< Fence watching this resource. nullptr when the watch is free.
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue