Package org.lwjgl.vulkan
Class VkAccelerationStructureGeometryKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAccelerationStructureGeometryKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAccelerationStructureGeometryKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying geometries to be built into an acceleration structure.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_KHRpNextmust beNULLgeometryTypemust be a validVkGeometryTypeKHRvalue- If
geometryTypeisGEOMETRY_TYPE_TRIANGLES_KHR, thetrianglesmember ofgeometrymust be a validVkAccelerationStructureGeometryTrianglesDataKHRstructure - If
geometryTypeisGEOMETRY_TYPE_AABBS_KHR, theaabbsmember ofgeometrymust be a validVkAccelerationStructureGeometryAabbsDataKHRstructure - If
geometryTypeisGEOMETRY_TYPE_INSTANCES_KHR, theinstancesmember ofgeometrymust be a validVkAccelerationStructureGeometryInstancesDataKHRstructure flagsmust be a valid combination ofVkGeometryFlagBitsKHRvalues
See Also
VkAccelerationStructureBuildGeometryInfoKHR,VkAccelerationStructureGeometryDataKHRLayout
struct VkAccelerationStructureGeometryKHR { VkStructureTypesType(); void const *pNext(); VkGeometryTypeKHRgeometryType();VkAccelerationStructureGeometryDataKHRgeometry(); VkGeometryFlagsKHRflags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAccelerationStructureGeometryKHR.BufferAn array ofVkAccelerationStructureGeometryKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkAccelerationStructureGeometryKHR(java.nio.ByteBuffer container)Creates aVkAccelerationStructureGeometryKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAccelerationStructureGeometryKHRcalloc()Returns a newVkAccelerationStructureGeometryKHRinstance allocated withmemCalloc.static VkAccelerationStructureGeometryKHR.Buffercalloc(int capacity)Returns a newVkAccelerationStructureGeometryKHR.Bufferinstance allocated withmemCalloc.static VkAccelerationStructureGeometryKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureGeometryKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureGeometryKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureGeometryKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureGeometryKHRcreate()Returns a newVkAccelerationStructureGeometryKHRinstance allocated withBufferUtils.static VkAccelerationStructureGeometryKHR.Buffercreate(int capacity)Returns a newVkAccelerationStructureGeometryKHR.Bufferinstance allocated withBufferUtils.static VkAccelerationStructureGeometryKHRcreate(long address)Returns a newVkAccelerationStructureGeometryKHRinstance for the specified memory address.static VkAccelerationStructureGeometryKHR.Buffercreate(long address, int capacity)Create aVkAccelerationStructureGeometryKHR.Bufferinstance at the specified memory.static VkAccelerationStructureGeometryKHRcreateSafe(long address)static VkAccelerationStructureGeometryKHR.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkGeometryFlagBitsKHRvalues describing additional properties of how the geometry should be built.VkAccelerationStructureGeometryKHRflags(int value)Sets the specified value to theflags()field.VkAccelerationStructureGeometryDataKHRgeometry()aVkAccelerationStructureGeometryDataKHRunion describing the geometry data for the relevant geometry type.VkAccelerationStructureGeometryKHRgeometry(java.util.function.Consumer<VkAccelerationStructureGeometryDataKHR> consumer)Passes thegeometry()field to the specifiedConsumer.VkAccelerationStructureGeometryKHRgeometry(VkAccelerationStructureGeometryDataKHR value)Copies the specifiedVkAccelerationStructureGeometryDataKHRto thegeometry()field.intgeometryType()describes which type of geometry thisVkAccelerationStructureGeometryKHRrefers to.VkAccelerationStructureGeometryKHRgeometryType(int value)Sets the specified value to thegeometryType()field.static VkAccelerationStructureGeometryKHRmalloc()Returns a newVkAccelerationStructureGeometryKHRinstance allocated withmemAlloc.static VkAccelerationStructureGeometryKHR.Buffermalloc(int capacity)Returns a newVkAccelerationStructureGeometryKHR.Bufferinstance allocated withmemAlloc.static VkAccelerationStructureGeometryKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureGeometryKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureGeometryKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureGeometryKHRinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static VkAccelerationStructureGeometryDataKHRngeometry(long struct)Unsafe version ofgeometry().static voidngeometry(long struct, VkAccelerationStructureGeometryDataKHR 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.VkAccelerationStructureGeometryKHRpNext(long value)Sets the specified value to thepNext()field.VkAccelerationStructureGeometryKHRset(int sType, long pNext, int geometryType, VkAccelerationStructureGeometryDataKHR geometry, int flags)Initializes this struct with the specified values.VkAccelerationStructureGeometryKHRset(VkAccelerationStructureGeometryKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkAccelerationStructureGeometryKHRsType(int value)Sets the specified value to thesType()field.VkAccelerationStructureGeometryKHRsType$Default()Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkAccelerationStructureGeometryKHR
public VkAccelerationStructureGeometryKHR(java.nio.ByteBuffer container)
Creates aVkAccelerationStructureGeometryKHRinstance 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()
describes which type of geometry thisVkAccelerationStructureGeometryKHRrefers to.
-
geometry
public VkAccelerationStructureGeometryDataKHR geometry()
aVkAccelerationStructureGeometryDataKHRunion describing the geometry data for the relevant geometry type.
-
flags
public int flags()
a bitmask ofVkGeometryFlagBitsKHRvalues describing additional properties of how the geometry should be built.
-
sType
public VkAccelerationStructureGeometryKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAccelerationStructureGeometryKHR sType$Default()
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_KHRvalue to thesType()field.
-
pNext
public VkAccelerationStructureGeometryKHR pNext(long value)
Sets the specified value to thepNext()field.
-
geometryType
public VkAccelerationStructureGeometryKHR geometryType(int value)
Sets the specified value to thegeometryType()field.
-
geometry
public VkAccelerationStructureGeometryKHR geometry(VkAccelerationStructureGeometryDataKHR value)
Copies the specifiedVkAccelerationStructureGeometryDataKHRto thegeometry()field.
-
geometry
public VkAccelerationStructureGeometryKHR geometry(java.util.function.Consumer<VkAccelerationStructureGeometryDataKHR> consumer)
Passes thegeometry()field to the specifiedConsumer.
-
flags
public VkAccelerationStructureGeometryKHR flags(int value)
Sets the specified value to theflags()field.
-
set
public VkAccelerationStructureGeometryKHR set(int sType, long pNext, int geometryType, VkAccelerationStructureGeometryDataKHR geometry, int flags)
Initializes this struct with the specified values.
-
set
public VkAccelerationStructureGeometryKHR set(VkAccelerationStructureGeometryKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAccelerationStructureGeometryKHR malloc()
Returns a newVkAccelerationStructureGeometryKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAccelerationStructureGeometryKHR calloc()
Returns a newVkAccelerationStructureGeometryKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAccelerationStructureGeometryKHR create()
Returns a newVkAccelerationStructureGeometryKHRinstance allocated withBufferUtils.
-
create
public static VkAccelerationStructureGeometryKHR create(long address)
Returns a newVkAccelerationStructureGeometryKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkAccelerationStructureGeometryKHR createSafe(long address)
-
malloc
public static VkAccelerationStructureGeometryKHR.Buffer malloc(int capacity)
Returns a newVkAccelerationStructureGeometryKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAccelerationStructureGeometryKHR.Buffer calloc(int capacity)
Returns a newVkAccelerationStructureGeometryKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureGeometryKHR.Buffer create(int capacity)
Returns a newVkAccelerationStructureGeometryKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureGeometryKHR.Buffer create(long address, int capacity)
Create aVkAccelerationStructureGeometryKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAccelerationStructureGeometryKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkAccelerationStructureGeometryKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureGeometryKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureGeometryKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureGeometryKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureGeometryKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureGeometryKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAccelerationStructureGeometryKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureGeometryKHR.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 VkAccelerationStructureGeometryDataKHR 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, VkAccelerationStructureGeometryDataKHR value)Unsafe version ofgeometry.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
-