Potential bug in simpleVulkan example

Author: JaanuszekCreated Mar 5, 2026Updated Aug 28, 2026

I found out that someone tries to compare two different enums here: https://github.com/NVIDIA/cuda-samples/blob/4f735616ba599fe93cc2c6c85dcb4369260f9643/Samples/5_Domain_Specific/simpleVulkan/main.cpp#L331

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.