Class VkGeometryNVX

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

    public class VkGeometryNVX
    extends Struct
    implements NativeResource
    Structure specifying a geometry in a bottom-level acceleration structure.
    Description
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_GEOMETRY_NVX
    • pNext must be NULL
    • geometryType must be a valid VkGeometryTypeNVX value
    • geometry must be a valid VkGeometryDataNVX structure
    • flags must be a valid combination of VkGeometryFlagBitsNVX values
    See Also

    VkAccelerationStructureCreateInfoNVX, VkGeometryDataNVX, CmdBuildAccelerationStructureNVX

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • geometryType – describes which type of geometry this VkGeometryNVX refers to.
    • geometry – contains the geometry data.
    • flags – has flags describing options for this geometry.

    Layout

    
     struct VkGeometryNVX {
         VkStructureType sType;
         void const * pNext;
         VkGeometryTypeNVX geometryType;
         VkGeometryDataNVX geometry;
         VkGeometryFlagsNVX flags;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, GEOMETRYTYPE, GEOMETRY, FLAGS

        The struct member offsets.
    • Constructor Detail

      • VkGeometryNVX

        public VkGeometryNVX​(java.nio.ByteBuffer container)
        Creates a VkGeometryNVX 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.
      • geometryType

        public int geometryType()
        Returns the value of the geometryType field.
      • geometry

        public VkGeometryNVX geometry​(java.util.function.Consumer<VkGeometryDataNVX> consumer)
        Passes the geometry field to the specified Consumer.
      • flags

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

        public VkGeometryNVX sType​(int value)
        Sets the specified value to the sType field.
      • pNext

        public VkGeometryNVX pNext​(long value)
        Sets the specified value to the pNext field.
      • geometryType

        public VkGeometryNVX geometryType​(int value)
        Sets the specified value to the geometryType field.
      • flags

        public VkGeometryNVX flags​(int value)
        Sets the specified value to the flags field.
      • set

        public VkGeometryNVX set​(int sType,
                                 long pNext,
                                 int geometryType,
                                 VkGeometryDataNVX geometry,
                                 int flags)
        Initializes this struct with the specified values.
      • set

        public VkGeometryNVX set​(VkGeometryNVX src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • create

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

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

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

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

        public static VkGeometryNVX callocStack​(MemoryStack stack)
        Returns a new VkGeometryNVX instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        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().
      • ngeometryType

        public static int ngeometryType​(long struct)
        Unsafe version of geometryType().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • 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.
      • ngeometryType

        public static void ngeometryType​(long struct,
                                         int value)
        Unsafe version of geometryType.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.