Class VkMicromapUsageKHR
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct VkMicromapUsageKHR {
uint32_t count;
uint32_t subdivisionLevel;
VkOpacityMicromapFormatKHR format;
}-
Nested Class Summary
Nested ClassesNested 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 size in bytes.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkMicromapUsageKHR(ByteBuffer container) Creates aVkMicromapUsageKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMicromapUsageKHRcalloc()Returns a newVkMicromapUsageKHRinstance allocated withmemCalloc.static VkMicromapUsageKHR.Buffercalloc(int capacity) Returns a newVkMicromapUsageKHR.Bufferinstance allocated withmemCalloc.static VkMicromapUsageKHR.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkMicromapUsageKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMicromapUsageKHRcalloc(MemoryStack stack) Returns a newVkMicromapUsageKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcount()count(int value) Sets the specified value to thecountfield.static VkMicromapUsageKHRcreate()Returns a newVkMicromapUsageKHRinstance allocated withBufferUtils.static VkMicromapUsageKHR.Buffercreate(int capacity) Returns a newVkMicromapUsageKHR.Bufferinstance allocated withBufferUtils.static VkMicromapUsageKHRcreate(long address) Returns a newVkMicromapUsageKHRinstance for the specified memory address.static VkMicromapUsageKHR.Buffercreate(long address, int capacity) Create aVkMicromapUsageKHR.Bufferinstance at the specified memory.static @Nullable VkMicromapUsageKHRcreateSafe(long address) static @Nullable VkMicromapUsageKHR.BuffercreateSafe(long address, int capacity) intformat()format(int value) Sets the specified value to theformatfield.static VkMicromapUsageKHRmalloc()Returns a newVkMicromapUsageKHRinstance allocated withmemAlloc.static VkMicromapUsageKHR.Buffermalloc(int capacity) Returns a newVkMicromapUsageKHR.Bufferinstance allocated withmemAlloc.static VkMicromapUsageKHR.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkMicromapUsageKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkMicromapUsageKHRmalloc(MemoryStack stack) Returns a newVkMicromapUsageKHRinstance allocated on the specifiedMemoryStack.static intncount(long struct) Unsafe version ofcount().static voidncount(long struct, int value) Unsafe version ofcount.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static intnsubdivisionLevel(long struct) Unsafe version ofsubdivisionLevel().static voidnsubdivisionLevel(long struct, int value) Unsafe version ofsubdivisionLevel.set(int count, int subdivisionLevel, int format) Initializes this struct with the specified values.set(VkMicromapUsageKHR src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsubdivisionLevel(int value) Sets the specified value to thesubdivisionLevelfield.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. -
COUNT
public static final int COUNTThe struct member offsets. -
SUBDIVISIONLEVEL
public static final int SUBDIVISIONLEVELThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets.
-
-
Constructor Details
-
VkMicromapUsageKHR
Creates aVkMicromapUsageKHRinstance 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<VkMicromapUsageKHR>
-
count
- Returns:
- the value of the
countfield.
-
subdivisionLevel
- Returns:
- the value of the
subdivisionLevelfield.
-
format
- Returns:
- the value of the
formatfield.
-
count
Sets the specified value to thecountfield. -
subdivisionLevel
Sets the specified value to thesubdivisionLevelfield. -
format
Sets the specified value to theformatfield. -
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 newVkMicromapUsageKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkMicromapUsageKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkMicromapUsageKHRinstance allocated withBufferUtils. -
create
Returns a newVkMicromapUsageKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMicromapUsageKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkMicromapUsageKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkMicromapUsageKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkMicromapUsageKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMicromapUsageKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkMicromapUsageKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkMicromapUsageKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkMicromapUsageKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncount
public static int ncount(long struct) Unsafe version ofcount(). -
nsubdivisionLevel
public static int nsubdivisionLevel(long struct) Unsafe version ofsubdivisionLevel(). -
nformat
public static int nformat(long struct) Unsafe version offormat(). -
ncount
public static void ncount(long struct, int value) Unsafe version ofcount. -
nsubdivisionLevel
public static void nsubdivisionLevel(long struct, int value) Unsafe version ofsubdivisionLevel. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat.
-