Class VkDescriptorMappingSourceDataEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDescriptorMappingSourceDataEXT>
org.lwjgl.vulkan.VkDescriptorMappingSourceDataEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkDescriptorMappingSourceDataEXT
extends Struct<VkDescriptorMappingSourceDataEXT>
implements NativeResource
union VkDescriptorMappingSourceDataEXT {
VkDescriptorMappingSourceConstantOffsetEXT constantOffset;
VkDescriptorMappingSourcePushIndexEXT pushIndex;
VkDescriptorMappingSourceIndirectIndexEXT indirectIndex;
VkDescriptorMappingSourceIndirectIndexArrayEXT indirectIndexArray;
VkDescriptorMappingSourceHeapDataEXT heapData;
uint32_t pushDataOffset;
uint32_t pushAddressOffset;
VkDescriptorMappingSourceIndirectAddressEXT indirectAddress;
VkDescriptorMappingSourceShaderRecordIndexEXT shaderRecordIndex;
uint32_t shaderRecordDataOffset;
uint32_t shaderRecordAddressOffset;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkDescriptorMappingSourceDataEXTstructs.Nested 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 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 member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkDescriptorMappingSourceDataEXT(ByteBuffer container) Creates aVkDescriptorMappingSourceDataEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkDescriptorMappingSourceDataEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkDescriptorMappingSourceDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.Passes theconstantOffsetfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceConstantOffsetEXTto theconstantOffsetfield.create()Returns a newVkDescriptorMappingSourceDataEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkDescriptorMappingSourceDataEXTinstance for the specified memory address.create(long address, int capacity) Create aVkDescriptorMappingSourceDataEXT.Bufferinstance at the specified memory.static @Nullable VkDescriptorMappingSourceDataEXTcreateSafe(long address) static @Nullable VkDescriptorMappingSourceDataEXT.BuffercreateSafe(long address, int capacity) heapData()heapData(Consumer<VkDescriptorMappingSourceHeapDataEXT> consumer) Passes theheapDatafield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceHeapDataEXTto theheapDatafield.Passes theindirectAddressfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceIndirectAddressEXTto theindirectAddressfield.Passes theindirectIndexfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceIndirectIndexEXTto theindirectIndexfield.Passes theindirectIndexArrayfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceIndirectIndexArrayEXTto theindirectIndexArrayfield.malloc()Returns a newVkDescriptorMappingSourceDataEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkDescriptorMappingSourceDataEXTinstance allocated on the specifiedMemoryStack.nconstantOffset(long struct) Unsafe version ofconstantOffset().static voidnconstantOffset(long struct, VkDescriptorMappingSourceConstantOffsetEXT value) Unsafe version ofconstantOffset.nheapData(long struct) Unsafe version ofheapData().static voidnheapData(long struct, VkDescriptorMappingSourceHeapDataEXT value) Unsafe version ofheapData.nindirectAddress(long struct) Unsafe version ofindirectAddress().static voidnindirectAddress(long struct, VkDescriptorMappingSourceIndirectAddressEXT value) Unsafe version ofindirectAddress.nindirectIndex(long struct) Unsafe version ofindirectIndex().static voidnindirectIndex(long struct, VkDescriptorMappingSourceIndirectIndexEXT value) Unsafe version ofindirectIndex.nindirectIndexArray(long struct) Unsafe version ofindirectIndexArray().static voidnindirectIndexArray(long struct, VkDescriptorMappingSourceIndirectIndexArrayEXT value) Unsafe version ofindirectIndexArray.static intnpushAddressOffset(long struct) Unsafe version ofpushAddressOffset().static voidnpushAddressOffset(long struct, int value) Unsafe version ofpushAddressOffset.static intnpushDataOffset(long struct) Unsafe version ofpushDataOffset().static voidnpushDataOffset(long struct, int value) Unsafe version ofpushDataOffset.npushIndex(long struct) Unsafe version ofpushIndex().static voidnpushIndex(long struct, VkDescriptorMappingSourcePushIndexEXT value) Unsafe version ofpushIndex.static intnshaderRecordAddressOffset(long struct) Unsafe version ofshaderRecordAddressOffset().static voidnshaderRecordAddressOffset(long struct, int value) Unsafe version ofshaderRecordAddressOffset.static intnshaderRecordDataOffset(long struct) Unsafe version ofshaderRecordDataOffset().static voidnshaderRecordDataOffset(long struct, int value) Unsafe version ofshaderRecordDataOffset.nshaderRecordIndex(long struct) Unsafe version ofshaderRecordIndex().static voidnshaderRecordIndex(long struct, VkDescriptorMappingSourceShaderRecordIndexEXT value) Unsafe version ofshaderRecordIndex.intpushAddressOffset(int value) Sets the specified value to thepushAddressOffsetfield.intpushDataOffset(int value) Sets the specified value to thepushDataOffsetfield.Passes thepushIndexfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourcePushIndexEXTto thepushIndexfield.Copies the specified struct data to this struct.intshaderRecordAddressOffset(int value) Sets the specified value to theshaderRecordAddressOffsetfield.intshaderRecordDataOffset(int value) Sets the specified value to theshaderRecordDataOffsetfield.Passes theshaderRecordIndexfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceShaderRecordIndexEXTto theshaderRecordIndexfield.intsizeof()Returnssizeof(struct).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. -
CONSTANTOFFSET
public static final int CONSTANTOFFSETThe struct member offsets. -
PUSHINDEX
public static final int PUSHINDEXThe struct member offsets. -
INDIRECTINDEX
public static final int INDIRECTINDEXThe struct member offsets. -
INDIRECTINDEXARRAY
public static final int INDIRECTINDEXARRAYThe struct member offsets. -
HEAPDATA
public static final int HEAPDATAThe struct member offsets. -
PUSHDATAOFFSET
public static final int PUSHDATAOFFSETThe struct member offsets. -
PUSHADDRESSOFFSET
public static final int PUSHADDRESSOFFSETThe struct member offsets. -
INDIRECTADDRESS
public static final int INDIRECTADDRESSThe struct member offsets. -
SHADERRECORDINDEX
public static final int SHADERRECORDINDEXThe struct member offsets. -
SHADERRECORDDATAOFFSET
public static final int SHADERRECORDDATAOFFSETThe struct member offsets. -
SHADERRECORDADDRESSOFFSET
public static final int SHADERRECORDADDRESSOFFSETThe struct member offsets.
-
-
Constructor Details
-
VkDescriptorMappingSourceDataEXT
Creates aVkDescriptorMappingSourceDataEXTinstance 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<VkDescriptorMappingSourceDataEXT>
-
constantOffset
- Returns:
- a
VkDescriptorMappingSourceConstantOffsetEXTview of theconstantOffsetfield.
-
pushIndex
- Returns:
- a
VkDescriptorMappingSourcePushIndexEXTview of thepushIndexfield.
-
indirectIndex
- Returns:
- a
VkDescriptorMappingSourceIndirectIndexEXTview of theindirectIndexfield.
-
indirectIndexArray
- Returns:
- a
VkDescriptorMappingSourceIndirectIndexArrayEXTview of theindirectIndexArrayfield.
-
heapData
- Returns:
- a
VkDescriptorMappingSourceHeapDataEXTview of theheapDatafield.
-
pushDataOffset
- Returns:
- the value of the
pushDataOffsetfield.
-
pushAddressOffset
- Returns:
- the value of the
pushAddressOffsetfield.
-
indirectAddress
- Returns:
- a
VkDescriptorMappingSourceIndirectAddressEXTview of theindirectAddressfield.
-
shaderRecordIndex
- Returns:
- a
VkDescriptorMappingSourceShaderRecordIndexEXTview of theshaderRecordIndexfield.
-
shaderRecordDataOffset
- Returns:
- the value of the
shaderRecordDataOffsetfield.
-
shaderRecordAddressOffset
- Returns:
- the value of the
shaderRecordAddressOffsetfield.
-
constantOffset
public VkDescriptorMappingSourceDataEXT constantOffset(VkDescriptorMappingSourceConstantOffsetEXT value) Copies the specifiedVkDescriptorMappingSourceConstantOffsetEXTto theconstantOffsetfield. -
constantOffset
public VkDescriptorMappingSourceDataEXT constantOffset(Consumer<VkDescriptorMappingSourceConstantOffsetEXT> consumer) Passes theconstantOffsetfield to the specifiedConsumer. -
pushIndex
Copies the specifiedVkDescriptorMappingSourcePushIndexEXTto thepushIndexfield. -
pushIndex
public VkDescriptorMappingSourceDataEXT pushIndex(Consumer<VkDescriptorMappingSourcePushIndexEXT> consumer) Passes thepushIndexfield to the specifiedConsumer. -
indirectIndex
public VkDescriptorMappingSourceDataEXT indirectIndex(VkDescriptorMappingSourceIndirectIndexEXT value) Copies the specifiedVkDescriptorMappingSourceIndirectIndexEXTto theindirectIndexfield. -
indirectIndex
public VkDescriptorMappingSourceDataEXT indirectIndex(Consumer<VkDescriptorMappingSourceIndirectIndexEXT> consumer) Passes theindirectIndexfield to the specifiedConsumer. -
indirectIndexArray
public VkDescriptorMappingSourceDataEXT indirectIndexArray(VkDescriptorMappingSourceIndirectIndexArrayEXT value) Copies the specifiedVkDescriptorMappingSourceIndirectIndexArrayEXTto theindirectIndexArrayfield. -
indirectIndexArray
public VkDescriptorMappingSourceDataEXT indirectIndexArray(Consumer<VkDescriptorMappingSourceIndirectIndexArrayEXT> consumer) Passes theindirectIndexArrayfield to the specifiedConsumer. -
heapData
Copies the specifiedVkDescriptorMappingSourceHeapDataEXTto theheapDatafield. -
heapData
public VkDescriptorMappingSourceDataEXT heapData(Consumer<VkDescriptorMappingSourceHeapDataEXT> consumer) Passes theheapDatafield to the specifiedConsumer. -
pushDataOffset
Sets the specified value to thepushDataOffsetfield. -
pushAddressOffset
Sets the specified value to thepushAddressOffsetfield. -
indirectAddress
public VkDescriptorMappingSourceDataEXT indirectAddress(VkDescriptorMappingSourceIndirectAddressEXT value) Copies the specifiedVkDescriptorMappingSourceIndirectAddressEXTto theindirectAddressfield. -
indirectAddress
public VkDescriptorMappingSourceDataEXT indirectAddress(Consumer<VkDescriptorMappingSourceIndirectAddressEXT> consumer) Passes theindirectAddressfield to the specifiedConsumer. -
shaderRecordIndex
public VkDescriptorMappingSourceDataEXT shaderRecordIndex(VkDescriptorMappingSourceShaderRecordIndexEXT value) Copies the specifiedVkDescriptorMappingSourceShaderRecordIndexEXTto theshaderRecordIndexfield. -
shaderRecordIndex
public VkDescriptorMappingSourceDataEXT shaderRecordIndex(Consumer<VkDescriptorMappingSourceShaderRecordIndexEXT> consumer) Passes theshaderRecordIndexfield to the specifiedConsumer. -
shaderRecordDataOffset
Sets the specified value to theshaderRecordDataOffsetfield. -
shaderRecordAddressOffset
public VkDescriptorMappingSourceDataEXT shaderRecordAddressOffset(@NativeType("uint32_t") int value) Sets the specified value to theshaderRecordAddressOffsetfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDescriptorMappingSourceDataEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorMappingSourceDataEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDescriptorMappingSourceDataEXTinstance allocated withBufferUtils. -
create
Returns a newVkDescriptorMappingSourceDataEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDescriptorMappingSourceDataEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkDescriptorMappingSourceDataEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkDescriptorMappingSourceDataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorMappingSourceDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorMappingSourceDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nconstantOffset
Unsafe version ofconstantOffset(). -
npushIndex
Unsafe version ofpushIndex(). -
nindirectIndex
Unsafe version ofindirectIndex(). -
nindirectIndexArray
Unsafe version ofindirectIndexArray(). -
nheapData
Unsafe version ofheapData(). -
npushDataOffset
public static int npushDataOffset(long struct) Unsafe version ofpushDataOffset(). -
npushAddressOffset
public static int npushAddressOffset(long struct) Unsafe version ofpushAddressOffset(). -
nindirectAddress
Unsafe version ofindirectAddress(). -
nshaderRecordIndex
Unsafe version ofshaderRecordIndex(). -
nshaderRecordDataOffset
public static int nshaderRecordDataOffset(long struct) Unsafe version ofshaderRecordDataOffset(). -
nshaderRecordAddressOffset
public static int nshaderRecordAddressOffset(long struct) Unsafe version ofshaderRecordAddressOffset(). -
nconstantOffset
Unsafe version ofconstantOffset. -
npushIndex
Unsafe version ofpushIndex. -
nindirectIndex
Unsafe version ofindirectIndex. -
nindirectIndexArray
public static void nindirectIndexArray(long struct, VkDescriptorMappingSourceIndirectIndexArrayEXT value) Unsafe version ofindirectIndexArray. -
nheapData
Unsafe version ofheapData. -
npushDataOffset
public static void npushDataOffset(long struct, int value) Unsafe version ofpushDataOffset. -
npushAddressOffset
public static void npushAddressOffset(long struct, int value) Unsafe version ofpushAddressOffset. -
nindirectAddress
Unsafe version ofindirectAddress. -
nshaderRecordIndex
public static void nshaderRecordIndex(long struct, VkDescriptorMappingSourceShaderRecordIndexEXT value) Unsafe version ofshaderRecordIndex. -
nshaderRecordDataOffset
public static void nshaderRecordDataOffset(long struct, int value) Unsafe version ofshaderRecordDataOffset. -
nshaderRecordAddressOffset
public static void nshaderRecordAddressOffset(long struct, int value) Unsafe version ofshaderRecordAddressOffset.
-