Package org.lwjgl.vulkan
Class VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX>
org.lwjgl.vulkan.VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX
extends Struct<VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX>
implements NativeResource
struct VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX {
VkStructureType sType;
void const * pNext;
VkDeviceOrHostAddressConstKHR compressedData;
VkDeviceSize dataSize;
uint32_t numTriangles;
uint32_t numVertices;
uint32_t maxPrimitiveIndex;
uint32_t maxGeometryIndex;
VkCompressedTriangleFormatAMDX format;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXstructs.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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.compressedData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thecompressedDatafield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstKHRto thecompressedDatafield.create()Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated withBufferUtils.create(int capacity) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance for the specified memory address.create(long address, int capacity) Create aVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance at the specified memory.static @Nullable VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXcreateSafe(long address) static @Nullable VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.BuffercreateSafe(long address, int capacity) longdataSize()dataSize(long value) Sets the specified value to thedataSizefield.intformat()format(int value) Sets the specified value to theformatfield.malloc()Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated on the specifiedMemoryStack.intmaxGeometryIndex(int value) Sets the specified value to themaxGeometryIndexfield.intmaxPrimitiveIndex(int value) Sets the specified value to themaxPrimitiveIndexfield.ncompressedData(long struct) Unsafe version ofcompressedData().static voidncompressedData(long struct, VkDeviceOrHostAddressConstKHR value) Unsafe version ofcompressedData.static longndataSize(long struct) Unsafe version ofdataSize().static voidndataSize(long struct, long value) Unsafe version ofdataSize.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static intnmaxGeometryIndex(long struct) Unsafe version ofmaxGeometryIndex().static voidnmaxGeometryIndex(long struct, int value) Unsafe version ofmaxGeometryIndex.static intnmaxPrimitiveIndex(long struct) Unsafe version ofmaxPrimitiveIndex().static voidnmaxPrimitiveIndex(long struct, int value) Unsafe version ofmaxPrimitiveIndex.static intnnumTriangles(long struct) Unsafe version ofnumTriangles().static voidnnumTriangles(long struct, int value) Unsafe version ofnumTriangles.static intnnumVertices(long struct) Unsafe version ofnumVertices().static voidnnumVertices(long struct, int value) Unsafe version ofnumVertices.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.intnumTriangles(int value) Sets the specified value to thenumTrianglesfield.intnumVertices(int value) Sets the specified value to thenumVerticesfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkAccelerationStructureTrianglesOpacityMicromapEXTvalue to thepNextchain.set(int sType, long pNext, VkDeviceOrHostAddressConstKHR compressedData, long dataSize, int numTriangles, int numVertices, int maxPrimitiveIndex, int maxGeometryIndex, int format) 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_DENSE_GEOMETRY_FORMAT_TRIANGLES_DATA_AMDXvalue 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. -
COMPRESSEDDATA
public static final int COMPRESSEDDATAThe struct member offsets. -
DATASIZE
public static final int DATASIZEThe struct member offsets. -
NUMTRIANGLES
public static final int NUMTRIANGLESThe struct member offsets. -
NUMVERTICES
public static final int NUMVERTICESThe struct member offsets. -
MAXPRIMITIVEINDEX
public static final int MAXPRIMITIVEINDEXThe struct member offsets. -
MAXGEOMETRYINDEX
public static final int MAXGEOMETRYINDEXThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets.
-
-
Constructor Details
-
VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX
Creates aVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance 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<VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
compressedData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of thecompressedDatafield.
-
dataSize
public long dataSize()- Returns:
- the value of the
dataSizefield.
-
numTriangles
public int numTriangles()- Returns:
- the value of the
numTrianglesfield.
-
numVertices
public int numVertices()- Returns:
- the value of the
numVerticesfield.
-
maxPrimitiveIndex
public int maxPrimitiveIndex()- Returns:
- the value of the
maxPrimitiveIndexfield.
-
maxGeometryIndex
public int maxGeometryIndex()- Returns:
- the value of the
maxGeometryIndexfield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_DENSE_GEOMETRY_FORMAT_TRIANGLES_DATA_AMDXvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
public VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX pNext(VkAccelerationStructureTrianglesOpacityMicromapEXT value) Prepends the specifiedVkAccelerationStructureTrianglesOpacityMicromapEXTvalue to thepNextchain. -
compressedData
public VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX compressedData(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHRto thecompressedDatafield. -
compressedData
public VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX compressedData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thecompressedDatafield to the specifiedConsumer. -
dataSize
Sets the specified value to thedataSizefield. -
numTriangles
Sets the specified value to thenumTrianglesfield. -
numVertices
Sets the specified value to thenumVerticesfield. -
maxPrimitiveIndex
Sets the specified value to themaxPrimitiveIndexfield. -
maxGeometryIndex
Sets the specified value to themaxGeometryIndexfield. -
format
Sets the specified value to theformatfield. -
set
public VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX set(int sType, long pNext, VkDeviceOrHostAddressConstKHR compressedData, long dataSize, int numTriangles, int numVertices, int maxPrimitiveIndex, int maxGeometryIndex, int format) Initializes this struct with the specified values. -
set
public VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX set(VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated withBufferUtils. -
create
Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance for the specified memory address. -
createSafe
public static @Nullable VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX createSafe(long address) -
malloc
public static VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Buffer malloc(int capacity) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Buffer calloc(int capacity) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Buffer create(int capacity) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Buffer create(long address, int capacity) Create aVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.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(). -
ncompressedData
Unsafe version ofcompressedData(). -
ndataSize
public static long ndataSize(long struct) Unsafe version ofdataSize(). -
nnumTriangles
public static int nnumTriangles(long struct) Unsafe version ofnumTriangles(). -
nnumVertices
public static int nnumVertices(long struct) Unsafe version ofnumVertices(). -
nmaxPrimitiveIndex
public static int nmaxPrimitiveIndex(long struct) Unsafe version ofmaxPrimitiveIndex(). -
nmaxGeometryIndex
public static int nmaxGeometryIndex(long struct) Unsafe version ofmaxGeometryIndex(). -
nformat
public static int nformat(long struct) Unsafe version offormat(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
ncompressedData
Unsafe version ofcompressedData. -
ndataSize
public static void ndataSize(long struct, long value) Unsafe version ofdataSize. -
nnumTriangles
public static void nnumTriangles(long struct, int value) Unsafe version ofnumTriangles. -
nnumVertices
public static void nnumVertices(long struct, int value) Unsafe version ofnumVertices. -
nmaxPrimitiveIndex
public static void nmaxPrimitiveIndex(long struct, int value) Unsafe version ofmaxPrimitiveIndex. -
nmaxGeometryIndex
public static void nmaxGeometryIndex(long struct, int value) Unsafe version ofmaxGeometryIndex. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat.
-