Class VkImportMemoryWin32HandleInfoNV

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VkImportMemoryWin32HandleInfoNV
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    import Win32 memory created on the same physical device.
    Description

    If handleType is 0, this structure is ignored by consumers of the VkMemoryAllocateInfo structure it is chained from.

    Valid Usage
    • handleType must not have more than one bit set.
    • handle must be a valid handle to memory, obtained as specified by handleType.
    Valid Usage (Implicit)

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • handleType – 0 or a VkExternalMemoryHandleTypeFlagBitsNV value specifying the type of memory handle in handle.
    • handle – a Windows HANDLE referring to the memory.

    Layout

    
     struct VkImportMemoryWin32HandleInfoNV {
         VkStructureType sType;
         void const * pNext;
         VkExternalMemoryHandleTypeFlagsNV handleType;
         HANDLE handle;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, HANDLETYPE, HANDLE

        The struct member offsets.
    • Constructor Detail

      • VkImportMemoryWin32HandleInfoNV

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

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • handleType

        public int handleType()
        Returns the value of the handleType field.
      • handle

        public long handle()
        Returns the value of the handle field.
      • set

        public VkImportMemoryWin32HandleInfoNV set​(int sType,
                                                   long pNext,
                                                   int handleType,
                                                   long handle)
        Initializes this struct with the specified values.
      • malloc

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

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

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

        public static VkImportMemoryWin32HandleInfoNV mallocStack()
        Returns a new VkImportMemoryWin32HandleInfoNV instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkImportMemoryWin32HandleInfoNV callocStack()
        Returns a new VkImportMemoryWin32HandleInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

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

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nhandleType

        public static int nhandleType​(long struct)
        Unsafe version of handleType().
      • nhandle

        public static long nhandle​(long struct)
        Unsafe version of handle().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • nhandleType

        public static void nhandleType​(long struct,
                                       int value)
        Unsafe version of handleType.
      • nhandle

        public static void nhandle​(long struct,
                                   long value)
        Unsafe version of handle.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate
      • validate

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array