Package org.lwjgl.vulkan
Class VkAccelerationStructureBuildGeometryInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAccelerationStructureBuildGeometryInfoKHR>
org.lwjgl.vulkan.VkAccelerationStructureBuildGeometryInfoKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkAccelerationStructureBuildGeometryInfoKHR
extends Struct<VkAccelerationStructureBuildGeometryInfoKHR>
implements NativeResource
struct VkAccelerationStructureBuildGeometryInfoKHR {
VkStructureType sType;
void const * pNext;
VkAccelerationStructureTypeKHR type;
VkBuildAccelerationStructureFlagsKHR flags;
VkBuildAccelerationStructureModeKHR mode;
VkAccelerationStructureKHR srcAccelerationStructure;
VkAccelerationStructureKHR dstAccelerationStructure;
uint32_t geometryCount;
{@link VkAccelerationStructureGeometryKHR VkAccelerationStructureGeometryKHR} const * pGeometries;
{@link VkAccelerationStructureGeometryKHR VkAccelerationStructureGeometryKHR} const * const * ppGeometries;
{@link VkDeviceOrHostAddressKHR VkDeviceOrHostAddressKHR} scratchData;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVkAccelerationStructureBuildGeometryInfoKHR
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkAccelerationStructureBuildGeometryInfoKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance for the specified memory address.create
(long address, int capacity) Create aVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance at the specified memory.static @Nullable VkAccelerationStructureBuildGeometryInfoKHR
createSafe
(long address) static @Nullable VkAccelerationStructureBuildGeometryInfoKHR.Buffer
createSafe
(long address, int capacity) long
dstAccelerationStructure
(long value) Sets the specified value to thedstAccelerationStructure
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.int
geometryCount
(int value) Sets the specified value to thegeometryCount
field.malloc()
Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated on the specifiedMemoryStack
.int
mode()
mode
(int value) Sets the specified value to themode
field.static long
ndstAccelerationStructure
(long struct) Unsafe version ofdstAccelerationStructure()
.static void
ndstAccelerationStructure
(long struct, long value) Unsafe version ofdstAccelerationStructure
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
ngeometryCount
(long struct) Unsafe version ofgeometryCount()
.static void
ngeometryCount
(long struct, int value) Sets the specified value to thegeometryCount
field of the specifiedstruct
.static int
nmode
(long struct) Unsafe version ofmode()
.static void
nmode
(long struct, int value) Unsafe version ofmode
.static @Nullable VkAccelerationStructureGeometryKHR.Buffer
npGeometries
(long struct) Unsafe version ofpGeometries()
.static void
npGeometries
(long struct, @Nullable VkAccelerationStructureGeometryKHR.Buffer value) Unsafe version ofpGeometries
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static @Nullable PointerBuffer
nppGeometries
(long struct) Unsafe version ofppGeometries
.static void
nppGeometries
(long struct, @Nullable PointerBuffer value) Unsafe version ofppGeometries
.static VkDeviceOrHostAddressKHR
nscratchData
(long struct) Unsafe version ofscratchData()
.static void
nscratchData
(long struct, VkDeviceOrHostAddressKHR value) Unsafe version ofscratchData
.static long
nsrcAccelerationStructure
(long struct) Unsafe version ofsrcAccelerationStructure()
.static void
nsrcAccelerationStructure
(long struct, long value) Unsafe version ofsrcAccelerationStructure
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.pGeometries
(@Nullable VkAccelerationStructureGeometryKHR.Buffer value) Sets the address of the specifiedVkAccelerationStructureGeometryKHR.Buffer
to thepGeometries
field.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.@Nullable PointerBuffer
ppGeometries
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theppGeometries
field.scratchData
(Consumer<VkDeviceOrHostAddressKHR> consumer) Passes thescratchData
field to the specifiedConsumer
.Copies the specifiedVkDeviceOrHostAddressKHR
to thescratchData
field.set
(int sType, long pNext, int type, int flags, int mode, long srcAccelerationStructure, long dstAccelerationStructure, int geometryCount, @Nullable VkAccelerationStructureGeometryKHR.Buffer pGeometries, @Nullable PointerBuffer ppGeometries, VkDeviceOrHostAddressKHR scratchData) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.long
srcAccelerationStructure
(long value) Sets the specified value to thesrcAccelerationStructure
field.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR
value to thesType
field.int
type()
type
(int value) Sets the specified value to thetype
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
MODE
public static final int MODEThe struct member offsets. -
SRCACCELERATIONSTRUCTURE
public static final int SRCACCELERATIONSTRUCTUREThe struct member offsets. -
DSTACCELERATIONSTRUCTURE
public static final int DSTACCELERATIONSTRUCTUREThe struct member offsets. -
GEOMETRYCOUNT
public static final int GEOMETRYCOUNTThe struct member offsets. -
PGEOMETRIES
public static final int PGEOMETRIESThe struct member offsets. -
PPGEOMETRIES
public static final int PPGEOMETRIESThe struct member offsets. -
SCRATCHDATA
public static final int SCRATCHDATAThe struct member offsets.
-
-
Constructor Details
-
VkAccelerationStructureBuildGeometryInfoKHR
Creates aVkAccelerationStructureBuildGeometryInfoKHR
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkAccelerationStructureBuildGeometryInfoKHR>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
type
public int type()- Returns:
- the value of the
type
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
mode
public int mode()- Returns:
- the value of the
mode
field.
-
srcAccelerationStructure
public long srcAccelerationStructure()- Returns:
- the value of the
srcAccelerationStructure
field.
-
dstAccelerationStructure
public long dstAccelerationStructure()- Returns:
- the value of the
dstAccelerationStructure
field.
-
geometryCount
public int geometryCount()- Returns:
- the value of the
geometryCount
field.
-
pGeometries
- Returns:
- a
VkAccelerationStructureGeometryKHR.Buffer
view of the struct array pointed to by thepGeometries
field.
-
ppGeometries
- Returns:
- a
PointerBuffer
view of the data pointed to by theppGeometries
field.
-
scratchData
- Returns:
- a
VkDeviceOrHostAddressKHR
view of thescratchData
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
type
Sets the specified value to thetype
field. -
flags
Sets the specified value to theflags
field. -
mode
Sets the specified value to themode
field. -
srcAccelerationStructure
Sets the specified value to thesrcAccelerationStructure
field. -
dstAccelerationStructure
Sets the specified value to thedstAccelerationStructure
field. -
geometryCount
Sets the specified value to thegeometryCount
field. -
pGeometries
public VkAccelerationStructureBuildGeometryInfoKHR pGeometries(@Nullable VkAccelerationStructureGeometryKHR.Buffer value) Sets the address of the specifiedVkAccelerationStructureGeometryKHR.Buffer
to thepGeometries
field. -
ppGeometries
Sets the address of the specifiedPointerBuffer
to theppGeometries
field. -
scratchData
Copies the specifiedVkDeviceOrHostAddressKHR
to thescratchData
field. -
scratchData
public VkAccelerationStructureBuildGeometryInfoKHR scratchData(Consumer<VkDeviceOrHostAddressKHR> consumer) Passes thescratchData
field to the specifiedConsumer
. -
set
public VkAccelerationStructureBuildGeometryInfoKHR set(int sType, long pNext, int type, int flags, int mode, long srcAccelerationStructure, long dstAccelerationStructure, int geometryCount, @Nullable VkAccelerationStructureGeometryKHR.Buffer pGeometries, @Nullable PointerBuffer ppGeometries, VkDeviceOrHostAddressKHR scratchData) Initializes this struct with the specified values. -
set
public VkAccelerationStructureBuildGeometryInfoKHR set(VkAccelerationStructureBuildGeometryInfoKHR src) Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated withBufferUtils
. -
create
Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureBuildGeometryInfoKHR.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkAccelerationStructureBuildGeometryInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static VkAccelerationStructureBuildGeometryInfoKHR.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
public static VkAccelerationStructureBuildGeometryInfoKHR.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureBuildGeometryInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nmode
public static int nmode(long struct) Unsafe version ofmode()
. -
nsrcAccelerationStructure
public static long nsrcAccelerationStructure(long struct) Unsafe version ofsrcAccelerationStructure()
. -
ndstAccelerationStructure
public static long ndstAccelerationStructure(long struct) Unsafe version ofdstAccelerationStructure()
. -
ngeometryCount
public static int ngeometryCount(long struct) Unsafe version ofgeometryCount()
. -
npGeometries
Unsafe version ofpGeometries()
. -
nppGeometries
Unsafe version ofppGeometries
. -
nscratchData
Unsafe version ofscratchData()
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nmode
public static void nmode(long struct, int value) Unsafe version ofmode
. -
nsrcAccelerationStructure
public static void nsrcAccelerationStructure(long struct, long value) Unsafe version ofsrcAccelerationStructure
. -
ndstAccelerationStructure
public static void ndstAccelerationStructure(long struct, long value) Unsafe version ofdstAccelerationStructure
. -
ngeometryCount
public static void ngeometryCount(long struct, int value) Sets the specified value to thegeometryCount
field of the specifiedstruct
. -
npGeometries
public static void npGeometries(long struct, @Nullable VkAccelerationStructureGeometryKHR.Buffer value) Unsafe version ofpGeometries
. -
nppGeometries
Unsafe version ofppGeometries
. -
nscratchData
Unsafe version ofscratchData
.
-