Skip to content

Commit 8c78327

Browse files
committed
fix fence
1 parent 52ac3ee commit 8c78327

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rvk/commands.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ using namespace rpp;
1515

1616
Fence::Fence(Arc<Device, Alloc> D) : device(move(D)) {
1717

18-
VkFenceCreateInfo info = {
19-
.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,
20-
.flags = VK_FENCE_CREATE_SIGNALED_BIT,
21-
};
22-
2318
VkExportFenceCreateInfo export_info = {
2419
.sType = VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO,
25-
.pNext = &export_info,
2620
#ifdef RPP_OS_WINDOWS
2721
.handleTypes = VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT,
2822
#else
2923
.handleTypes = VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT,
3024
#endif
3125
};
3226

27+
VkFenceCreateInfo info = {
28+
.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,
29+
.pNext = &export_info,
30+
.flags = VK_FENCE_CREATE_SIGNALED_BIT,
31+
};
32+
3333
RVK_CHECK(vkCreateFence(*device, &info, null, &fence));
3434
}
3535

0 commit comments

Comments
 (0)