File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,21 @@ using namespace rpp;
1515
1616Fence::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
You can’t perform that action at this time.
0 commit comments