Package org.lwjgl.vulkan
Class VkBuildPartitionedAccelerationStructureInfoNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkBuildPartitionedAccelerationStructureInfoNV>
org.lwjgl.vulkan.VkBuildPartitionedAccelerationStructureInfoNV
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkBuildPartitionedAccelerationStructureInfoNV
extends Struct<VkBuildPartitionedAccelerationStructureInfoNV>
implements NativeResource
struct VkBuildPartitionedAccelerationStructureInfoNV {
VkStructureType sType;
void * pNext;
VkPartitionedAccelerationStructureInstancesInputNV input;
VkDeviceAddress srcAccelerationStructureData;
VkDeviceAddress dstAccelerationStructureData;
VkDeviceAddress scratchData;
VkDeviceAddress srcInfos;
VkDeviceAddress srcInfosCount;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkBuildPartitionedAccelerationStructureInfoNVstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkBuildPartitionedAccelerationStructureInfoNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance for the specified memory address.create(long address, int capacity) Create aVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance at the specified memory.static @Nullable VkBuildPartitionedAccelerationStructureInfoNVcreateSafe(long address) static @Nullable VkBuildPartitionedAccelerationStructureInfoNV.BuffercreateSafe(long address, int capacity) longdstAccelerationStructureData(long value) Sets the specified value to thedstAccelerationStructureDatafield.input()Passes theinputfield to the specifiedConsumer.Copies the specifiedVkPartitionedAccelerationStructureInstancesInputNVto theinputfield.malloc()Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated on the specifiedMemoryStack.static longndstAccelerationStructureData(long struct) Unsafe version ofdstAccelerationStructureData().static voidndstAccelerationStructureData(long struct, long value) Unsafe version ofdstAccelerationStructureData.ninput(long struct) Unsafe version ofinput().static voidninput(long struct, VkPartitionedAccelerationStructureInstancesInputNV value) Unsafe version ofinput.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static longnscratchData(long struct) Unsafe version ofscratchData().static voidnscratchData(long struct, long value) Unsafe version ofscratchData.static longnsrcAccelerationStructureData(long struct) Unsafe version ofsrcAccelerationStructureData().static voidnsrcAccelerationStructureData(long struct, long value) Unsafe version ofsrcAccelerationStructureData.static longnsrcInfos(long struct) Unsafe version ofsrcInfos().static voidnsrcInfos(long struct, long value) Unsafe version ofsrcInfos.static longnsrcInfosCount(long struct) Unsafe version ofsrcInfosCount().static voidnsrcInfosCount(long struct, long value) Unsafe version ofsrcInfosCount.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.longpNext()pNext(long value) Sets the specified value to thepNextfield.longscratchData(long value) Sets the specified value to thescratchDatafield.set(int sType, long pNext, VkPartitionedAccelerationStructureInstancesInputNV input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData, long srcInfos, long srcInfosCount) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longsrcAccelerationStructureData(long value) Sets the specified value to thesrcAccelerationStructureDatafield.longsrcInfos()srcInfos(long value) Sets the specified value to thesrcInfosfield.longsrcInfosCount(long value) Sets the specified value to thesrcInfosCountfield.intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_BUILD_PARTITIONED_ACCELERATION_STRUCTURE_INFO_NVvalue to thesTypefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
INPUT
public static final int INPUTThe struct member offsets. -
SRCACCELERATIONSTRUCTUREDATA
public static final int SRCACCELERATIONSTRUCTUREDATAThe struct member offsets. -
DSTACCELERATIONSTRUCTUREDATA
public static final int DSTACCELERATIONSTRUCTUREDATAThe struct member offsets. -
SCRATCHDATA
public static final int SCRATCHDATAThe struct member offsets. -
SRCINFOS
public static final int SRCINFOSThe struct member offsets. -
SRCINFOSCOUNT
public static final int SRCINFOSCOUNTThe struct member offsets.
-
-
Constructor Details
-
VkBuildPartitionedAccelerationStructureInfoNV
Creates aVkBuildPartitionedAccelerationStructureInfoNVinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkBuildPartitionedAccelerationStructureInfoNV>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
input
- Returns:
- a
VkPartitionedAccelerationStructureInstancesInputNVview of theinputfield.
-
srcAccelerationStructureData
public long srcAccelerationStructureData()- Returns:
- the value of the
srcAccelerationStructureDatafield.
-
dstAccelerationStructureData
public long dstAccelerationStructureData()- Returns:
- the value of the
dstAccelerationStructureDatafield.
-
scratchData
public long scratchData()- Returns:
- the value of the
scratchDatafield.
-
srcInfos
public long srcInfos()- Returns:
- the value of the
srcInfosfield.
-
srcInfosCount
public long srcInfosCount()- Returns:
- the value of the
srcInfosCountfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_BUILD_PARTITIONED_ACCELERATION_STRUCTURE_INFO_NVvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
input
public VkBuildPartitionedAccelerationStructureInfoNV input(VkPartitionedAccelerationStructureInstancesInputNV value) Copies the specifiedVkPartitionedAccelerationStructureInstancesInputNVto theinputfield. -
input
public VkBuildPartitionedAccelerationStructureInfoNV input(Consumer<VkPartitionedAccelerationStructureInstancesInputNV> consumer) Passes theinputfield to the specifiedConsumer. -
srcAccelerationStructureData
Sets the specified value to thesrcAccelerationStructureDatafield. -
dstAccelerationStructureData
Sets the specified value to thedstAccelerationStructureDatafield. -
scratchData
Sets the specified value to thescratchDatafield. -
srcInfos
Sets the specified value to thesrcInfosfield. -
srcInfosCount
Sets the specified value to thesrcInfosCountfield. -
set
public VkBuildPartitionedAccelerationStructureInfoNV set(int sType, long pNext, VkPartitionedAccelerationStructureInstancesInputNV input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData, long srcInfos, long srcInfosCount) Initializes this struct with the specified values. -
set
public VkBuildPartitionedAccelerationStructureInfoNV set(VkBuildPartitionedAccelerationStructureInfoNV src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated withBufferUtils. -
create
Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBuildPartitionedAccelerationStructureInfoNV.Buffer create(long address, int capacity) Create aVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkBuildPartitionedAccelerationStructureInfoNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkBuildPartitionedAccelerationStructureInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBuildPartitionedAccelerationStructureInfoNV.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkBuildPartitionedAccelerationStructureInfoNV.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkBuildPartitionedAccelerationStructureInfoNV.Bufferinstance allocated on the specifiedMemoryStackand 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(). -
ninput
Unsafe version ofinput(). -
nsrcAccelerationStructureData
public static long nsrcAccelerationStructureData(long struct) Unsafe version ofsrcAccelerationStructureData(). -
ndstAccelerationStructureData
public static long ndstAccelerationStructureData(long struct) Unsafe version ofdstAccelerationStructureData(). -
nscratchData
public static long nscratchData(long struct) Unsafe version ofscratchData(). -
nsrcInfos
public static long nsrcInfos(long struct) Unsafe version ofsrcInfos(). -
nsrcInfosCount
public static long nsrcInfosCount(long struct) Unsafe version ofsrcInfosCount(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
ninput
Unsafe version ofinput. -
nsrcAccelerationStructureData
public static void nsrcAccelerationStructureData(long struct, long value) Unsafe version ofsrcAccelerationStructureData. -
ndstAccelerationStructureData
public static void ndstAccelerationStructureData(long struct, long value) Unsafe version ofdstAccelerationStructureData. -
nscratchData
public static void nscratchData(long struct, long value) Unsafe version ofscratchData. -
nsrcInfos
public static void nsrcInfos(long struct, long value) Unsafe version ofsrcInfos. -
nsrcInfosCount
public static void nsrcInfosCount(long struct, long value) Unsafe version ofsrcInfosCount.
-