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
geometryTypemust beGEOMETRY_TYPE_TRIANGLES_NVorGEOMETRY_TYPE_AABBS_NV
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_GEOMETRY_NVpNextmust beNULLgeometryTypemust be a validVkGeometryTypeKHRvaluegeometrymust be a validVkGeometryDataNVstructureflagsmust be a valid combination ofVkGeometryFlagBitsKHRvalues
See Also
VkAccelerationStructureInfoNV,VkGeometryDataNVLayout
struct VkGeometryNV { VkStructureTypesType(); void const *pNext(); VkGeometryTypeKHRgeometryType();VkGeometryDataNVgeometry(); VkGeometryFlagsKHRflags(); }
-
-
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 Deprecated 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 VkGeometryNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryNVcallocStack()Deprecated.static VkGeometryNV.BuffercallocStack(int capacity)Deprecated.static VkGeometryNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkGeometryNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()hasVkGeometryFlagBitsKHRdescribing options for this geometry.VkGeometryNVflags(int value)Sets the specified value to theflags()field.VkGeometryDataNVgeometry()contains the geometry data as described inVkGeometryDataNV.VkGeometryNVgeometry(java.util.function.Consumer<VkGeometryDataNV> consumer)Passes thegeometry()field to the specifiedConsumer.VkGeometryNVgeometry(VkGeometryDataNV value)Copies the specifiedVkGeometryDataNVto thegeometry()field.intgeometryType()specifies theVkGeometryTypeKHRwhich this geometry refers to.VkGeometryNVgeometryType(int value)Sets the specified value to thegeometryType()field.static VkGeometryNVmalloc()Returns a newVkGeometryNVinstance allocated withmemAlloc.static VkGeometryNV.Buffermalloc(int capacity)Returns a newVkGeometryNV.Bufferinstance allocated withmemAlloc.static VkGeometryNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryNV.Bufferinstance allocated on the specifiedMemoryStack.static VkGeometryNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryNVinstance allocated on the specifiedMemoryStack.static VkGeometryNVmallocStack()Deprecated.static VkGeometryNV.BuffermallocStack(int capacity)Deprecated.static VkGeometryNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkGeometryNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkGeometryNVpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkGeometryNVsType(int value)Sets the specified value to thesType()field.VkGeometryNVsType$Default()Sets theSTRUCTURE_TYPE_GEOMETRY_NVvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
geometryType
public int geometryType()
specifies theVkGeometryTypeKHRwhich this geometry refers to.
-
geometry
public VkGeometryDataNV geometry()
contains the geometry data as described inVkGeometryDataNV.
-
flags
public int flags()
hasVkGeometryFlagBitsKHRdescribing options for this geometry.
-
sType
public VkGeometryNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkGeometryNV sType$Default()
Sets theSTRUCTURE_TYPE_GEOMETRY_NVvalue 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 specifiedVkGeometryDataNVto 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 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
@Deprecated public static VkGeometryNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkGeometryNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkGeometryNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkGeometryNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkGeometryNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkGeometryNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkGeometryNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkGeometryNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkGeometryNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkGeometryNV calloc(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
-
malloc
public static VkGeometryNV.Buffer malloc(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
-
calloc
public static VkGeometryNV.Buffer calloc(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.
-
-