Class VkAccelerationStructureGeometryMicromapDataKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAccelerationStructureGeometryMicromapDataKHR>
org.lwjgl.vulkan.VkAccelerationStructureGeometryMicromapDataKHR
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkAccelerationStructureGeometryMicromapDataKHR
extends Struct<VkAccelerationStructureGeometryMicromapDataKHR>
implements NativeResource
struct VkAccelerationStructureGeometryMicromapDataKHR {
VkStructureType sType;
void const * pNext;
uint32_t usageCountsCount;
VkMicromapUsageKHR const * pUsageCounts;
VkMicromapUsageKHR const * const * ppUsageCounts;
VkDeviceAddress data;
VkDeviceAddress triangleArray;
VkDeviceSize triangleArrayStride;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkAccelerationStructureGeometryMicromapDataKHRstructs.Nested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface 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 Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkAccelerationStructureGeometryMicromapDataKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance for the specified memory address.create(long address, int capacity) Create aVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance at the specified memory.static @Nullable VkAccelerationStructureGeometryMicromapDataKHRcreateSafe(long address) static @Nullable VkAccelerationStructureGeometryMicromapDataKHR.BuffercreateSafe(long address, int capacity) longdata()data(long value) Sets the specified value to thedatafield.malloc()Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated on the specifiedMemoryStack.static longndata(long struct) Unsafe version ofdata().static voidndata(long struct, long value) Unsafe version ofdata.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable PointerBuffernppUsageCounts(long struct) Unsafe version ofppUsageCounts.static voidnppUsageCounts(long struct, @Nullable PointerBuffer value) Unsafe version ofppUsageCounts.static @Nullable VkMicromapUsageKHR.BuffernpUsageCounts(long struct) Unsafe version ofpUsageCounts().static voidnpUsageCounts(long struct, @Nullable VkMicromapUsageKHR.Buffer value) Unsafe version ofpUsageCounts.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static longntriangleArray(long struct) Unsafe version oftriangleArray().static voidntriangleArray(long struct, long value) Unsafe version oftriangleArray.static longntriangleArrayStride(long struct) Unsafe version oftriangleArrayStride().static voidntriangleArrayStride(long struct, long value) Unsafe version oftriangleArrayStride.static intnusageCountsCount(long struct) Unsafe version ofusageCountsCount().static voidnusageCountsCount(long struct, int value) Sets the specified value to theusageCountsCountfield of the specifiedstruct.longpNext()pNext(long value) Sets the specified value to thepNextfield.@Nullable PointerBufferppUsageCounts(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theppUsageCountsfield.@Nullable VkMicromapUsageKHR.BufferpUsageCounts(@Nullable VkMicromapUsageKHR.Buffer value) Sets the address of the specifiedVkMicromapUsageKHR.Bufferto thepUsageCountsfield.set(int sType, long pNext, int usageCountsCount, @Nullable VkMicromapUsageKHR.Buffer pUsageCounts, @Nullable PointerBuffer ppUsageCounts, long data, long triangleArray, long triangleArrayStride) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_MICROMAP_DATA_KHRvalue to thesTypefield.longtriangleArray(long value) Sets the specified value to thetriangleArrayfield.longtriangleArrayStride(long value) Sets the specified value to thetriangleArrayStridefield.intusageCountsCount(int value) Sets the specified value to theusageCountsCountfield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
USAGECOUNTSCOUNT
public static final int USAGECOUNTSCOUNTThe struct member offsets. -
PUSAGECOUNTS
public static final int PUSAGECOUNTSThe struct member offsets. -
PPUSAGECOUNTS
public static final int PPUSAGECOUNTSThe struct member offsets. -
DATA
public static final int DATAThe struct member offsets. -
TRIANGLEARRAY
public static final int TRIANGLEARRAYThe struct member offsets. -
TRIANGLEARRAYSTRIDE
public static final int TRIANGLEARRAYSTRIDEThe struct member offsets.
-
-
Constructor Details
-
VkAccelerationStructureGeometryMicromapDataKHR
Creates aVkAccelerationStructureGeometryMicromapDataKHRinstance 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<VkAccelerationStructureGeometryMicromapDataKHR>
-
sType
- Returns:
- the value of the
sTypefield.
-
pNext
- Returns:
- the value of the
pNextfield.
-
usageCountsCount
- Returns:
- the value of the
usageCountsCountfield.
-
pUsageCounts
- Returns:
- a
VkMicromapUsageKHR.Bufferview of the struct array pointed to by thepUsageCountsfield.
-
ppUsageCounts
- Returns:
- a
PointerBufferview of the data pointed to by theppUsageCountsfield.
-
data
- Returns:
- the value of the
datafield.
-
triangleArray
- Returns:
- the value of the
triangleArrayfield.
-
triangleArrayStride
- Returns:
- the value of the
triangleArrayStridefield.
-
sType
public VkAccelerationStructureGeometryMicromapDataKHR sType(@NativeType("VkStructureType") int value) Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_MICROMAP_DATA_KHRvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
usageCountsCount
public VkAccelerationStructureGeometryMicromapDataKHR usageCountsCount(@NativeType("uint32_t") int value) Sets the specified value to theusageCountsCountfield. -
pUsageCounts
public VkAccelerationStructureGeometryMicromapDataKHR pUsageCounts(@NativeType("VkMicromapUsageKHR const *") @Nullable VkMicromapUsageKHR.Buffer value) Sets the address of the specifiedVkMicromapUsageKHR.Bufferto thepUsageCountsfield. -
ppUsageCounts
public VkAccelerationStructureGeometryMicromapDataKHR ppUsageCounts(@NativeType("VkMicromapUsageKHR const * const *") @Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theppUsageCountsfield. -
data
public VkAccelerationStructureGeometryMicromapDataKHR data(@NativeType("VkDeviceAddress") long value) Sets the specified value to thedatafield. -
triangleArray
public VkAccelerationStructureGeometryMicromapDataKHR triangleArray(@NativeType("VkDeviceAddress") long value) Sets the specified value to thetriangleArrayfield. -
triangleArrayStride
public VkAccelerationStructureGeometryMicromapDataKHR triangleArrayStride(@NativeType("VkDeviceSize") long value) Sets the specified value to thetriangleArrayStridefield. -
set
public VkAccelerationStructureGeometryMicromapDataKHR set(int sType, long pNext, int usageCountsCount, @Nullable VkMicromapUsageKHR.Buffer pUsageCounts, @Nullable PointerBuffer ppUsageCounts, long data, long triangleArray, long triangleArrayStride) Initializes this struct with the specified values. -
set
public VkAccelerationStructureGeometryMicromapDataKHR set(VkAccelerationStructureGeometryMicromapDataKHR src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated withBufferUtils. -
create
Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureGeometryMicromapDataKHR.Buffer create(long address, int capacity) Create aVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureGeometryMicromapDataKHR.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAccelerationStructureGeometryMicromapDataKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureGeometryMicromapDataKHR.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometryMicromapDataKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureGeometryMicromapDataKHR.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometryMicromapDataKHR.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(). -
nusageCountsCount
public static int nusageCountsCount(long struct) Unsafe version ofusageCountsCount(). -
npUsageCounts
Unsafe version ofpUsageCounts(). -
nppUsageCounts
Unsafe version ofppUsageCounts. -
ndata
public static long ndata(long struct) Unsafe version ofdata(). -
ntriangleArray
public static long ntriangleArray(long struct) Unsafe version oftriangleArray(). -
ntriangleArrayStride
public static long ntriangleArrayStride(long struct) Unsafe version oftriangleArrayStride(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nusageCountsCount
public static void nusageCountsCount(long struct, int value) Sets the specified value to theusageCountsCountfield of the specifiedstruct. -
npUsageCounts
Unsafe version ofpUsageCounts. -
nppUsageCounts
Unsafe version ofppUsageCounts. -
ndata
public static void ndata(long struct, long value) Unsafe version ofdata. -
ntriangleArray
public static void ntriangleArray(long struct, long value) Unsafe version oftriangleArray. -
ntriangleArrayStride
public static void ntriangleArrayStride(long struct, long value) Unsafe version oftriangleArrayStride.
-