Class VkDeviceOrHostAddressKHR

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • DEVICEADDRESS, HOSTADDRESS

        The struct member offsets.
    • Constructor Detail

      • VkDeviceOrHostAddressKHR

        public VkDeviceOrHostAddressKHR​(java.nio.ByteBuffer container)
        Creates a VkDeviceOrHostAddressKHR 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.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • hostAddress

        public long hostAddress()
        a host memory address.
      • malloc

        public static VkDeviceOrHostAddressKHR malloc()
        Returns a new VkDeviceOrHostAddressKHR instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkDeviceOrHostAddressKHR calloc()
        Returns a new VkDeviceOrHostAddressKHR instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkDeviceOrHostAddressKHR create()
        Returns a new VkDeviceOrHostAddressKHR instance allocated with BufferUtils.
      • create

        public static VkDeviceOrHostAddressKHR create​(long address)
        Returns a new VkDeviceOrHostAddressKHR instance for the specified memory address.
      • malloc

        public static VkDeviceOrHostAddressKHR malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkDeviceOrHostAddressKHR instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkDeviceOrHostAddressKHR calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkDeviceOrHostAddressKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkDeviceOrHostAddressKHR.Buffer calloc​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new VkDeviceOrHostAddressKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ndeviceAddress

        public static long ndeviceAddress​(long struct)
        Unsafe version of deviceAddress().
      • nhostAddress

        public static long nhostAddress​(long struct)
        Unsafe version of hostAddress().
      • ndeviceAddress

        public static void ndeviceAddress​(long struct,
                                          long value)
        Unsafe version of deviceAddress.
      • nhostAddress

        public static void nhostAddress​(long struct,
                                        long value)
        Unsafe version of hostAddress.