VK_NULL_HANDLE(3)

# VK_NULL_HANDLE(3) Manual Page

## Name

VK_NULL_HANDLE - Reserved non-valid object handle

Loading… please wait.

## C Specification

`VK_NULL_HANDLE` is a reserved value representing a non-valid object handle. It may be passed to and returned from Vulkan commands only when specifically allowed.

    // Provided by VK_VERSION_1_0
    #ifndef VK_DEFINE_NON_DISPATCHABLE_HANDLE
        #if (VK_USE_64_BIT_PTR_DEFINES==1)
            #if (defined(__cplusplus) && (__cplusplus >= 201103L)) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201103L))
                #define VK_NULL_HANDLE nullptr
            #else
                #define VK_NULL_HANDLE ((void*)0)
            #endif
        #else
            #define VK_NULL_HANDLE 0ULL
        #endif
    #endif
    #ifndef VK_NULL_HANDLE
        #define VK_NULL_HANDLE 0
    #endif

## See Also

VK_DEFINE_NON_DISPATCHABLE_HANDLE, VK_USE_64_BIT_PTR_DEFINES, VK_VERSION_1_0

## Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

## Copyright

Copyright 2014-2025 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0