mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 18:19:16 +08:00
fix copy paste typos in simpleVulkan VulkanBaseApp.cpp
This commit is contained in:
parent
b312abaa07
commit
a2859ceb67
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user