Class VkExportMemoryAllocateInfoNV

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

    public class VkExportMemoryAllocateInfoNV
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Specify memory handle types that may be exported.
    Valid Usage (Implicit)

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • handleTypes – a bitmask of VkExternalMemoryHandleTypeFlagBitsNV specifying one or more memory handle types that may be exported. Multiple handle types may be requested for the same allocation as long as they are compatible, as reported by GetPhysicalDeviceExternalImageFormatPropertiesNV.

    Layout

    
     struct VkExportMemoryAllocateInfoNV {
         VkStructureType sType;
         void const * pNext;
         VkExternalMemoryHandleTypeFlagsNV handleTypes;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, HANDLETYPES

        The struct member offsets.
    • Constructor Detail

      • VkExportMemoryAllocateInfoNV

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

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

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

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

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

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

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

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

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

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

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

        public static VkExportMemoryAllocateInfoNV.Buffer callocStack​(int capacity,
                                                                      org.lwjgl.system.MemoryStack stack)
        Returns a new VkExportMemoryAllocateInfoNV.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
      • nsType

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

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

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

        public static void nhandleTypes​(long struct,
                                        int value)
        Unsafe version of handleTypes.