Class VkMicromapCreateInfoEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkMicromapCreateInfoEXT extends Struct<VkMicromapCreateInfoEXT> implements NativeResource

 struct VkMicromapCreateInfoEXT {
     VkStructureType sType;
     void const * pNext;
     VkMicromapCreateFlagsEXT createFlags;
     VkBuffer buffer;
     VkDeviceSize offset;
     VkDeviceSize size;
     VkMicromapTypeEXT type;
     VkDeviceAddress deviceAddress;
 }
  • 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.
    • CREATEFLAGS

      public static final int CREATEFLAGS
      The struct member offsets.
    • BUFFER

      public static final int BUFFER
      The struct member offsets.
    • OFFSET

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

      public static final int SIZE
      The struct member offsets.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • DEVICEADDRESS

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

    • VkMicromapCreateInfoEXT

      public VkMicromapCreateInfoEXT(ByteBuffer container)
      Creates a VkMicromapCreateInfoEXT 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<VkMicromapCreateInfoEXT>
    • sType

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

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

      public int createFlags()
      Returns:
      the value of the createFlags field.
    • buffer

      public long buffer()
      Returns:
      the value of the buffer field.
    • offset

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

      public long size()
      Returns:
      the value of the size field.
    • type

      public int type()
      Returns:
      the value of the type field.
    • deviceAddress

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

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

      public VkMicromapCreateInfoEXT sType$Default()
      Sets the STRUCTURE_TYPE_MICROMAP_CREATE_INFO_EXT value to the sType field.
    • pNext

      public VkMicromapCreateInfoEXT pNext(long value)
      Sets the specified value to the pNext field.
    • createFlags

      public VkMicromapCreateInfoEXT createFlags(int value)
      Sets the specified value to the createFlags field.
    • buffer

      public VkMicromapCreateInfoEXT buffer(long value)
      Sets the specified value to the buffer field.
    • offset

      public VkMicromapCreateInfoEXT offset(long value)
      Sets the specified value to the offset field.
    • size

      public VkMicromapCreateInfoEXT size(long value)
      Sets the specified value to the size field.
    • type

      public VkMicromapCreateInfoEXT type(int value)
      Sets the specified value to the type field.
    • deviceAddress

      public VkMicromapCreateInfoEXT deviceAddress(long value)
      Sets the specified value to the deviceAddress field.
    • set

      public VkMicromapCreateInfoEXT set(int sType, long pNext, int createFlags, long buffer, long offset, long size, int type, long deviceAddress)
      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 VkMicromapCreateInfoEXT malloc()
      Returns a new VkMicromapCreateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkMicromapCreateInfoEXT.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkMicromapCreateInfoEXT.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().
    • ncreateFlags

      public static int ncreateFlags(long struct)
      Unsafe version of createFlags().
    • nbuffer

      public static long nbuffer(long struct)
      Unsafe version of buffer().
    • noffset

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

      public static long nsize(long struct)
      Unsafe version of size().
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • ndeviceAddress

      public static long ndeviceAddress(long struct)
      Unsafe version of deviceAddress().
    • 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.
    • ncreateFlags

      public static void ncreateFlags(long struct, int value)
      Unsafe version of createFlags.
    • nbuffer

      public static void nbuffer(long struct, long value)
      Unsafe version of buffer.
    • noffset

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

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

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • ndeviceAddress

      public static void ndeviceAddress(long struct, long value)
      Unsafe version of deviceAddress.