Class VkAabbPositionsKHR

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

public class VkAabbPositionsKHR extends Struct<VkAabbPositionsKHR> implements NativeResource

 struct VkAabbPositionsKHR {
     float minX;
     float minY;
     float minZ;
     float maxX;
     float maxY;
     float maxZ;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MINX
      The struct member offsets.
    • MINY

      public static final int MINY
      The struct member offsets.
    • MINZ

      public static final int MINZ
      The struct member offsets.
    • MAXX

      public static final int MAXX
      The struct member offsets.
    • MAXY

      public static final int MAXY
      The struct member offsets.
    • MAXZ

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

    • VkAabbPositionsKHR

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

      public float minX()
      Returns:
      the value of the minX field.
    • minY

      public float minY()
      Returns:
      the value of the minY field.
    • minZ

      public float minZ()
      Returns:
      the value of the minZ field.
    • maxX

      public float maxX()
      Returns:
      the value of the maxX field.
    • maxY

      public float maxY()
      Returns:
      the value of the maxY field.
    • maxZ

      public float maxZ()
      Returns:
      the value of the maxZ field.
    • minX

      public VkAabbPositionsKHR minX(float value)
      Sets the specified value to the minX field.
    • minY

      public VkAabbPositionsKHR minY(float value)
      Sets the specified value to the minY field.
    • minZ

      public VkAabbPositionsKHR minZ(float value)
      Sets the specified value to the minZ field.
    • maxX

      public VkAabbPositionsKHR maxX(float value)
      Sets the specified value to the maxX field.
    • maxY

      public VkAabbPositionsKHR maxY(float value)
      Sets the specified value to the maxY field.
    • maxZ

      public VkAabbPositionsKHR maxZ(float value)
      Sets the specified value to the maxZ field.
    • set

      public VkAabbPositionsKHR set(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
      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 VkAabbPositionsKHR malloc()
      Returns a new VkAabbPositionsKHR instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static float nminX(long struct)
      Unsafe version of minX().
    • nminY

      public static float nminY(long struct)
      Unsafe version of minY().
    • nminZ

      public static float nminZ(long struct)
      Unsafe version of minZ().
    • nmaxX

      public static float nmaxX(long struct)
      Unsafe version of maxX().
    • nmaxY

      public static float nmaxY(long struct)
      Unsafe version of maxY().
    • nmaxZ

      public static float nmaxZ(long struct)
      Unsafe version of maxZ().
    • nminX

      public static void nminX(long struct, float value)
      Unsafe version of minX.
    • nminY

      public static void nminY(long struct, float value)
      Unsafe version of minY.
    • nminZ

      public static void nminZ(long struct, float value)
      Unsafe version of minZ.
    • nmaxX

      public static void nmaxX(long struct, float value)
      Unsafe version of maxX.
    • nmaxY

      public static void nmaxY(long struct, float value)
      Unsafe version of maxY.
    • nmaxZ

      public static void nmaxZ(long struct, float value)
      Unsafe version of maxZ.