summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_core/renderer_vulkan/wrapper.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/wrapper.h b/src/video_core/renderer_vulkan/wrapper.h
index 16d208649..96f498c13 100644
--- a/src/video_core/renderer_vulkan/wrapper.h
+++ b/src/video_core/renderer_vulkan/wrapper.h
@@ -615,6 +615,23 @@ public:
615 } 615 }
616}; 616};
617 617
618class Fence : public Handle<VkFence, VkDevice, DeviceDispatch> {
619 using Handle<VkFence, VkDevice, DeviceDispatch>::Handle;
620
621public:
622 VkResult Wait(u64 timeout = std::numeric_limits<u64>::max()) const noexcept {
623 return dld->vkWaitForFences(owner, 1, &handle, true, timeout);
624 }
625
626 VkResult GetStatus() const noexcept {
627 return dld->vkGetFenceStatus(owner, handle);
628 }
629
630 void Reset() const {
631 Check(dld->vkResetFences(owner, 1, &handle));
632 }
633};
634
618class DescriptorPool : public Handle<VkDescriptorPool, VkDevice, DeviceDispatch> { 635class DescriptorPool : public Handle<VkDescriptorPool, VkDevice, DeviceDispatch> {
619 using Handle<VkDescriptorPool, VkDevice, DeviceDispatch>::Handle; 636 using Handle<VkDescriptorPool, VkDevice, DeviceDispatch>::Handle;
620 637