Class VkMemoryUnmapInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
Direct Known Subclasses:
VkMemoryUnmapInfoKHR

public class VkMemoryUnmapInfo extends Struct<VkMemoryUnmapInfo> implements NativeResource

 struct VkMemoryUnmapInfo {
     VkStructureType sType;
     void const * pNext;
     VkMemoryUnmapFlags flags;
     VkDeviceMemory memory;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • MEMORY

      public static final int MEMORY
      The struct member offsets.
  • Constructor Details

    • VkMemoryUnmapInfo

      public VkMemoryUnmapInfo(ByteBuffer container)
      Creates a VkMemoryUnmapInfo 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkMemoryUnmapInfo>
    • sType

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

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

      public int flags()
      Returns:
      the value of the flags field.
    • memory

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

      public VkMemoryUnmapInfo sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkMemoryUnmapInfo sType$Default()
      Sets the STRUCTURE_TYPE_MEMORY_UNMAP_INFO value to the sType field.
    • pNext

      public VkMemoryUnmapInfo pNext(long value)
      Sets the specified value to the pNext field.
    • flags

      public VkMemoryUnmapInfo flags(int value)
      Sets the specified value to the flags field.
    • memory

      public VkMemoryUnmapInfo memory(long value)
      Sets the specified value to the memory field.
    • set

      public VkMemoryUnmapInfo set(int sType, long pNext, int flags, long memory)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

      public static VkMemoryUnmapInfo create(long address)
      Returns a new VkMemoryUnmapInfo instance for the specified memory address.
    • createSafe

      public static @Nullable VkMemoryUnmapInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkMemoryUnmapInfo.Buffer malloc(int capacity)
      Returns a new VkMemoryUnmapInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkMemoryUnmapInfo.Buffer calloc(int capacity)
      Returns a new VkMemoryUnmapInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkMemoryUnmapInfo.Buffer create(int capacity)
      Returns a new VkMemoryUnmapInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkMemoryUnmapInfo.Buffer create(long address, int capacity)
      Create a VkMemoryUnmapInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkMemoryUnmapInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

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

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

      public static VkMemoryUnmapInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkMemoryUnmapInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkMemoryUnmapInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkMemoryUnmapInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      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().
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().
    • nmemory

      public static long nmemory(long struct)
      Unsafe version of memory().
    • 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.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • nmemory

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