Skip to content
Snippets Groups Projects
Unverified Commit e41da22c authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

vk_resource_manager: Add entry to VKFence to test its usage

parent ec983a24
No related branches found
No related tags found
No related merge requests found
......@@ -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.
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment