diff options
Diffstat (limited to 'chromium/gpu/vulkan/vulkan_util_win32.cc')
-rw-r--r-- | chromium/gpu/vulkan/vulkan_util_win32.cc | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/chromium/gpu/vulkan/vulkan_util_win32.cc b/chromium/gpu/vulkan/vulkan_util_win32.cc index 7b4ad659c83..997009f646b 100644 --- a/chromium/gpu/vulkan/vulkan_util_win32.cc +++ b/chromium/gpu/vulkan/vulkan_util_win32.cc @@ -36,12 +36,12 @@ VkSemaphore ImportVkSemaphoreHandle(VkDevice vk_device, return VK_NULL_HANDLE; auto win32_handle = handle.TakeHandle(); - VkImportSemaphoreWin32HandleInfoKHR import = { - .sType = VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR, - .semaphore = semaphore, - .handleType = handle_type, - .handle = win32_handle.Get(), - }; + VkImportSemaphoreWin32HandleInfoKHR import; + import.sType = VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR; + import.semaphore = semaphore; + import.handleType = handle_type; + import.handle = win32_handle.Get(); + result = vkImportSemaphoreWin32HandleKHR(vk_device, &import); if (result != VK_SUCCESS) { vkDestroySemaphore(vk_device, semaphore, nullptr); @@ -67,11 +67,10 @@ SemaphoreHandle GetVkSemaphoreHandle( }, base::Time::Now())); - VkSemaphoreGetWin32HandleInfoKHR info = { - .sType = VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR, - .semaphore = vk_semaphore, - .handleType = handle_type, - }; + VkSemaphoreGetWin32HandleInfoKHR info; + info.sType = VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR; + info.semaphore = vk_semaphore; + info.handleType = handle_type; HANDLE handle = nullptr; VkResult result = vkGetSemaphoreWin32HandleKHR(vk_device, &info, &handle); |