Package org.lwjgl.vulkan
Class VkMicromapBuildInfoEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkMicromapBuildInfoEXT
extends Struct<VkMicromapBuildInfoEXT>
implements NativeResource
struct VkMicromapBuildInfoEXT {
VkStructureType sType;
void const * pNext;
VkMicromapTypeEXT type;
VkBuildMicromapFlagsEXT flags;
VkBuildMicromapModeEXT mode;
VkMicromapEXT dstMicromap;
uint32_t usageCountsCount;
{@link VkMicromapUsageEXT VkMicromapUsageEXT} const * pUsageCounts;
{@link VkMicromapUsageEXT VkMicromapUsageEXT} const * const * ppUsageCounts;
{@link VkDeviceOrHostAddressConstKHR VkDeviceOrHostAddressConstKHR} data;
{@link VkDeviceOrHostAddressKHR VkDeviceOrHostAddressKHR} scratchData;
{@link VkDeviceOrHostAddressConstKHR VkDeviceOrHostAddressConstKHR} triangleArray;
VkDeviceSize triangleArrayStride;
}-
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 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.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionVkMicromapBuildInfoEXT(ByteBuffer container) Creates aVkMicromapBuildInfoEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMicromapBuildInfoEXTcalloc()Returns a newVkMicromapBuildInfoEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkMicromapBuildInfoEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkMicromapBuildInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMicromapBuildInfoEXTcalloc(MemoryStack stack) Returns a newVkMicromapBuildInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMicromapBuildInfoEXTcreate()Returns a newVkMicromapBuildInfoEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkMicromapBuildInfoEXT.Bufferinstance allocated withBufferUtils.static VkMicromapBuildInfoEXTcreate(long address) Returns a newVkMicromapBuildInfoEXTinstance for the specified memory address.create(long address, int capacity) Create aVkMicromapBuildInfoEXT.Bufferinstance at the specified memory.static @Nullable VkMicromapBuildInfoEXTcreateSafe(long address) static @Nullable VkMicromapBuildInfoEXT.BuffercreateSafe(long address, int capacity) data()data(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thedatafield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstKHRto thedatafield.longdstMicromap(long value) Sets the specified value to thedstMicromapfield.intflags()flags(int value) Sets the specified value to theflagsfield.static VkMicromapBuildInfoEXTmalloc()Returns a newVkMicromapBuildInfoEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkMicromapBuildInfoEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkMicromapBuildInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkMicromapBuildInfoEXTmalloc(MemoryStack stack) Returns a newVkMicromapBuildInfoEXTinstance allocated on the specifiedMemoryStack.intmode()mode(int value) Sets the specified value to themodefield.ndata(long struct) Unsafe version ofdata().static voidndata(long struct, VkDeviceOrHostAddressConstKHR value) Unsafe version ofdata.static longndstMicromap(long struct) Unsafe version ofdstMicromap().static voidndstMicromap(long struct, long value) Unsafe version ofdstMicromap.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnmode(long struct) Unsafe version ofmode().static voidnmode(long struct, int value) Unsafe version ofmode.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable PointerBuffernppUsageCounts(long struct) Unsafe version ofppUsageCounts.static voidnppUsageCounts(long struct, @Nullable PointerBuffer value) Unsafe version ofppUsageCounts.static @Nullable VkMicromapUsageEXT.BuffernpUsageCounts(long struct) Unsafe version ofpUsageCounts().static voidnpUsageCounts(long struct, @Nullable VkMicromapUsageEXT.Buffer value) Unsafe version ofpUsageCounts.static VkDeviceOrHostAddressKHRnscratchData(long struct) Unsafe version ofscratchData().static voidnscratchData(long struct, VkDeviceOrHostAddressKHR value) Unsafe version ofscratchData.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.ntriangleArray(long struct) Unsafe version oftriangleArray().static voidntriangleArray(long struct, VkDeviceOrHostAddressConstKHR value) Unsafe version oftriangleArray.static longntriangleArrayStride(long struct) Unsafe version oftriangleArrayStride().static voidntriangleArrayStride(long struct, long value) Unsafe version oftriangleArrayStride.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static intnusageCountsCount(long struct) Unsafe version ofusageCountsCount().static voidnusageCountsCount(long struct, int value) Sets the specified value to theusageCountsCountfield of the specifiedstruct.longpNext()pNext(long value) Sets the specified value to thepNextfield.@Nullable PointerBufferppUsageCounts(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theppUsageCountsfield.@Nullable VkMicromapUsageEXT.BufferpUsageCounts(@Nullable VkMicromapUsageEXT.Buffer value) Sets the address of the specifiedVkMicromapUsageEXT.Bufferto thepUsageCountsfield.scratchData(Consumer<VkDeviceOrHostAddressKHR> consumer) Passes thescratchDatafield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressKHRto thescratchDatafield.set(int sType, long pNext, int type, int flags, int mode, long dstMicromap, int usageCountsCount, @Nullable VkMicromapUsageEXT.Buffer pUsageCounts, @Nullable PointerBuffer ppUsageCounts, VkDeviceOrHostAddressConstKHR data, VkDeviceOrHostAddressKHR scratchData, VkDeviceOrHostAddressConstKHR triangleArray, long triangleArrayStride) 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_MICROMAP_BUILD_INFO_EXTvalue to thesTypefield.triangleArray(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thetriangleArrayfield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstKHRto thetriangleArrayfield.longtriangleArrayStride(long value) Sets the specified value to thetriangleArrayStridefield.inttype()type(int value) Sets the specified value to thetypefield.intusageCountsCount(int value) Sets the specified value to theusageCountsCountfield.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. -
TYPE
public static final int TYPEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
MODE
public static final int MODEThe struct member offsets. -
DSTMICROMAP
public static final int DSTMICROMAPThe struct member offsets. -
USAGECOUNTSCOUNT
public static final int USAGECOUNTSCOUNTThe struct member offsets. -
PUSAGECOUNTS
public static final int PUSAGECOUNTSThe struct member offsets. -
PPUSAGECOUNTS
public static final int PPUSAGECOUNTSThe struct member offsets. -
DATA
public static final int DATAThe struct member offsets. -
SCRATCHDATA
public static final int SCRATCHDATAThe struct member offsets. -
TRIANGLEARRAY
public static final int TRIANGLEARRAYThe struct member offsets. -
TRIANGLEARRAYSTRIDE
public static final int TRIANGLEARRAYSTRIDEThe struct member offsets.
-
-
Constructor Details
-
VkMicromapBuildInfoEXT
Creates aVkMicromapBuildInfoEXTinstance 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<VkMicromapBuildInfoEXT>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
type
public int type()- Returns:
- the value of the
typefield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
mode
public int mode()- Returns:
- the value of the
modefield.
-
dstMicromap
public long dstMicromap()- Returns:
- the value of the
dstMicromapfield.
-
usageCountsCount
public int usageCountsCount()- Returns:
- the value of the
usageCountsCountfield.
-
pUsageCounts
- Returns:
- a
VkMicromapUsageEXT.Bufferview of the struct array pointed to by thepUsageCountsfield.
-
ppUsageCounts
- Returns:
- a
PointerBufferview of the data pointed to by theppUsageCountsfield.
-
data
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of thedatafield.
-
scratchData
- Returns:
- a
VkDeviceOrHostAddressKHRview of thescratchDatafield.
-
triangleArray
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of thetriangleArrayfield.
-
triangleArrayStride
public long triangleArrayStride()- Returns:
- the value of the
triangleArrayStridefield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_MICROMAP_BUILD_INFO_EXTvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
type
Sets the specified value to thetypefield. -
flags
Sets the specified value to theflagsfield. -
mode
Sets the specified value to themodefield. -
dstMicromap
Sets the specified value to thedstMicromapfield. -
usageCountsCount
Sets the specified value to theusageCountsCountfield. -
pUsageCounts
Sets the address of the specifiedVkMicromapUsageEXT.Bufferto thepUsageCountsfield. -
ppUsageCounts
Sets the address of the specifiedPointerBufferto theppUsageCountsfield. -
data
Copies the specifiedVkDeviceOrHostAddressConstKHRto thedatafield. -
data
Passes thedatafield to the specifiedConsumer. -
scratchData
Copies the specifiedVkDeviceOrHostAddressKHRto thescratchDatafield. -
scratchData
Passes thescratchDatafield to the specifiedConsumer. -
triangleArray
Copies the specifiedVkDeviceOrHostAddressConstKHRto thetriangleArrayfield. -
triangleArray
Passes thetriangleArrayfield to the specifiedConsumer. -
triangleArrayStride
Sets the specified value to thetriangleArrayStridefield. -
set
public VkMicromapBuildInfoEXT set(int sType, long pNext, int type, int flags, int mode, long dstMicromap, int usageCountsCount, @Nullable VkMicromapUsageEXT.Buffer pUsageCounts, @Nullable PointerBuffer ppUsageCounts, VkDeviceOrHostAddressConstKHR data, VkDeviceOrHostAddressKHR scratchData, VkDeviceOrHostAddressConstKHR triangleArray, long triangleArrayStride) 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 newVkMicromapBuildInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkMicromapBuildInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkMicromapBuildInfoEXTinstance allocated withBufferUtils. -
create
Returns a newVkMicromapBuildInfoEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMicromapBuildInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkMicromapBuildInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkMicromapBuildInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkMicromapBuildInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMicromapBuildInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkMicromapBuildInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkMicromapBuildInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkMicromapBuildInfoEXT.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(). -
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nmode
public static int nmode(long struct) Unsafe version ofmode(). -
ndstMicromap
public static long ndstMicromap(long struct) Unsafe version ofdstMicromap(). -
nusageCountsCount
public static int nusageCountsCount(long struct) Unsafe version ofusageCountsCount(). -
npUsageCounts
Unsafe version ofpUsageCounts(). -
nppUsageCounts
Unsafe version ofppUsageCounts. -
ndata
Unsafe version ofdata(). -
nscratchData
Unsafe version ofscratchData(). -
ntriangleArray
Unsafe version oftriangleArray(). -
ntriangleArrayStride
public static long ntriangleArrayStride(long struct) Unsafe version oftriangleArrayStride(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nmode
public static void nmode(long struct, int value) Unsafe version ofmode. -
ndstMicromap
public static void ndstMicromap(long struct, long value) Unsafe version ofdstMicromap. -
nusageCountsCount
public static void nusageCountsCount(long struct, int value) Sets the specified value to theusageCountsCountfield of the specifiedstruct. -
npUsageCounts
Unsafe version ofpUsageCounts. -
nppUsageCounts
Unsafe version ofppUsageCounts. -
ndata
Unsafe version ofdata. -
nscratchData
Unsafe version ofscratchData. -
ntriangleArray
Unsafe version oftriangleArray. -
ntriangleArrayStride
public static void ntriangleArrayStride(long struct, long value) Unsafe version oftriangleArrayStride.
-