Class VkMemoryMapPlacedInfoEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkMemoryMapPlacedInfoEXT>
org.lwjgl.vulkan.VkMemoryMapPlacedInfoEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkMemoryMapPlacedInfoEXT extends org.lwjgl.system.Struct<VkMemoryMapPlacedInfoEXT> implements org.lwjgl.system.NativeResource
Structure containing memory map placement parameters.
Valid Usage
Valid Usage (Implicit)

Layout


 struct VkMemoryMapPlacedInfoEXT {
     VkStructureType sType();
     void const * pNext();
     void * pPlacedAddress();
 }
  • 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.
    • PPLACEDADDRESS

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

    • VkMemoryMapPlacedInfoEXT

      public VkMemoryMapPlacedInfoEXT(ByteBuffer container)
      Creates a VkMemoryMapPlacedInfoEXT 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkMemoryMapPlacedInfoEXT>
    • sType

      public int sType()
      a VkStructureType value identifying this structure.
    • pNext

      public long pNext()
      NULL or a pointer to a structure extending this structure.
    • pPlacedAddress

      public long pPlacedAddress()
      the virtual address at which to place the address. If VkMemoryMapInfo::flags does not contain MEMORY_MAP_PLACED_BIT_EXT, this value is ignored.
    • sType

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

      public VkMemoryMapPlacedInfoEXT sType$Default()
    • pNext

      public VkMemoryMapPlacedInfoEXT pNext(long value)
      Sets the specified value to the pNext() field.
    • pPlacedAddress

      public VkMemoryMapPlacedInfoEXT pPlacedAddress(long value)
      Sets the specified value to the pPlacedAddress() field.
    • set

      public VkMemoryMapPlacedInfoEXT set(int sType, long pNext, long pPlacedAddress)
      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 VkMemoryMapPlacedInfoEXT malloc()
      Returns a new VkMemoryMapPlacedInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkMemoryMapPlacedInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkMemoryMapPlacedInfoEXT.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().
    • npPlacedAddress

      public static long npPlacedAddress(long struct)
      Unsafe version of pPlacedAddress().
    • 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.
    • npPlacedAddress

      public static void npPlacedAddress(long struct, long value)
      Unsafe version of pPlacedAddress.