Package org.lwjgl.vulkan
Class VkMicromapUsageEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkMicromapUsageEXT {
uint32_t count;
uint32_t subdivisionLevel;
uint32_t format;
}-
Nested Class Summary
Nested ClassesNested 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 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
ConstructorsConstructorDescriptionVkMicromapUsageEXT(ByteBuffer container) Creates aVkMicromapUsageEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMicromapUsageEXTcalloc()Returns a newVkMicromapUsageEXTinstance allocated withmemCalloc.static VkMicromapUsageEXT.Buffercalloc(int capacity) Returns a newVkMicromapUsageEXT.Bufferinstance allocated withmemCalloc.static VkMicromapUsageEXT.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkMicromapUsageEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMicromapUsageEXTcalloc(MemoryStack stack) Returns a newVkMicromapUsageEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcount()count(int value) Sets the specified value to thecountfield.static VkMicromapUsageEXTcreate()Returns a newVkMicromapUsageEXTinstance allocated withBufferUtils.static VkMicromapUsageEXT.Buffercreate(int capacity) Returns a newVkMicromapUsageEXT.Bufferinstance allocated withBufferUtils.static VkMicromapUsageEXTcreate(long address) Returns a newVkMicromapUsageEXTinstance for the specified memory address.static VkMicromapUsageEXT.Buffercreate(long address, int capacity) Create aVkMicromapUsageEXT.Bufferinstance at the specified memory.static @Nullable VkMicromapUsageEXTcreateSafe(long address) static @Nullable VkMicromapUsageEXT.BuffercreateSafe(long address, int capacity) intformat()format(int value) Sets the specified value to theformatfield.static VkMicromapUsageEXTmalloc()Returns a newVkMicromapUsageEXTinstance allocated withmemAlloc.static VkMicromapUsageEXT.Buffermalloc(int capacity) Returns a newVkMicromapUsageEXT.Bufferinstance allocated withmemAlloc.static VkMicromapUsageEXT.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkMicromapUsageEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkMicromapUsageEXTmalloc(MemoryStack stack) Returns a newVkMicromapUsageEXTinstance 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(VkMicromapUsageEXT 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 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. -
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
-
VkMicromapUsageEXT
Creates aVkMicromapUsageEXTinstance 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<VkMicromapUsageEXT>
-
count
public int count()- Returns:
- the value of the
countfield.
-
subdivisionLevel
public int subdivisionLevel()- Returns:
- the value of the
subdivisionLevelfield.
-
format
public int 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 newVkMicromapUsageEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkMicromapUsageEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkMicromapUsageEXTinstance allocated withBufferUtils. -
create
Returns a newVkMicromapUsageEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMicromapUsageEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkMicromapUsageEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkMicromapUsageEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkMicromapUsageEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMicromapUsageEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkMicromapUsageEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkMicromapUsageEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkMicromapUsageEXT.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.
-