Class VkGeometryNV

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkGeometryNV extends Struct<VkGeometryNV> implements NativeResource

 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkGeometryNV>
    • 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 VkGeometryDataNV geometry()
      Returns:
      a VkGeometryDataNV view of the geometry field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • 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.
    • malloc

      public static VkGeometryNV malloc(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(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, 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, 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.