Class VkMicromapTriangleEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkMicromapTriangleKHR>
org.lwjgl.vulkan.VkMicromapTriangleKHR
org.lwjgl.vulkan.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 Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from class VkMicromapTriangleKHR
ALIGNOF, DATAOFFSET, FORMAT, SIZEOF, SUBDIVISIONLEVELFields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkMicromapTriangleEXT(ByteBuffer container) Creates aVkMicromapTriangleEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMicromapTriangleEXTcalloc()Returns a newVkMicromapTriangleEXTinstance allocated withmemCalloc.static VkMicromapTriangleEXT.Buffercalloc(int capacity) Returns a newVkMicromapTriangleEXT.Bufferinstance allocated withmemCalloc.static VkMicromapTriangleEXT.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkMicromapTriangleEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMicromapTriangleEXTcalloc(MemoryStack stack) Returns a newVkMicromapTriangleEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMicromapTriangleEXTcreate()Returns a newVkMicromapTriangleEXTinstance allocated withBufferUtils.static VkMicromapTriangleEXT.Buffercreate(int capacity) Returns a newVkMicromapTriangleEXT.Bufferinstance allocated withBufferUtils.static VkMicromapTriangleEXTcreate(long address) Returns a newVkMicromapTriangleEXTinstance for the specified memory address.static VkMicromapTriangleEXT.Buffercreate(long address, int capacity) Create aVkMicromapTriangleEXT.Bufferinstance at the specified memory.static @Nullable VkMicromapTriangleEXTcreateSafe(long address) static @Nullable VkMicromapTriangleEXT.BuffercreateSafe(long address, int capacity) dataOffset(int value) Sets the specified value to thedataOffsetfield.format(short value) Sets the specified value to theformatfield.static VkMicromapTriangleEXTmalloc()Returns a newVkMicromapTriangleEXTinstance allocated withmemAlloc.static VkMicromapTriangleEXT.Buffermalloc(int capacity) Returns a newVkMicromapTriangleEXT.Bufferinstance allocated withmemAlloc.static VkMicromapTriangleEXT.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkMicromapTriangleEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkMicromapTriangleEXTmalloc(MemoryStack stack) Returns a newVkMicromapTriangleEXTinstance allocated on the specifiedMemoryStack.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.subdivisionLevel(short value) Sets the specified value to thesubdivisionLevelfield.Methods inherited from class VkMicromapTriangleKHR
dataOffset, format, ndataOffset, ndataOffset, nformat, nformat, nsubdivisionLevel, nsubdivisionLevel, set, sizeof, subdivisionLevelMethods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
VkMicromapTriangleEXT
Creates aVkMicromapTriangleEXTinstance 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
-
dataOffset
Sets the specified value to thedataOffsetfield.- Overrides:
dataOffsetin classVkMicromapTriangleKHR
-
subdivisionLevel
Sets the specified value to thesubdivisionLevelfield.- Overrides:
subdivisionLevelin classVkMicromapTriangleKHR
-
format
Sets the specified value to theformatfield.- Overrides:
formatin classVkMicromapTriangleKHR
-
set
Initializes this struct with the specified values.- Overrides:
setin classVkMicromapTriangleKHR
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkMicromapTriangleEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkMicromapTriangleEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkMicromapTriangleEXTinstance allocated withBufferUtils. -
create
Returns a newVkMicromapTriangleEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMicromapTriangleEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkMicromapTriangleEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkMicromapTriangleEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkMicromapTriangleEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMicromapTriangleEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkMicromapTriangleEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkMicromapTriangleEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkMicromapTriangleEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-