I found out that someone tries to compare two different enums here:
|
if (handleType & VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT) { |
The handleType is enum VkExternalMemoryHandleTypeFlagBits and bit VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT is a VkExternalSemaphoreHandleTypeFlagBits. It probably works, but it would be nice to do bitwise and operation on enums with the same type.
I found out that someone tries to compare two different enums here:
cuda-samples/Samples/5_Domain_Specific/simpleVulkan/main.cpp
Line 331 in 4f73561
The
handleTypeis enumVkExternalMemoryHandleTypeFlagBitsand bitVK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BITis aVkExternalSemaphoreHandleTypeFlagBits. It probably works, but it would be nice to do bitwiseandoperation on enums with the same type.