Class VkPhysicalDeviceIDProperties

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer
    Direct Known Subclasses:
    VkPhysicalDeviceIDPropertiesKHR

    public class VkPhysicalDeviceIDProperties
    extends Struct
    implements NativeResource
    Structure specifying IDs related to the physical device.
    Description

    deviceUUID must be immutable for a given device across instances, processes, driver APIs, driver versions, and system reboots.

    Applications can compare the driverUUID value across instance and process boundaries, and can make similar queries in external APIs to determine whether they are capable of sharing memory objects and resources using them with the device.

    deviceUUID and/or driverUUID must be used to determine whether a particular external object can be shared between driver components, where such a restriction exists as defined in the compatibility table for the particular object type:

    If deviceLUIDValid is FALSE, the values of deviceLUID and deviceNodeMask are undefined. If deviceLUIDValid is TRUE and Vulkan is running on the Windows operating system, the contents of deviceLUID can be cast to an LUID object and must be equal to the locally unique identifier of a IDXGIAdapter1 object that corresponds to physicalDevice. If deviceLUIDValid is TRUE, deviceNodeMask must contain exactly one bit. If Vulkan is running on an operating system that supports the Direct3D 12 API and physicalDevice corresponds to an individual device in a linked device adapter, deviceNodeMask identifies the Direct3D 12 node corresponding to physicalDevice. Otherwise, deviceNodeMask must be 1.

    Note

    Although they have identical descriptions, VkPhysicalDeviceIDProperties::deviceUUID may differ from VkPhysicalDeviceProperties2::pipelineCacheUUID. The former is intended to identify and correlate devices across API and driver boundaries, while the latter is used to identify a compatible device and driver combination to use when serializing and de-serializing pipeline state.

    Note

    While VkPhysicalDeviceIDProperties::deviceUUID is specified to remain consistent across driver versions and system reboots, it is not intended to be usable as a serializable persistent identifier for a device. It may change when a device is physically added to, removed from, or moved to a different connector in a system while that system is powered down. Further, there is no reasonable way to verify with conformance testing that a given device retains the same UUID in a given system across all driver versions supported in that system. While implementations should make every effort to report consistent device UUIDs across driver versions, applications should avoid relying on the persistence of this value for uses other than identifying compatible devices for external object sharing purposes.

    Valid Usage (Implicit)

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • deviceUUID[VK_UUID_SIZE] – an array of size UUID_SIZE, containing 8-bit values that represent a universally unique identifier for the device.
    • driverUUID[VK_UUID_SIZE] – an array of size UUID_SIZE, containing 8-bit values that represent a universally unique identifier for the driver build in use by the device.
    • deviceLUID[VK_LUID_SIZE] – an array of size LUID_SIZE, containing 8-bit values that represent a locally unique identifier for the device.
    • deviceNodeMask – a bitfield identifying the node within a linked device adapter corresponding to the device.
    • deviceLUIDValid – a boolean value that will be TRUE if deviceLUID contains a valid LUID and deviceNodeMask contains a valid node mask, and FALSE if they do not.

    Layout

    
     struct VkPhysicalDeviceIDProperties {
         VkStructureType sType;
         void * pNext;
         uint8_t deviceUUID[VK_UUID_SIZE];
         uint8_t driverUUID[VK_UUID_SIZE];
         uint8_t deviceLUID[VK_LUID_SIZE];
         uint32_t deviceNodeMask;
         VkBool32 deviceLUIDValid;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, DEVICEUUID, DRIVERUUID, DEVICELUID, DEVICENODEMASK, DEVICELUIDVALID

        The struct member offsets.
    • Constructor Detail

      • VkPhysicalDeviceIDProperties

        public VkPhysicalDeviceIDProperties​(java.nio.ByteBuffer container)
        Creates a VkPhysicalDeviceIDProperties instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.