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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aVkDescriptorSetLayoutBinding
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
binding()
binding
(int value) Sets the specified value to thebinding
field.static VkDescriptorSetLayoutBinding
calloc()
Returns a newVkDescriptorSetLayoutBinding
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorSetLayoutBinding
calloc
(MemoryStack stack) Returns a newVkDescriptorSetLayoutBinding
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorSetLayoutBinding
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static VkDescriptorSetLayoutBinding
callocStack
(MemoryStack stack) Deprecated.static VkDescriptorSetLayoutBinding
create()
Returns a newVkDescriptorSetLayoutBinding
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated withBufferUtils
.static VkDescriptorSetLayoutBinding
create
(long address) Returns a newVkDescriptorSetLayoutBinding
instance for the specified memory address.create
(long address, int capacity) Create aVkDescriptorSetLayoutBinding.Buffer
instance at the specified memory.static @Nullable VkDescriptorSetLayoutBinding
createSafe
(long address) static @Nullable VkDescriptorSetLayoutBinding.Buffer
createSafe
(long address, int capacity) int
descriptorCount
(int value) Sets the specified value to thedescriptorCount
field.int
descriptorType
(int value) Sets the specified value to thedescriptorType
field.static VkDescriptorSetLayoutBinding
malloc()
Returns a newVkDescriptorSetLayoutBinding
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated on the specifiedMemoryStack
.static VkDescriptorSetLayoutBinding
malloc
(MemoryStack stack) Returns a newVkDescriptorSetLayoutBinding
instance allocated on the specifiedMemoryStack
.static VkDescriptorSetLayoutBinding
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkDescriptorSetLayoutBinding
mallocStack
(MemoryStack stack) Deprecated.static int
nbinding
(long struct) Unsafe version ofbinding()
.static void
nbinding
(long struct, int value) Unsafe version ofbinding
.static int
ndescriptorCount
(long struct) Unsafe version ofdescriptorCount()
.static void
ndescriptorCount
(long struct, int value) Sets the specified value to thedescriptorCount
field of the specifiedstruct
.static int
ndescriptorType
(long struct) Unsafe version ofdescriptorType()
.static void
ndescriptorType
(long struct, int value) Unsafe version ofdescriptorType
.static @Nullable LongBuffer
npImmutableSamplers
(long struct) Unsafe version ofpImmutableSamplers
.static void
npImmutableSamplers
(long struct, @Nullable LongBuffer value) Unsafe version ofpImmutableSamplers
.static int
nstageFlags
(long struct) Unsafe version ofstageFlags()
.static void
nstageFlags
(long struct, int value) Unsafe version ofstageFlags
.@Nullable LongBuffer
pImmutableSamplers
(@Nullable LongBuffer value) Sets the address of the specifiedLongBuffer
to thepImmutableSamplers
field.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.int
sizeof()
Returnssizeof(struct)
.int
stageFlags
(int value) Sets the specified value to thestageFlags
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVkDescriptorSetLayoutBinding
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkDescriptorSetLayoutBinding>
-
binding
public int binding()- Returns:
- the value of the
binding
field.
-
descriptorType
public int descriptorType()- Returns:
- the value of the
descriptorType
field.
-
descriptorCount
public int descriptorCount()- Returns:
- the value of the
descriptorCount
field.
-
stageFlags
public int stageFlags()- Returns:
- the value of the
stageFlags
field.
-
pImmutableSamplers
- Returns:
- a
LongBuffer
view of the data pointed to by thepImmutableSamplers
field.
-
binding
Sets the specified value to thebinding
field. -
descriptorType
Sets the specified value to thedescriptorType
field. -
descriptorCount
Sets the specified value to thedescriptorCount
field. -
stageFlags
Sets the specified value to thestageFlags
field. -
pImmutableSamplers
Sets the address of the specifiedLongBuffer
to thepImmutableSamplers
field. -
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 newVkDescriptorSetLayoutBinding
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorSetLayoutBinding
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkDescriptorSetLayoutBinding
instance allocated withBufferUtils
. -
create
Returns a newVkDescriptorSetLayoutBinding
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkDescriptorSetLayoutBinding.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static VkDescriptorSetLayoutBinding.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VkDescriptorSetLayoutBinding.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkDescriptorSetLayoutBinding
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkDescriptorSetLayoutBinding
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkDescriptorSetLayoutBinding.Buffer
instance allocated on the specifiedMemoryStack
and 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 thedescriptorCount
field of the specifiedstruct
. -
nstageFlags
public static void nstageFlags(long struct, int value) Unsafe version ofstageFlags
. -
npImmutableSamplers
Unsafe version ofpImmutableSamplers
.
-