Package org.lwjgl.vulkan
Class VkAccelerationStructureBuildRangeInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAccelerationStructureBuildRangeInfoKHR>
org.lwjgl.vulkan.VkAccelerationStructureBuildRangeInfoKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkAccelerationStructureBuildRangeInfoKHR
extends Struct<VkAccelerationStructureBuildRangeInfoKHR>
implements NativeResource
struct VkAccelerationStructureBuildRangeInfoKHR {
uint32_t primitiveCount;
uint32_t primitiveOffset;
uint32_t firstVertex;
uint32_t transformOffset;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkAccelerationStructureBuildRangeInfoKHRstructs.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 size in bytes.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 aVkAccelerationStructureBuildRangeInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance for the specified memory address.create(long address, int capacity) Create aVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance at the specified memory.static @Nullable VkAccelerationStructureBuildRangeInfoKHRcreateSafe(long address) static @Nullable VkAccelerationStructureBuildRangeInfoKHR.BuffercreateSafe(long address, int capacity) intfirstVertex(int value) Sets the specified value to thefirstVertexfield.malloc()Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated on the specifiedMemoryStack.static intnfirstVertex(long struct) Unsafe version offirstVertex().static voidnfirstVertex(long struct, int value) Unsafe version offirstVertex.static intnprimitiveCount(long struct) Unsafe version ofprimitiveCount().static voidnprimitiveCount(long struct, int value) Unsafe version ofprimitiveCount.static intnprimitiveOffset(long struct) Unsafe version ofprimitiveOffset().static voidnprimitiveOffset(long struct, int value) Unsafe version ofprimitiveOffset.static intntransformOffset(long struct) Unsafe version oftransformOffset().static voidntransformOffset(long struct, int value) Unsafe version oftransformOffset.intprimitiveCount(int value) Sets the specified value to theprimitiveCountfield.intprimitiveOffset(int value) Sets the specified value to theprimitiveOffsetfield.set(int primitiveCount, int primitiveOffset, int firstVertex, int transformOffset) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttransformOffset(int value) Sets the specified value to thetransformOffsetfield.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. -
PRIMITIVECOUNT
public static final int PRIMITIVECOUNTThe struct member offsets. -
PRIMITIVEOFFSET
public static final int PRIMITIVEOFFSETThe struct member offsets. -
FIRSTVERTEX
public static final int FIRSTVERTEXThe struct member offsets. -
TRANSFORMOFFSET
public static final int TRANSFORMOFFSETThe struct member offsets.
-
-
Constructor Details
-
VkAccelerationStructureBuildRangeInfoKHR
Creates aVkAccelerationStructureBuildRangeInfoKHRinstance 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<VkAccelerationStructureBuildRangeInfoKHR>
-
primitiveCount
public int primitiveCount()- Returns:
- the value of the
primitiveCountfield.
-
primitiveOffset
public int primitiveOffset()- Returns:
- the value of the
primitiveOffsetfield.
-
firstVertex
public int firstVertex()- Returns:
- the value of the
firstVertexfield.
-
transformOffset
public int transformOffset()- Returns:
- the value of the
transformOffsetfield.
-
primitiveCount
Sets the specified value to theprimitiveCountfield. -
primitiveOffset
Sets the specified value to theprimitiveOffsetfield. -
firstVertex
Sets the specified value to thefirstVertexfield. -
transformOffset
Sets the specified value to thetransformOffsetfield. -
set
public VkAccelerationStructureBuildRangeInfoKHR set(int primitiveCount, int primitiveOffset, int firstVertex, int transformOffset) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureBuildRangeInfoKHR.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAccelerationStructureBuildRangeInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureBuildRangeInfoKHR.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureBuildRangeInfoKHR.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureBuildRangeInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nprimitiveCount
public static int nprimitiveCount(long struct) Unsafe version ofprimitiveCount(). -
nprimitiveOffset
public static int nprimitiveOffset(long struct) Unsafe version ofprimitiveOffset(). -
nfirstVertex
public static int nfirstVertex(long struct) Unsafe version offirstVertex(). -
ntransformOffset
public static int ntransformOffset(long struct) Unsafe version oftransformOffset(). -
nprimitiveCount
public static void nprimitiveCount(long struct, int value) Unsafe version ofprimitiveCount. -
nprimitiveOffset
public static void nprimitiveOffset(long struct, int value) Unsafe version ofprimitiveOffset. -
nfirstVertex
public static void nfirstVertex(long struct, int value) Unsafe version offirstVertex. -
ntransformOffset
public static void ntransformOffset(long struct, int value) Unsafe version oftransformOffset.
-