public class VkGeometryNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_GEOMETRY_NVpNext must be NULLgeometryType must be a valid VkGeometryTypeNV valuegeometry must be a valid VkGeometryDataNV structureflags must be a valid combination of VkGeometryFlagBitsNV valuesVkAccelerationStructureInfoNV, VkGeometryDataNV
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.geometryType – describes which type of geometry this VkGeometryNV refers to.geometry – contains the geometry data as described in VkGeometryDataNV.flags – has flags describing options for this geometry.
struct VkGeometryNV {
VkStructureType sType;
void const * pNext;
VkGeometryTypeNV geometryType;
VkGeometryDataNV geometry;
VkGeometryFlagsNV flags;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkGeometryNV.Buffer
An array of
VkGeometryNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
GEOMETRY
The struct member offsets.
|
static int |
GEOMETRYTYPE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkGeometryNV(java.nio.ByteBuffer container)
Creates a
VkGeometryNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkGeometryNV |
calloc()
Returns a new
VkGeometryNV instance allocated with memCalloc. |
static VkGeometryNV.Buffer |
calloc(int capacity)
Returns a new
VkGeometryNV.Buffer instance allocated with memCalloc. |
static VkGeometryNV |
callocStack()
Returns a new
VkGeometryNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGeometryNV.Buffer |
callocStack(int capacity)
Returns a new
VkGeometryNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGeometryNV.Buffer |
callocStack(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. |
static VkGeometryNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkGeometryNV |
create()
Returns a new
VkGeometryNV instance allocated with BufferUtils. |
static VkGeometryNV.Buffer |
create(int capacity)
Returns a new
VkGeometryNV.Buffer instance allocated with BufferUtils. |
static VkGeometryNV |
create(long address)
Returns a new
VkGeometryNV instance for the specified memory address. |
static VkGeometryNV.Buffer |
create(long address,
int capacity)
Create a
VkGeometryNV.Buffer instance at the specified memory. |
static VkGeometryNV |
createSafe(long address)
|
static VkGeometryNV.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkGeometryNV |
flags(int value)
Sets the specified value to the
flags field. |
VkGeometryDataNV |
geometry()
Returns a
VkGeometryDataNV view of the geometry field. |
VkGeometryNV |
geometry(java.util.function.Consumer<VkGeometryDataNV> consumer)
Passes the
geometry field to the specified Consumer. |
VkGeometryNV |
geometry(VkGeometryDataNV value)
Copies the specified
VkGeometryDataNV to the geometry field. |
int |
geometryType()
Returns the value of the
geometryType field. |
VkGeometryNV |
geometryType(int value)
Sets the specified value to the
geometryType field. |
static VkGeometryNV |
malloc()
Returns a new
VkGeometryNV instance allocated with memAlloc. |
static VkGeometryNV.Buffer |
malloc(int capacity)
Returns a new
VkGeometryNV.Buffer instance allocated with memAlloc. |
static VkGeometryNV |
mallocStack()
Returns a new
VkGeometryNV instance allocated on the thread-local MemoryStack. |
static VkGeometryNV.Buffer |
mallocStack(int capacity)
Returns a new
VkGeometryNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkGeometryNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryNV.Buffer instance allocated on the specified MemoryStack. |
static VkGeometryNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryNV instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkGeometryDataNV |
ngeometry(long struct)
Unsafe version of
geometry(). |
static void |
ngeometry(long struct,
VkGeometryDataNV value)
Unsafe version of
geometry. |
static int |
ngeometryType(long struct)
Unsafe version of
geometryType(). |
static void |
ngeometryType(long struct,
int value)
Unsafe version of
geometryType. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkGeometryNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkGeometryNV |
set(int sType,
long pNext,
int geometryType,
VkGeometryDataNV geometry,
int flags)
Initializes this struct with the specified values.
|
VkGeometryNV |
set(VkGeometryNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkGeometryNV |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int GEOMETRYTYPE
public static final int GEOMETRY
public static final int FLAGS
public VkGeometryNV(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int geometryType()
geometryType field.public VkGeometryDataNV geometry()
VkGeometryDataNV view of the geometry field.public int flags()
flags field.public VkGeometryNV sType(int value)
sType field.public VkGeometryNV pNext(long value)
pNext field.public VkGeometryNV geometryType(int value)
geometryType field.public VkGeometryNV geometry(VkGeometryDataNV value)
VkGeometryDataNV to the geometry field.public VkGeometryNV geometry(java.util.function.Consumer<VkGeometryDataNV> consumer)
geometry field to the specified Consumer.public VkGeometryNV flags(int value)
flags field.public VkGeometryNV set(int sType, long pNext, int geometryType, VkGeometryDataNV geometry, int flags)
public VkGeometryNV set(VkGeometryNV src)
src - the source structpublic static VkGeometryNV malloc()
VkGeometryNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkGeometryNV calloc()
VkGeometryNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkGeometryNV create()
VkGeometryNV instance allocated with BufferUtils.public static VkGeometryNV create(long address)
VkGeometryNV instance for the specified memory address.@Nullable public static VkGeometryNV createSafe(long address)
public static VkGeometryNV.Buffer malloc(int capacity)
VkGeometryNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGeometryNV.Buffer calloc(int capacity)
VkGeometryNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGeometryNV.Buffer create(int capacity)
VkGeometryNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkGeometryNV.Buffer create(long address, int capacity)
VkGeometryNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkGeometryNV.Buffer createSafe(long address, int capacity)
public static VkGeometryNV mallocStack()
VkGeometryNV instance allocated on the thread-local MemoryStack.public static VkGeometryNV callocStack()
VkGeometryNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkGeometryNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkGeometryNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkGeometryNV callocStack(org.lwjgl.system.MemoryStack stack)
VkGeometryNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkGeometryNV.Buffer mallocStack(int capacity)
VkGeometryNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkGeometryNV.Buffer callocStack(int capacity)
VkGeometryNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkGeometryNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGeometryNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkGeometryNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGeometryNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int ngeometryType(long struct)
geometryType().public static VkGeometryDataNV ngeometry(long struct)
geometry().public static int nflags(long struct)
flags().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ngeometryType(long struct,
int value)
geometryType.public static void ngeometry(long struct,
VkGeometryDataNV value)
geometry.public static void nflags(long struct,
int value)
flags.Copyright LWJGL. All Rights Reserved. License terms.