VKNULLHANDLE
VK_NULL_HANDLE is a sentinel value used in the Vulkan API to represent a null or uninitialized handle. It is defined in Vulkan header files as a single, consistent value that can be compared across all handle types, including both dispatchable handles (such as VkInstance, VkDevice, VkQueue) and non-dispatchable handles (such as VkBuffer, VkImage). In practice, VK_NULL_HANDLE is defined as zero.
The main purpose of VK_NULL_HANDLE is to provide a standardized way to indicate an absence of a
Usage examples are straightforward: initialize a handle, for example VkInstance instance = VK_NULL_HANDLE; after a successful creation,
Note on terminology: VKNULLHANDLE is not a standard Vulkan term. The official constant is VK_NULL_HANDLE. If
See also VK_NULL_HANDLE, Vulkan handles, dispatchable and non-dispatchable handles.