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.NativeResourceStructure specifying a geometry in a bottom-level acceleration structure.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_GEOMETRY_NVpNextmust beNULLgeometryTypemust be a validVkGeometryTypeNVvaluegeometrymust be a validVkGeometryDataNVstructureflagsmust be a valid combination ofVkGeometryFlagBitsNVvalues
See Also
VkAccelerationStructureInfoNV,VkGeometryDataNVMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.geometryType– describes which type of geometry thisVkGeometryNVrefers 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;VkGeometryDataNVgeometry; VkGeometryFlagsNV flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkGeometryNV.BufferAn array ofVkGeometryNVstructs.
-
Constructor Summary
Constructors Constructor Description VkGeometryNV(java.nio.ByteBuffer container)Creates aVkGeometryNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkGeometryNVcalloc()Returns a newVkGeometryNVinstance allocated withmemCalloc.static VkGeometryNV.Buffercalloc(int capacity)Returns a newVkGeometryNV.Bufferinstance allocated withmemCalloc.static VkGeometryNVcallocStack()Returns a newVkGeometryNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkGeometryNV.BuffercallocStack(int capacity)Returns a newVkGeometryNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkGeometryNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryNVcreate()Returns a newVkGeometryNVinstance allocated withBufferUtils.static VkGeometryNV.Buffercreate(int capacity)Returns a newVkGeometryNV.Bufferinstance allocated withBufferUtils.static VkGeometryNVcreate(long address)Returns a newVkGeometryNVinstance for the specified memory address.static VkGeometryNV.Buffercreate(long address, int capacity)Create aVkGeometryNV.Bufferinstance at the specified memory.static VkGeometryNVcreateSafe(long address)static VkGeometryNV.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkGeometryNVflags(int value)Sets the specified value to theflagsfield.VkGeometryDataNVgeometry()Returns aVkGeometryDataNVview of thegeometryfield.VkGeometryNVgeometry(java.util.function.Consumer<VkGeometryDataNV> consumer)Passes thegeometryfield to the specifiedConsumer.VkGeometryNVgeometry(VkGeometryDataNV value)Copies the specifiedVkGeometryDataNVto thegeometryfield.intgeometryType()Returns the value of thegeometryTypefield.VkGeometryNVgeometryType(int value)Sets the specified value to thegeometryTypefield.static VkGeometryNVmalloc()Returns a newVkGeometryNVinstance allocated withmemAlloc.static VkGeometryNV.Buffermalloc(int capacity)Returns a newVkGeometryNV.Bufferinstance allocated withmemAlloc.static VkGeometryNVmallocStack()Returns a newVkGeometryNVinstance allocated on the thread-localMemoryStack.static VkGeometryNV.BuffermallocStack(int capacity)Returns a newVkGeometryNV.Bufferinstance allocated on the thread-localMemoryStack.static VkGeometryNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryNV.Bufferinstance allocated on the specifiedMemoryStack.static VkGeometryNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryNVinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static VkGeometryDataNVngeometry(long struct)Unsafe version ofgeometry().static voidngeometry(long struct, VkGeometryDataNV value)Unsafe version ofgeometry.static intngeometryType(long struct)Unsafe version ofgeometryType().static voidngeometryType(long struct, int value)Unsafe version ofgeometryType.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkGeometryNVpNext(long value)Sets the specified value to thepNextfield.VkGeometryNVset(int sType, long pNext, int geometryType, VkGeometryDataNV geometry, int flags)Initializes this struct with the specified values.VkGeometryNVset(VkGeometryNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkGeometryNVsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkGeometryNV
public VkGeometryNV(java.nio.ByteBuffer container)
Creates aVkGeometryNVinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
geometryType
public int geometryType()
Returns the value of thegeometryTypefield.
-
geometry
public VkGeometryDataNV geometry()
Returns aVkGeometryDataNVview of thegeometryfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
sType
public VkGeometryNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkGeometryNV pNext(long value)
Sets the specified value to thepNextfield.
-
geometryType
public VkGeometryNV geometryType(int value)
Sets the specified value to thegeometryTypefield.
-
geometry
public VkGeometryNV geometry(VkGeometryDataNV value)
Copies the specifiedVkGeometryDataNVto thegeometryfield.
-
geometry
public VkGeometryNV geometry(java.util.function.Consumer<VkGeometryDataNV> consumer)
Passes thegeometryfield to the specifiedConsumer.
-
flags
public VkGeometryNV flags(int value)
Sets the specified value to theflagsfield.
-
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 newVkGeometryNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkGeometryNV calloc()
Returns a newVkGeometryNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkGeometryNV create()
Returns a newVkGeometryNVinstance allocated withBufferUtils.
-
create
public static VkGeometryNV create(long address)
Returns a newVkGeometryNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkGeometryNV createSafe(long address)
-
malloc
public static VkGeometryNV.Buffer malloc(int capacity)
Returns a newVkGeometryNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkGeometryNV.Buffer calloc(int capacity)
Returns a newVkGeometryNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkGeometryNV.Buffer create(int capacity)
Returns a newVkGeometryNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkGeometryNV.Buffer create(long address, int capacity)
Create aVkGeometryNV.Bufferinstance 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 newVkGeometryNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkGeometryNV callocStack()
Returns a newVkGeometryNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkGeometryNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkGeometryNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNVinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkGeometryNV.Buffer callocStack(int capacity)
Returns a newVkGeometryNV.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-