MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / createSemaphore

Function createSemaphore

shared/UtilsVulkan.cpp:535–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535VkResult createSemaphore(VkDevice device, VkSemaphore* outSemaphore)
536{
537 const VkSemaphoreCreateInfo ci =
538 {
539 .sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO
540 };
541
542 return vkCreateSemaphore(device, &ci, nullptr, outSemaphore);
543}
544
545bool initVulkanRenderDevice(VulkanInstance& vk, VulkanRenderDevice& vkDev, uint32_t width, uint32_t height, std::function<bool(VkPhysicalDevice)> selector, VkPhysicalDeviceFeatures deviceFeatures)
546{

Calls

no outgoing calls

Tested by

no test coverage detected