Package org.lwjgl.vulkan
Class VkGeometryNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkGeometryNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkGeometryNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying a geometry in a bottom-level acceleration structure.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_GEOMETRY_NV
pNext
must beNULL
geometryType
must be a validVkGeometryTypeNV
valuegeometry
must be a validVkGeometryDataNV
structureflags
must be a valid combination ofVkGeometryFlagBitsNV
values
See Also
VkAccelerationStructureInfoNV
,VkGeometryDataNV
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.geometryType
– describes which type of geometry thisVkGeometryNV
refers to.geometry
– contains the geometry data as described inVkGeometryDataNV
.flags
– has flags describing options for this geometry.
Layout
struct VkGeometryNV { VkStructureType sType; void const * pNext; VkGeometryTypeNV geometryType;
VkGeometryDataNV
geometry; VkGeometryFlagsNV flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkGeometryNV.Buffer
An array ofVkGeometryNV
structs.
-
Constructor Summary
Constructors Constructor Description VkGeometryNV(java.nio.ByteBuffer container)
Creates aVkGeometryNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkGeometryNV
calloc()
Returns a newVkGeometryNV
instance allocated withmemCalloc
.static VkGeometryNV.Buffer
calloc(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated withmemCalloc
.static VkGeometryNV
callocStack()
Returns a newVkGeometryNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkGeometryNV.Buffer
callocStack(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkGeometryNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkGeometryNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkGeometryNV
create()
Returns a newVkGeometryNV
instance allocated withBufferUtils
.static VkGeometryNV.Buffer
create(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated withBufferUtils
.static VkGeometryNV
create(long address)
Returns a newVkGeometryNV
instance for the specified memory address.static VkGeometryNV.Buffer
create(long address, int capacity)
Create aVkGeometryNV.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 theflags
field.VkGeometryNV
flags(int value)
Sets the specified value to theflags
field.VkGeometryDataNV
geometry()
Returns aVkGeometryDataNV
view of thegeometry
field.VkGeometryNV
geometry(java.util.function.Consumer<VkGeometryDataNV> consumer)
Passes thegeometry
field to the specifiedConsumer
.VkGeometryNV
geometry(VkGeometryDataNV value)
Copies the specifiedVkGeometryDataNV
to thegeometry
field.int
geometryType()
Returns the value of thegeometryType
field.VkGeometryNV
geometryType(int value)
Sets the specified value to thegeometryType
field.static VkGeometryNV
malloc()
Returns a newVkGeometryNV
instance allocated withmemAlloc
.static VkGeometryNV.Buffer
malloc(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated withmemAlloc
.static VkGeometryNV
mallocStack()
Returns a newVkGeometryNV
instance allocated on the thread-localMemoryStack
.static VkGeometryNV.Buffer
mallocStack(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkGeometryNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkGeometryNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNV
instance allocated on the specifiedMemoryStack
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static VkGeometryDataNV
ngeometry(long struct)
Unsafe version ofgeometry()
.static void
ngeometry(long struct, VkGeometryDataNV value)
Unsafe version ofgeometry
.static int
ngeometryType(long struct)
Unsafe version ofgeometryType()
.static void
ngeometryType(long struct, int value)
Unsafe version ofgeometryType
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkGeometryNV
pNext(long value)
Sets the specified value to thepNext
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 thesType
field.VkGeometryNV
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkGeometryNV
public VkGeometryNV(java.nio.ByteBuffer container)
Creates aVkGeometryNV
instance at the current position of the specifiedByteBuffer
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 classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
geometryType
public int geometryType()
Returns the value of thegeometryType
field.
-
geometry
public VkGeometryDataNV geometry()
Returns aVkGeometryDataNV
view of thegeometry
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
sType
public VkGeometryNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkGeometryNV pNext(long value)
Sets the specified value to thepNext
field.
-
geometryType
public VkGeometryNV geometryType(int value)
Sets the specified value to thegeometryType
field.
-
geometry
public VkGeometryNV geometry(VkGeometryDataNV value)
Copies the specifiedVkGeometryDataNV
to thegeometry
field.
-
geometry
public VkGeometryNV geometry(java.util.function.Consumer<VkGeometryDataNV> consumer)
Passes thegeometry
field to the specifiedConsumer
.
-
flags
public VkGeometryNV flags(int value)
Sets the specified value to theflags
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 newVkGeometryNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkGeometryNV calloc()
Returns a newVkGeometryNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkGeometryNV create()
Returns a newVkGeometryNV
instance allocated withBufferUtils
.
-
create
public static VkGeometryNV create(long address)
Returns a newVkGeometryNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkGeometryNV createSafe(long address)
-
malloc
public static VkGeometryNV.Buffer malloc(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkGeometryNV.Buffer calloc(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkGeometryNV.Buffer create(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkGeometryNV.Buffer create(long address, int capacity)
Create aVkGeometryNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkGeometryNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkGeometryNV mallocStack()
Returns a newVkGeometryNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkGeometryNV callocStack()
Returns a newVkGeometryNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkGeometryNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkGeometryNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkGeometryNV.Buffer mallocStack(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkGeometryNV.Buffer callocStack(int capacity)
Returns a newVkGeometryNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkGeometryNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkGeometryNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
ngeometryType
public static int ngeometryType(long struct)
Unsafe version ofgeometryType()
.
-
ngeometry
public static VkGeometryDataNV ngeometry(long struct)
Unsafe version ofgeometry()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
ngeometryType
public static void ngeometryType(long struct, int value)
Unsafe version ofgeometryType
.
-
ngeometry
public static void ngeometry(long struct, VkGeometryDataNV value)
Unsafe version ofgeometry
.
-
nflags
public static void nflags(long struct, int value)
Unsafe version offlags
.
-
-