Class VkGeometryNV

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkGeometryNV>
org.lwjgl.vulkan.VkGeometryNV
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkGeometryNV extends org.lwjgl.system.Struct<VkGeometryNV> implements org.lwjgl.system.NativeResource
Structure specifying a geometry in a bottom-level acceleration structure.
Valid Usage
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_GEOMETRY_NV
  • pNext must be NULL
  • geometryType must be a valid VkGeometryTypeKHR value
  • geometry must be a valid VkGeometryDataNV structure
  • flags must be a valid combination of VkGeometryFlagBitsKHR values
See Also

VkAccelerationStructureInfoNV, VkGeometryDataNV

Layout


 struct VkGeometryNV {
     VkStructureType sType();
     void const * pNext();
     VkGeometryTypeKHR geometryType();
     VkGeometryDataNV geometry();
     VkGeometryFlagsKHR flags();
 }
  • 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.
    • GEOMETRYTYPE

      public static final int GEOMETRYTYPE
      The struct member offsets.
    • GEOMETRY

      public static final int GEOMETRY
      The struct member offsets.
    • FLAGS

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

    • VkGeometryNV

      public VkGeometryNV(ByteBuffer container)
      Creates a VkGeometryNV 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkGeometryNV>
    • sType

      public int sType()
      a VkStructureType value identifying this structure.
    • pNext

      public long pNext()
      NULL or a pointer to a structure extending this structure.
    • geometryType

      public int geometryType()
      specifies the VkGeometryTypeKHR which this geometry refers to.
    • geometry

      public VkGeometryDataNV geometry()
      contains the geometry data as described in VkGeometryDataNV.
    • flags

      public int flags()
      has VkGeometryFlagBitsKHR describing options for this geometry.
    • sType

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

      public VkGeometryNV sType$Default()
      Sets the STRUCTURE_TYPE_GEOMETRY_NV value to the sType() field.
    • pNext

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

      public VkGeometryNV geometryType(int value)
      Sets the specified value to the geometryType() field.
    • geometry

      public VkGeometryNV geometry(VkGeometryDataNV value)
      Copies the specified VkGeometryDataNV to the geometry() field.
    • geometry

      public VkGeometryNV geometry(Consumer<VkGeometryDataNV> consumer)
      Passes the geometry() field to the specified Consumer.
    • flags

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

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

      public VkGeometryNV set(VkGeometryNV src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkGeometryNV malloc()
      Returns a new VkGeometryNV instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static VkGeometryNV mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkGeometryNV callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

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

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

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

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

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

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

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

      public static VkGeometryNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkGeometryNV.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().
    • ngeometryType

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

      public static VkGeometryDataNV ngeometry(long struct)
      Unsafe version of geometry().
    • 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.
    • ngeometry

      public static void ngeometry(long struct, VkGeometryDataNV value)
      Unsafe version of geometry.
    • nflags

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