Class VkGeometryAABBNV

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkGeometryAABBNV extends Struct<VkGeometryAABBNV> implements NativeResource

 struct VkGeometryAABBNV {
     VkStructureType sType;
     void const * pNext;
     VkBuffer aabbData;
     uint32_t numAABBs;
     uint32_t stride;
     VkDeviceSize offset;
 }
  • 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.
    • AABBDATA

      public static final int AABBDATA
      The struct member offsets.
    • NUMAABBS

      public static final int NUMAABBS
      The struct member offsets.
    • STRIDE

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

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

    • VkGeometryAABBNV

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

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

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

      public long aabbData()
      Returns:
      the value of the aabbData field.
    • numAABBs

      public int numAABBs()
      Returns:
      the value of the numAABBs field.
    • stride

      public int stride()
      Returns:
      the value of the stride field.
    • offset

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

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

      public VkGeometryAABBNV sType$Default()
      Sets the STRUCTURE_TYPE_GEOMETRY_AABB_NV value to the sType field.
    • pNext

      public VkGeometryAABBNV pNext(long value)
      Sets the specified value to the pNext field.
    • aabbData

      public VkGeometryAABBNV aabbData(long value)
      Sets the specified value to the aabbData field.
    • numAABBs

      public VkGeometryAABBNV numAABBs(int value)
      Sets the specified value to the numAABBs field.
    • stride

      public VkGeometryAABBNV stride(int value)
      Sets the specified value to the stride field.
    • offset

      public VkGeometryAABBNV offset(long value)
      Sets the specified value to the offset field.
    • set

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static VkGeometryAABBNV mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkGeometryAABBNV callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkGeometryAABBNV mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkGeometryAABBNV callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkGeometryAABBNV.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkGeometryAABBNV.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkGeometryAABBNV.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkGeometryAABBNV.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

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

      public static long naabbData(long struct)
      Unsafe version of aabbData().
    • nnumAABBs

      public static int nnumAABBs(long struct)
      Unsafe version of numAABBs().
    • nstride

      public static int nstride(long struct)
      Unsafe version of stride().
    • noffset

      public static long noffset(long struct)
      Unsafe version of offset().
    • 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.
    • naabbData

      public static void naabbData(long struct, long value)
      Unsafe version of aabbData.
    • nnumAABBs

      public static void nnumAABBs(long struct, int value)
      Unsafe version of numAABBs.
    • nstride

      public static void nstride(long struct, int value)
      Unsafe version of stride.
    • noffset

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