15 const VkFenceCreateInfo createInfo{
16 VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,
22 VkFence vkFence{VK_NULL_HANDLE};
23 VkResult result = vkCreateFence(static_cast<VkDevice>(
_device), &createInfo,
nullptr, &vkFence);
26 *returnResult = result;
29 if (result != VK_SUCCESS) {
39 std::unique_ptr<API::Fence> fence = std::make_unique<API::Fence>();
40 return build(*fence, returnResult) ? std::move(fence) :
nullptr;
Fence(const API::Device &device)
bool build(API::Fence &instance, VkResult *returnResult=nullptr)
const API::Device & _device
VkFenceCreateFlags _flags