Class VkGeometryNV

    • 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

      • VkGeometryNV

        public VkGeometryNV​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        the type of 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.
      • 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.
      • pNext

        public VkGeometryNV pNext​(long value)
        Sets the specified value to the pNext() field.
      • 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

        @Nullable
        public static 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​(long address,
                                                 int capacity)
        Create a VkGeometryNV.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static VkGeometryNV.Buffer createSafe​(long address,
                                                     int capacity)
        Like create, but returns null if address is NULL.
      • 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.
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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.