Class VkMemoryGetWin32HandleInfoKHR

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

    public class VkMemoryGetWin32HandleInfoKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure describing a Win32 handle semaphore export operation.
    Description

    The properties of the handle returned depend on the value of handleType. See VkExternalMemoryHandleTypeFlagBits for a description of the properties of the defined external memory handle types.

    Valid Usage
    • handleType must have been included in VkExportMemoryAllocateInfo::handleTypes when memory was created.
    • If handleType is defined as an NT handle, GetMemoryWin32HandleKHR must be called no more than once for each valid unique combination of memory and handleType.
    • handleType must be defined as an NT handle or a global share handle.
    Valid Usage (Implicit)
    See Also

    GetMemoryWin32HandleKHR

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • memory – the memory object from which the handle will be exported.
    • handleType – the type of handle requested.

    Layout

    
     struct VkMemoryGetWin32HandleInfoKHR {
         VkStructureType sType;
         void const * pNext;
         VkDeviceMemory memory;
         VkExternalMemoryHandleTypeFlagBits handleType;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

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

        The struct member offsets.
    • Constructor Detail

      • VkMemoryGetWin32HandleInfoKHR

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

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

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

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

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

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

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

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

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

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

        public static VkMemoryGetWin32HandleInfoKHR callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkMemoryGetWin32HandleInfoKHR 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().
      • nmemory

        public static long nmemory​(long struct)
        Unsafe version of memory().
      • nhandleType

        public static int nhandleType​(long struct)
        Unsafe version of handleType().
      • 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.
      • nmemory

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

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