Package org.lwjgl.vulkan
Class VkDescriptorSetLayoutBinding
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkDescriptorSetLayoutBinding
extends Struct<VkDescriptorSetLayoutBinding>
implements NativeResource
struct VkDescriptorSetLayoutBinding {
uint32_t binding;
VkDescriptorType descriptorType;
uint32_t descriptorCount;
VkShaderStageFlags stageFlags;
VkSampler const * pImmutableSamplers;
}-
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 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
ConstructorsConstructorDescriptionVkDescriptorSetLayoutBinding(ByteBuffer container) Creates aVkDescriptorSetLayoutBindinginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbinding()binding(int value) Sets the specified value to thebindingfield.static VkDescriptorSetLayoutBindingcalloc()Returns a newVkDescriptorSetLayoutBindinginstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetLayoutBindingcalloc(MemoryStack stack) Returns a newVkDescriptorSetLayoutBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetLayoutBindingcreate()Returns a newVkDescriptorSetLayoutBindinginstance allocated withBufferUtils.create(int capacity) Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated withBufferUtils.static VkDescriptorSetLayoutBindingcreate(long address) Returns a newVkDescriptorSetLayoutBindinginstance for the specified memory address.create(long address, int capacity) Create aVkDescriptorSetLayoutBinding.Bufferinstance at the specified memory.static @Nullable VkDescriptorSetLayoutBindingcreateSafe(long address) static @Nullable VkDescriptorSetLayoutBinding.BuffercreateSafe(long address, int capacity) intdescriptorCount(int value) Sets the specified value to thedescriptorCountfield.intdescriptorType(int value) Sets the specified value to thedescriptorTypefield.static VkDescriptorSetLayoutBindingmalloc()Returns a newVkDescriptorSetLayoutBindinginstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorSetLayoutBindingmalloc(MemoryStack stack) Returns a newVkDescriptorSetLayoutBindinginstance allocated on the specifiedMemoryStack.static intnbinding(long struct) Unsafe version ofbinding().static voidnbinding(long struct, int value) Unsafe version ofbinding.static intndescriptorCount(long struct) Unsafe version ofdescriptorCount().static voidndescriptorCount(long struct, int value) Sets the specified value to thedescriptorCountfield of the specifiedstruct.static intndescriptorType(long struct) Unsafe version ofdescriptorType().static voidndescriptorType(long struct, int value) Unsafe version ofdescriptorType.static @Nullable LongBuffernpImmutableSamplers(long struct) Unsafe version ofpImmutableSamplers.static voidnpImmutableSamplers(long struct, @Nullable LongBuffer value) Unsafe version ofpImmutableSamplers.static intnstageFlags(long struct) Unsafe version ofstageFlags().static voidnstageFlags(long struct, int value) Unsafe version ofstageFlags.@Nullable LongBufferpImmutableSamplers(@Nullable LongBuffer value) Sets the address of the specifiedLongBufferto thepImmutableSamplersfield.set(int binding, int descriptorType, int descriptorCount, int stageFlags, @Nullable LongBuffer pImmutableSamplers) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstageFlags(int value) Sets the specified value to thestageFlagsfield.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. -
BINDING
public static final int BINDINGThe struct member offsets. -
DESCRIPTORTYPE
public static final int DESCRIPTORTYPEThe struct member offsets. -
DESCRIPTORCOUNT
public static final int DESCRIPTORCOUNTThe struct member offsets. -
STAGEFLAGS
public static final int STAGEFLAGSThe struct member offsets. -
PIMMUTABLESAMPLERS
public static final int PIMMUTABLESAMPLERSThe struct member offsets.
-
-
Constructor Details
-
VkDescriptorSetLayoutBinding
Creates aVkDescriptorSetLayoutBindinginstance 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<VkDescriptorSetLayoutBinding>
-
binding
public int binding()- Returns:
- the value of the
bindingfield.
-
descriptorType
public int descriptorType()- Returns:
- the value of the
descriptorTypefield.
-
descriptorCount
public int descriptorCount()- Returns:
- the value of the
descriptorCountfield.
-
stageFlags
public int stageFlags()- Returns:
- the value of the
stageFlagsfield.
-
pImmutableSamplers
- Returns:
- a
LongBufferview of the data pointed to by thepImmutableSamplersfield.
-
binding
Sets the specified value to thebindingfield. -
descriptorType
Sets the specified value to thedescriptorTypefield. -
descriptorCount
Sets the specified value to thedescriptorCountfield. -
stageFlags
Sets the specified value to thestageFlagsfield. -
pImmutableSamplers
Sets the address of the specifiedLongBufferto thepImmutableSamplersfield. -
set
public VkDescriptorSetLayoutBinding set(int binding, int descriptorType, int descriptorCount, int stageFlags, @Nullable LongBuffer pImmutableSamplers) 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 newVkDescriptorSetLayoutBindinginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorSetLayoutBindinginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDescriptorSetLayoutBindinginstance allocated withBufferUtils. -
create
Returns a newVkDescriptorSetLayoutBindinginstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDescriptorSetLayoutBinding.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDescriptorSetLayoutBindinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorSetLayoutBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorSetLayoutBinding.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nbinding
public static int nbinding(long struct) Unsafe version ofbinding(). -
ndescriptorType
public static int ndescriptorType(long struct) Unsafe version ofdescriptorType(). -
ndescriptorCount
public static int ndescriptorCount(long struct) Unsafe version ofdescriptorCount(). -
nstageFlags
public static int nstageFlags(long struct) Unsafe version ofstageFlags(). -
npImmutableSamplers
Unsafe version ofpImmutableSamplers. -
nbinding
public static void nbinding(long struct, int value) Unsafe version ofbinding. -
ndescriptorType
public static void ndescriptorType(long struct, int value) Unsafe version ofdescriptorType. -
ndescriptorCount
public static void ndescriptorCount(long struct, int value) Sets the specified value to thedescriptorCountfield of the specifiedstruct. -
nstageFlags
public static void nstageFlags(long struct, int value) Unsafe version ofstageFlags. -
npImmutableSamplers
Unsafe version ofpImmutableSamplers.
-