Class VkGeometryAABBNVX

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkGeometryAABBNVX
    extends Struct
    implements NativeResource
    Structure specifying axis-aligned bounding box geometry in a bottom-level acceleration structure.
    Description
    Valid Usage (Implicit)
    See Also

    VkGeometryDataNVX

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • aabbData – the buffer containing axis-aligned bounding box data
    • numAABBs – the number of AABBs in this geometry.
    • stride – the stride in bytes between AABBs in aabbData.
    • offset – the offset in bytes of the first AABB in aabbData.

    Layout

    
     struct VkGeometryAABBNVX {
         VkStructureType sType;
         void const * pNext;
         VkBuffer aabbData;
         uint32_t numAABBs;
         uint32_t stride;
         VkDeviceSize offset;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, AABBDATA, NUMAABBS, STRIDE, OFFSET

        The struct member offsets.
    • Constructor Detail

      • VkGeometryAABBNVX

        public VkGeometryAABBNVX​(java.nio.ByteBuffer container)
        Creates a VkGeometryAABBNVX 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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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 VkGeometryAABBNVX sType​(int value)
        Sets the specified value to the sType field.
      • pNext

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

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

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

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

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

        public VkGeometryAABBNVX set​(int sType,
                                     long pNext,
                                     long aabbData,
                                     int numAABBs,
                                     int stride,
                                     long offset)
        Initializes this struct with the specified values.
      • createSafe

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

        @Nullable
        public static VkGeometryAABBNVX.Buffer createSafe​(long address,
                                                          int capacity)
        Like create, but returns null if address is NULL.
      • 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.