16 fence._fence = VK_NULL_HANDLE;
17 fence._device =
nullptr;
25 fence._fence = VK_NULL_HANDLE;
26 fence._device =
nullptr;
36 return vkGetFenceStatus(static_cast<VkDevice>(*
_device),
_fence);
40 VkResult result = vkResetFences(static_cast<VkDevice>(*
_device), 1, &
_fence);
42 if (result != VK_SUCCESS) {
43 LUG_LOG.error(
"Fence::reset: Can't reset fence: {}", result);
51 VkResult result = vkWaitForFences(static_cast<VkDevice>(*
_device), 1, &
_fence, VK_TRUE, UINT64_MAX);
53 if (result != VK_SUCCESS) {
54 LUG_LOG.error(
"Fence::wait: Can't wait for fence: {}", result);
62 if (
_fence != VK_NULL_HANDLE) {
63 vkDestroyFence(static_cast<VkDevice>(*
_device),
_fence,
nullptr);
VkResult getStatus() const
Fence & operator=(const Fence &)=delete