fix copy paste typos in simpleVulkan VulkanBaseApp.cpp

This commit is contained in:
sw212 2022-07-09 13:09:09 +01:00 committed by GitHub
parent b312abaa07
commit a2859ceb67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1539,7 +1539,7 @@ void *VulkanBaseApp::getMemHandle(
fpGetMemoryFdKHR = fpGetMemoryFdKHR =
(PFN_vkGetMemoryFdKHR)vkGetDeviceProcAddr(m_device, "vkGetMemoryFdKHR"); (PFN_vkGetMemoryFdKHR)vkGetDeviceProcAddr(m_device, "vkGetMemoryFdKHR");
if (!fpGetMemoryFdKHR) { if (!fpGetMemoryFdKHR) {
throw std::runtime_error("Failed to retrieve vkGetMemoryWin32HandleKHR!"); throw std::runtime_error("Failed to retrieve vkGetMemoryFdKHR!");
} }
if (fpGetMemoryFdKHR(m_device, &vkMemoryGetFdInfoKHR, &fd) != VK_SUCCESS) { if (fpGetMemoryFdKHR(m_device, &vkMemoryGetFdInfoKHR, &fd) != VK_SUCCESS) {
throw std::runtime_error("Failed to retrieve handle for buffer!"); throw std::runtime_error("Failed to retrieve handle for buffer!");
@ -1565,11 +1565,11 @@ void *VulkanBaseApp::getSemaphoreHandle(
(PFN_vkGetSemaphoreWin32HandleKHR)vkGetDeviceProcAddr( (PFN_vkGetSemaphoreWin32HandleKHR)vkGetDeviceProcAddr(
m_device, "vkGetSemaphoreWin32HandleKHR"); m_device, "vkGetSemaphoreWin32HandleKHR");
if (!fpGetSemaphoreWin32HandleKHR) { if (!fpGetSemaphoreWin32HandleKHR) {
throw std::runtime_error("Failed to retrieve vkGetMemoryWin32HandleKHR!"); throw std::runtime_error("Failed to retrieve vkGetSemaphoreWin32HandleKHR!");
} }
if (fpGetSemaphoreWin32HandleKHR(m_device, &semaphoreGetWin32HandleInfoKHR, if (fpGetSemaphoreWin32HandleKHR(m_device, &semaphoreGetWin32HandleInfoKHR,
&handle) != VK_SUCCESS) { &handle) != VK_SUCCESS) {
throw std::runtime_error("Failed to retrieve handle for buffer!"); throw std::runtime_error("Failed to retrieve handle for semaphore!");
} }
return (void *)handle; return (void *)handle;
@ -1586,11 +1586,11 @@ void *VulkanBaseApp::getSemaphoreHandle(
fpGetSemaphoreFdKHR = (PFN_vkGetSemaphoreFdKHR)vkGetDeviceProcAddr( fpGetSemaphoreFdKHR = (PFN_vkGetSemaphoreFdKHR)vkGetDeviceProcAddr(
m_device, "vkGetSemaphoreFdKHR"); m_device, "vkGetSemaphoreFdKHR");
if (!fpGetSemaphoreFdKHR) { if (!fpGetSemaphoreFdKHR) {
throw std::runtime_error("Failed to retrieve vkGetMemoryWin32HandleKHR!"); throw std::runtime_error("Failed to retrieve vkGetSemaphoreFdKHR!");
} }
if (fpGetSemaphoreFdKHR(m_device, &semaphoreGetFdInfoKHR, &fd) != if (fpGetSemaphoreFdKHR(m_device, &semaphoreGetFdInfoKHR, &fd) !=
VK_SUCCESS) { VK_SUCCESS) {
throw std::runtime_error("Failed to retrieve handle for buffer!"); throw std::runtime_error("Failed to retrieve handle for semaphore!");
} }
return (void *)(uintptr_t)fd; return (void *)(uintptr_t)fd;