public class VkDescriptorSetLayoutCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
VkDescriptorSetLayoutBinding::binding members of the elements of the pBindings array must each have different values.flags contains DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR, then all elements of pBindings must not have a descriptorType of DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC or DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMICflags contains DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR, then all elements of pBindings must not have a descriptorType of DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXTflags contains DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR, then the total number of elements of all bindings must be less than or equal to VkPhysicalDevicePushDescriptorPropertiesKHR::maxPushDescriptorsDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT_EXT bit set, flags must include DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXTDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT_EXT bit set, then all bindings must not have descriptorType of DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC or DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMICsType must be STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFOpNext must be NULL or a pointer to a valid instance of VkDescriptorSetLayoutBindingFlagsCreateInfoEXTflags must be a valid combination of VkDescriptorSetLayoutCreateFlagBits valuesbindingCount is not 0, pBindings must be a valid pointer to an array of bindingCount valid VkDescriptorSetLayoutBinding structuresVkDescriptorSetLayoutBinding, CreateDescriptorSetLayout, GetDescriptorSetLayoutSupport, GetDescriptorSetLayoutSupportKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkDescriptorSetLayoutCreateFlagBits specifying options for descriptor set layout creation.bindingCount – the number of elements in pBindings.pBindings – a pointer to an array of VkDescriptorSetLayoutBinding structures.
struct VkDescriptorSetLayoutCreateInfo {
VkStructureType sType;
void const * pNext;
VkDescriptorSetLayoutCreateFlags flags;
uint32_t bindingCount;
VkDescriptorSetLayoutBinding const * pBindings;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDescriptorSetLayoutCreateInfo.Buffer
An array of
VkDescriptorSetLayoutCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINDINGCOUNT
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PBINDINGS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDescriptorSetLayoutCreateInfo(java.nio.ByteBuffer container)
Creates a
VkDescriptorSetLayoutCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
bindingCount()
Returns the value of the
bindingCount field. |
static VkDescriptorSetLayoutCreateInfo |
calloc()
Returns a new
VkDescriptorSetLayoutCreateInfo instance allocated with memCalloc. |
static VkDescriptorSetLayoutCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated with memCalloc. |
static VkDescriptorSetLayoutCreateInfo |
callocStack()
Returns a new
VkDescriptorSetLayoutCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetLayoutCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetLayoutCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetLayoutCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetLayoutCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetLayoutCreateInfo |
create()
Returns a new
VkDescriptorSetLayoutCreateInfo instance allocated with BufferUtils. |
static VkDescriptorSetLayoutCreateInfo.Buffer |
create(int capacity)
Returns a new
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated with BufferUtils. |
static VkDescriptorSetLayoutCreateInfo |
create(long address)
Returns a new
VkDescriptorSetLayoutCreateInfo instance for the specified memory address. |
static VkDescriptorSetLayoutCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkDescriptorSetLayoutCreateInfo.Buffer instance at the specified memory. |
static VkDescriptorSetLayoutCreateInfo |
createSafe(long address)
|
static VkDescriptorSetLayoutCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkDescriptorSetLayoutCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkDescriptorSetLayoutCreateInfo |
malloc()
Returns a new
VkDescriptorSetLayoutCreateInfo instance allocated with memAlloc. |
static VkDescriptorSetLayoutCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated with memAlloc. |
static VkDescriptorSetLayoutCreateInfo |
mallocStack()
Returns a new
VkDescriptorSetLayoutCreateInfo instance allocated on the thread-local MemoryStack. |
static VkDescriptorSetLayoutCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkDescriptorSetLayoutCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkDescriptorSetLayoutCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetLayoutCreateInfo instance allocated on the specified MemoryStack. |
static int |
nbindingCount(long struct)
Unsafe version of
bindingCount(). |
static void |
nbindingCount(long struct,
int value)
Sets the specified value to the
bindingCount field of the specified struct. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkDescriptorSetLayoutBinding.Buffer |
npBindings(long struct)
Unsafe version of
pBindings(). |
static void |
npBindings(long struct,
VkDescriptorSetLayoutBinding.Buffer value)
Unsafe version of
pBindings. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkDescriptorSetLayoutBinding.Buffer |
pBindings()
Returns a
VkDescriptorSetLayoutBinding.Buffer view of the struct array pointed to by the pBindings field. |
VkDescriptorSetLayoutCreateInfo |
pBindings(VkDescriptorSetLayoutBinding.Buffer value)
Sets the address of the specified
VkDescriptorSetLayoutBinding.Buffer to the pBindings field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDescriptorSetLayoutCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDescriptorSetLayoutCreateInfo |
set(int sType,
long pNext,
int flags,
VkDescriptorSetLayoutBinding.Buffer pBindings)
Initializes this struct with the specified values.
|
VkDescriptorSetLayoutCreateInfo |
set(VkDescriptorSetLayoutCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDescriptorSetLayoutCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int BINDINGCOUNT
public static final int PBINDINGS
public VkDescriptorSetLayoutCreateInfo(java.nio.ByteBuffer container)
VkDescriptorSetLayoutCreateInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int bindingCount()
bindingCount field.@Nullable public VkDescriptorSetLayoutBinding.Buffer pBindings()
VkDescriptorSetLayoutBinding.Buffer view of the struct array pointed to by the pBindings field.public VkDescriptorSetLayoutCreateInfo sType(int value)
sType field.public VkDescriptorSetLayoutCreateInfo pNext(long value)
pNext field.public VkDescriptorSetLayoutCreateInfo flags(int value)
flags field.public VkDescriptorSetLayoutCreateInfo pBindings(@Nullable VkDescriptorSetLayoutBinding.Buffer value)
VkDescriptorSetLayoutBinding.Buffer to the pBindings field.public VkDescriptorSetLayoutCreateInfo set(int sType, long pNext, int flags, @Nullable VkDescriptorSetLayoutBinding.Buffer pBindings)
public VkDescriptorSetLayoutCreateInfo set(VkDescriptorSetLayoutCreateInfo src)
src - the source structpublic static VkDescriptorSetLayoutCreateInfo malloc()
VkDescriptorSetLayoutCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkDescriptorSetLayoutCreateInfo calloc()
VkDescriptorSetLayoutCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkDescriptorSetLayoutCreateInfo create()
VkDescriptorSetLayoutCreateInfo instance allocated with BufferUtils.public static VkDescriptorSetLayoutCreateInfo create(long address)
VkDescriptorSetLayoutCreateInfo instance for the specified memory address.@Nullable public static VkDescriptorSetLayoutCreateInfo createSafe(long address)
public static VkDescriptorSetLayoutCreateInfo.Buffer malloc(int capacity)
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorSetLayoutCreateInfo.Buffer calloc(int capacity)
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorSetLayoutCreateInfo.Buffer create(int capacity)
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDescriptorSetLayoutCreateInfo.Buffer create(long address, int capacity)
VkDescriptorSetLayoutCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDescriptorSetLayoutCreateInfo.Buffer createSafe(long address, int capacity)
public static VkDescriptorSetLayoutCreateInfo mallocStack()
VkDescriptorSetLayoutCreateInfo instance allocated on the thread-local MemoryStack.public static VkDescriptorSetLayoutCreateInfo callocStack()
VkDescriptorSetLayoutCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDescriptorSetLayoutCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorSetLayoutCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDescriptorSetLayoutCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorSetLayoutCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDescriptorSetLayoutCreateInfo.Buffer mallocStack(int capacity)
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDescriptorSetLayoutCreateInfo.Buffer callocStack(int capacity)
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDescriptorSetLayoutCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDescriptorSetLayoutCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorSetLayoutCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nbindingCount(long struct)
bindingCount().@Nullable public static VkDescriptorSetLayoutBinding.Buffer npBindings(long struct)
pBindings().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nbindingCount(long struct,
int value)
bindingCount field of the specified struct.public static void npBindings(long struct,
@Nullable
VkDescriptorSetLayoutBinding.Buffer value)
pBindings.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.