mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 14:39:19 +08:00
update simpleVulkan
fix typo in importCudaExternalMemory()
This commit is contained in:
parent
0563025cde
commit
471dd47f84
|
@ -331,13 +331,13 @@ class VulkanCudaSineWave : public VulkanBaseApp {
|
||||||
VkExternalMemoryHandleTypeFlagBits handleType) {
|
VkExternalMemoryHandleTypeFlagBits handleType) {
|
||||||
cudaExternalMemoryHandleDesc externalMemoryHandleDesc = {};
|
cudaExternalMemoryHandleDesc externalMemoryHandleDesc = {};
|
||||||
|
|
||||||
if (handleType & VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT) {
|
if (handleType & VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT) {
|
||||||
externalMemoryHandleDesc.type = cudaExternalMemoryHandleTypeOpaqueWin32;
|
externalMemoryHandleDesc.type = cudaExternalMemoryHandleTypeOpaqueWin32;
|
||||||
} else if (handleType &
|
} else if (handleType &
|
||||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT) {
|
VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT) {
|
||||||
externalMemoryHandleDesc.type =
|
externalMemoryHandleDesc.type =
|
||||||
cudaExternalMemoryHandleTypeOpaqueWin32Kmt;
|
cudaExternalMemoryHandleTypeOpaqueWin32Kmt;
|
||||||
} else if (handleType & VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT) {
|
} else if (handleType & VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT) {
|
||||||
externalMemoryHandleDesc.type = cudaExternalMemoryHandleTypeOpaqueFd;
|
externalMemoryHandleDesc.type = cudaExternalMemoryHandleTypeOpaqueFd;
|
||||||
} else {
|
} else {
|
||||||
throw std::runtime_error("Unknown handle type requested!");
|
throw std::runtime_error("Unknown handle type requested!");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user