Class VkMemoryMapInfo

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

public class VkMemoryMapInfo extends Struct<VkMemoryMapInfo> implements NativeResource

 struct VkMemoryMapInfo {
     VkStructureType sType;
     void const * pNext;
     VkMemoryMapFlags flags;
     VkDeviceMemory memory;
     VkDeviceSize offset;
     VkDeviceSize size;
 }
  • Field Details Link icon

    • SIZEOF Link icon

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

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

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

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

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

      public static final int MEMORY
      The struct member offsets.
    • OFFSET Link icon

      public static final int OFFSET
      The struct member offsets.
    • SIZE Link icon

      public static final int SIZE
      The struct member offsets.
  • Constructor Details Link icon

    • VkMemoryMapInfo Link icon

      public VkMemoryMapInfo(ByteBuffer container)
      Creates a VkMemoryMapInfo 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 Link icon

    • sizeof Link icon

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

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

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

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

      public long memory()
      Returns:
      the value of the memory field.
    • offset Link icon

      public long offset()
      Returns:
      the value of the offset field.
    • size Link icon

      public long size()
      Returns:
      the value of the size field.
    • sType Link icon

      public VkMemoryMapInfo sType(int value)
      Sets the specified value to the sType field.
    • sType$Default Link icon

      public VkMemoryMapInfo sType$Default()
      Sets the STRUCTURE_TYPE_MEMORY_MAP_INFO value to the sType field.
    • pNext Link icon

      public VkMemoryMapInfo pNext(long value)
      Sets the specified value to the pNext field.
    • pNext Link icon

      Prepends the specified VkMemoryMapPlacedInfoEXT value to the pNext chain.
    • flags Link icon

      public VkMemoryMapInfo flags(int value)
      Sets the specified value to the flags field.
    • memory Link icon

      public VkMemoryMapInfo memory(long value)
      Sets the specified value to the memory field.
    • offset Link icon

      public VkMemoryMapInfo offset(long value)
      Sets the specified value to the offset field.
    • size Link icon

      public VkMemoryMapInfo size(long value)
      Sets the specified value to the size field.
    • set Link icon

      public VkMemoryMapInfo set(int sType, long pNext, int flags, long memory, long offset, long size)
      Initializes this struct with the specified values.
    • set Link icon

      public VkMemoryMapInfo set(VkMemoryMapInfo src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc Link icon

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

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

      public static VkMemoryMapInfo create()
      Returns a new VkMemoryMapInfo instance allocated with BufferUtils.
    • create Link icon

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

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

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

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

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

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

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

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

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

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

      public static VkMemoryMapInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkMemoryMapInfo.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 Link icon

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

      public static long npNext(long struct)
      Unsafe version of pNext().
    • nflags Link icon

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

      public static long nmemory(long struct)
      Unsafe version of memory().
    • noffset Link icon

      public static long noffset(long struct)
      Unsafe version of offset().
    • nsize Link icon

      public static long nsize(long struct)
      Unsafe version of size().
    • nsType Link icon

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

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • nflags Link icon

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

      public static void nmemory(long struct, long value)
      Unsafe version of memory.
    • noffset Link icon

      public static void noffset(long struct, long value)
      Unsafe version of offset.
    • nsize Link icon

      public static void nsize(long struct, long value)
      Unsafe version of size.