Class VkDescriptorSetAndBindingMappingEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDescriptorSetAndBindingMappingEXT>
org.lwjgl.vulkan.VkDescriptorSetAndBindingMappingEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkDescriptorSetAndBindingMappingEXT
extends Struct<VkDescriptorSetAndBindingMappingEXT>
implements NativeResource
struct VkDescriptorSetAndBindingMappingEXT {
VkStructureType sType;
void const * pNext;
uint32_t descriptorSet;
uint32_t firstBinding;
uint32_t bindingCount;
VkSpirvResourceTypeFlagsEXT resourceMask;
VkDescriptorMappingSourceEXT source;
VkDescriptorMappingSourceDataEXT sourceData;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkDescriptorSetAndBindingMappingEXTstructs.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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkDescriptorSetAndBindingMappingEXT(ByteBuffer container) Creates aVkDescriptorSetAndBindingMappingEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbindingCount(int value) Sets the specified value to thebindingCountfield.calloc()Returns a newVkDescriptorSetAndBindingMappingEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDescriptorSetAndBindingMappingEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDescriptorSetAndBindingMappingEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkDescriptorSetAndBindingMappingEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkDescriptorSetAndBindingMappingEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkDescriptorSetAndBindingMappingEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkDescriptorSetAndBindingMappingEXTinstance for the specified memory address.create(long address, int capacity) Create aVkDescriptorSetAndBindingMappingEXT.Bufferinstance at the specified memory.static @Nullable VkDescriptorSetAndBindingMappingEXTcreateSafe(long address) static @Nullable VkDescriptorSetAndBindingMappingEXT.BuffercreateSafe(long address, int capacity) intdescriptorSet(int value) Sets the specified value to thedescriptorSetfield.intfirstBinding(int value) Sets the specified value to thefirstBindingfield.malloc()Returns a newVkDescriptorSetAndBindingMappingEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDescriptorSetAndBindingMappingEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDescriptorSetAndBindingMappingEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkDescriptorSetAndBindingMappingEXTinstance allocated on the specifiedMemoryStack.static intnbindingCount(long struct) Unsafe version ofbindingCount().static voidnbindingCount(long struct, int value) Unsafe version ofbindingCount.static intndescriptorSet(long struct) Unsafe version ofdescriptorSet().static voidndescriptorSet(long struct, int value) Unsafe version ofdescriptorSet.static intnfirstBinding(long struct) Unsafe version offirstBinding().static voidnfirstBinding(long struct, int value) Unsafe version offirstBinding.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static intnresourceMask(long struct) Unsafe version ofresourceMask().static voidnresourceMask(long struct, int value) Unsafe version ofresourceMask.static intnsource(long struct) Unsafe version ofsource().static voidnsource(long struct, int value) Unsafe version ofsource.nsourceData(long struct) Unsafe version ofsourceData().static voidnsourceData(long struct, VkDescriptorMappingSourceDataEXT value) Unsafe version ofsourceData.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.longpNext()pNext(long value) Sets the specified value to thepNextfield.pNext(VkPushConstantBankInfoNV value) Prepends the specifiedVkPushConstantBankInfoNVvalue to thepNextchain.intresourceMask(int value) Sets the specified value to theresourceMaskfield.set(int sType, long pNext, int descriptorSet, int firstBinding, int bindingCount, int resourceMask, int source, VkDescriptorMappingSourceDataEXT sourceData) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsource()source(int value) Sets the specified value to thesourcefield.sourceData(Consumer<VkDescriptorMappingSourceDataEXT> consumer) Passes thesourceDatafield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceDataEXTto thesourceDatafield.intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_DESCRIPTOR_SET_AND_BINDING_MAPPING_EXTvalue to thesTypefield.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. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
DESCRIPTORSET
public static final int DESCRIPTORSETThe struct member offsets. -
FIRSTBINDING
public static final int FIRSTBINDINGThe struct member offsets. -
BINDINGCOUNT
public static final int BINDINGCOUNTThe struct member offsets. -
RESOURCEMASK
public static final int RESOURCEMASKThe struct member offsets. -
SOURCE
public static final int SOURCEThe struct member offsets. -
SOURCEDATA
public static final int SOURCEDATAThe struct member offsets.
-
-
Constructor Details
-
VkDescriptorSetAndBindingMappingEXT
Creates aVkDescriptorSetAndBindingMappingEXTinstance 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<VkDescriptorSetAndBindingMappingEXT>
-
sType
- Returns:
- the value of the
sTypefield.
-
pNext
- Returns:
- the value of the
pNextfield.
-
descriptorSet
- Returns:
- the value of the
descriptorSetfield.
-
firstBinding
- Returns:
- the value of the
firstBindingfield.
-
bindingCount
- Returns:
- the value of the
bindingCountfield.
-
resourceMask
- Returns:
- the value of the
resourceMaskfield.
-
source
- Returns:
- the value of the
sourcefield.
-
sourceData
- Returns:
- a
VkDescriptorMappingSourceDataEXTview of thesourceDatafield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_DESCRIPTOR_SET_AND_BINDING_MAPPING_EXTvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkPushConstantBankInfoNVvalue to thepNextchain. -
descriptorSet
Sets the specified value to thedescriptorSetfield. -
firstBinding
Sets the specified value to thefirstBindingfield. -
bindingCount
Sets the specified value to thebindingCountfield. -
resourceMask
public VkDescriptorSetAndBindingMappingEXT resourceMask(@NativeType("VkSpirvResourceTypeFlagsEXT") int value) Sets the specified value to theresourceMaskfield. -
source
public VkDescriptorSetAndBindingMappingEXT source(@NativeType("VkDescriptorMappingSourceEXT") int value) Sets the specified value to thesourcefield. -
sourceData
Copies the specifiedVkDescriptorMappingSourceDataEXTto thesourceDatafield. -
sourceData
public VkDescriptorSetAndBindingMappingEXT sourceData(Consumer<VkDescriptorMappingSourceDataEXT> consumer) Passes thesourceDatafield to the specifiedConsumer. -
set
public VkDescriptorSetAndBindingMappingEXT set(int sType, long pNext, int descriptorSet, int firstBinding, int bindingCount, int resourceMask, int source, VkDescriptorMappingSourceDataEXT sourceData) 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 newVkDescriptorSetAndBindingMappingEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorSetAndBindingMappingEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDescriptorSetAndBindingMappingEXTinstance allocated withBufferUtils. -
create
Returns a newVkDescriptorSetAndBindingMappingEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorSetAndBindingMappingEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDescriptorSetAndBindingMappingEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDescriptorSetAndBindingMappingEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDescriptorSetAndBindingMappingEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkDescriptorSetAndBindingMappingEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkDescriptorSetAndBindingMappingEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorSetAndBindingMappingEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDescriptorSetAndBindingMappingEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorSetAndBindingMappingEXT.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(). -
ndescriptorSet
public static int ndescriptorSet(long struct) Unsafe version ofdescriptorSet(). -
nfirstBinding
public static int nfirstBinding(long struct) Unsafe version offirstBinding(). -
nbindingCount
public static int nbindingCount(long struct) Unsafe version ofbindingCount(). -
nresourceMask
public static int nresourceMask(long struct) Unsafe version ofresourceMask(). -
nsource
public static int nsource(long struct) Unsafe version ofsource(). -
nsourceData
Unsafe version ofsourceData(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
ndescriptorSet
public static void ndescriptorSet(long struct, int value) Unsafe version ofdescriptorSet. -
nfirstBinding
public static void nfirstBinding(long struct, int value) Unsafe version offirstBinding. -
nbindingCount
public static void nbindingCount(long struct, int value) Unsafe version ofbindingCount. -
nresourceMask
public static void nresourceMask(long struct, int value) Unsafe version ofresourceMask. -
nsource
public static void nsource(long struct, int value) Unsafe version ofsource. -
nsourceData
Unsafe version ofsourceData.
-