Package org.lwjgl.vulkan
Class VkMicromapTriangleEXT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkMicromapTriangleEXT {
uint32_t dataOffset;
uint16_t subdivisionLevel;
uint16_t format;
}
-
Nested Class Summary
Nested ClassesNested 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 size in bytes.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
ConstructorsConstructorDescriptionVkMicromapTriangleEXT
(ByteBuffer container) Creates aVkMicromapTriangleEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMicromapTriangleEXT
calloc()
Returns a newVkMicromapTriangleEXT
instance allocated withmemCalloc
.static VkMicromapTriangleEXT.Buffer
calloc
(int capacity) Returns a newVkMicromapTriangleEXT.Buffer
instance allocated withmemCalloc
.static VkMicromapTriangleEXT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkMicromapTriangleEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMicromapTriangleEXT
calloc
(MemoryStack stack) Returns a newVkMicromapTriangleEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMicromapTriangleEXT
create()
Returns a newVkMicromapTriangleEXT
instance allocated withBufferUtils
.static VkMicromapTriangleEXT.Buffer
create
(int capacity) Returns a newVkMicromapTriangleEXT.Buffer
instance allocated withBufferUtils
.static VkMicromapTriangleEXT
create
(long address) Returns a newVkMicromapTriangleEXT
instance for the specified memory address.static VkMicromapTriangleEXT.Buffer
create
(long address, int capacity) Create aVkMicromapTriangleEXT.Buffer
instance at the specified memory.static @Nullable VkMicromapTriangleEXT
createSafe
(long address) static @Nullable VkMicromapTriangleEXT.Buffer
createSafe
(long address, int capacity) int
dataOffset
(int value) Sets the specified value to thedataOffset
field.short
format()
format
(short value) Sets the specified value to theformat
field.static VkMicromapTriangleEXT
malloc()
Returns a newVkMicromapTriangleEXT
instance allocated withmemAlloc
.static VkMicromapTriangleEXT.Buffer
malloc
(int capacity) Returns a newVkMicromapTriangleEXT.Buffer
instance allocated withmemAlloc
.static VkMicromapTriangleEXT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkMicromapTriangleEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkMicromapTriangleEXT
malloc
(MemoryStack stack) Returns a newVkMicromapTriangleEXT
instance allocated on the specifiedMemoryStack
.static int
ndataOffset
(long struct) Unsafe version ofdataOffset()
.static void
ndataOffset
(long struct, int value) Unsafe version ofdataOffset
.static short
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, short value) Unsafe version offormat
.static short
nsubdivisionLevel
(long struct) Unsafe version ofsubdivisionLevel()
.static void
nsubdivisionLevel
(long struct, short value) Unsafe version ofsubdivisionLevel
.set
(int dataOffset, short subdivisionLevel, short format) Initializes this struct with the specified values.set
(VkMicromapTriangleEXT src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.short
subdivisionLevel
(short value) Sets the specified value to thesubdivisionLevel
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. -
DATAOFFSET
public static final int DATAOFFSETThe struct member offsets. -
SUBDIVISIONLEVEL
public static final int SUBDIVISIONLEVELThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets.
-
-
Constructor Details
-
VkMicromapTriangleEXT
Creates aVkMicromapTriangleEXT
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<VkMicromapTriangleEXT>
-
dataOffset
public int dataOffset()- Returns:
- the value of the
dataOffset
field.
-
subdivisionLevel
public short subdivisionLevel()- Returns:
- the value of the
subdivisionLevel
field.
-
format
public short format()- Returns:
- the value of the
format
field.
-
dataOffset
Sets the specified value to thedataOffset
field. -
subdivisionLevel
Sets the specified value to thesubdivisionLevel
field. -
format
Sets the specified value to theformat
field. -
set
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 newVkMicromapTriangleEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkMicromapTriangleEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkMicromapTriangleEXT
instance allocated withBufferUtils
. -
create
Returns a newVkMicromapTriangleEXT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMicromapTriangleEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkMicromapTriangleEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkMicromapTriangleEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkMicromapTriangleEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMicromapTriangleEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkMicromapTriangleEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkMicromapTriangleEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkMicromapTriangleEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ndataOffset
public static int ndataOffset(long struct) Unsafe version ofdataOffset()
. -
nsubdivisionLevel
public static short nsubdivisionLevel(long struct) Unsafe version ofsubdivisionLevel()
. -
nformat
public static short nformat(long struct) Unsafe version offormat()
. -
ndataOffset
public static void ndataOffset(long struct, int value) Unsafe version ofdataOffset
. -
nsubdivisionLevel
public static void nsubdivisionLevel(long struct, short value) Unsafe version ofsubdivisionLevel
. -
nformat
public static void nformat(long struct, short value) Unsafe version offormat
.
-