15 const VkSemaphoreCreateInfo createInfo{
16 VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO,
22 VkSemaphore vkSemaphore{VK_NULL_HANDLE};
23 VkResult result = vkCreateSemaphore(static_cast<VkDevice>(
_device), &createInfo,
nullptr, &vkSemaphore);
26 *returnResult = result;
29 if (result != VK_SUCCESS) {
39 std::unique_ptr<API::Semaphore> semaphore = std::make_unique<API::Semaphore>();
40 return build(*semaphore, returnResult) ? std::move(semaphore) :
nullptr;
bool build(API::Semaphore &instance, VkResult *returnResult=nullptr)
Semaphore(const API::Device &device)
const API::Device & _device