public class VkDescriptorPoolSize
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
When creating a descriptor pool that will contain descriptors for combined image samplers of multi-planar formats, an application needs to account for non-trivial descriptor consumption when choosing the descriptorCount value, as indicated by VkSamplerYcbcrConversionImageFormatProperties::combinedImageSamplerDescriptorCount.
descriptorCount must be greater than 0type is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT then descriptorCount must be a multiple of 4type must be a valid VkDescriptorType valuetype – the type of descriptor.descriptorCount – the number of descriptors of that type to allocate. If type is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT then descriptorCount is the number of bytes to allocate for descriptors of this type.
struct VkDescriptorPoolSize {
VkDescriptorType type;
uint32_t descriptorCount;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDescriptorPoolSize.Buffer
An array of
VkDescriptorPoolSize structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DESCRIPTORCOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDescriptorPoolSize(java.nio.ByteBuffer container)
Creates a
VkDescriptorPoolSize instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDescriptorPoolSize |
calloc()
Returns a new
VkDescriptorPoolSize instance allocated with memCalloc. |
static VkDescriptorPoolSize.Buffer |
calloc(int capacity)
Returns a new
VkDescriptorPoolSize.Buffer instance allocated with memCalloc. |
static VkDescriptorPoolSize |
callocStack()
Returns a new
VkDescriptorPoolSize instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorPoolSize.Buffer |
callocStack(int capacity)
Returns a new
VkDescriptorPoolSize.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorPoolSize.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorPoolSize.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorPoolSize |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorPoolSize instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorPoolSize |
create()
Returns a new
VkDescriptorPoolSize instance allocated with BufferUtils. |
static VkDescriptorPoolSize.Buffer |
create(int capacity)
Returns a new
VkDescriptorPoolSize.Buffer instance allocated with BufferUtils. |
static VkDescriptorPoolSize |
create(long address)
Returns a new
VkDescriptorPoolSize instance for the specified memory address. |
static VkDescriptorPoolSize.Buffer |
create(long address,
int capacity)
Create a
VkDescriptorPoolSize.Buffer instance at the specified memory. |
static VkDescriptorPoolSize |
createSafe(long address)
|
static VkDescriptorPoolSize.Buffer |
createSafe(long address,
int capacity)
|
int |
descriptorCount()
Returns the value of the
descriptorCount field. |
VkDescriptorPoolSize |
descriptorCount(int value)
Sets the specified value to the
descriptorCount field. |
static VkDescriptorPoolSize |
malloc()
Returns a new
VkDescriptorPoolSize instance allocated with memAlloc. |
static VkDescriptorPoolSize.Buffer |
malloc(int capacity)
Returns a new
VkDescriptorPoolSize.Buffer instance allocated with memAlloc. |
static VkDescriptorPoolSize |
mallocStack()
Returns a new
VkDescriptorPoolSize instance allocated on the thread-local MemoryStack. |
static VkDescriptorPoolSize.Buffer |
mallocStack(int capacity)
Returns a new
VkDescriptorPoolSize.Buffer instance allocated on the thread-local MemoryStack. |
static VkDescriptorPoolSize.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorPoolSize.Buffer instance allocated on the specified MemoryStack. |
static VkDescriptorPoolSize |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorPoolSize instance allocated on the specified MemoryStack. |
static int |
ndescriptorCount(long struct)
Unsafe version of
descriptorCount(). |
static void |
ndescriptorCount(long struct,
int value)
Unsafe version of
descriptorCount. |
static int |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
VkDescriptorPoolSize |
set(int type,
int descriptorCount)
Initializes this struct with the specified values.
|
VkDescriptorPoolSize |
set(VkDescriptorPoolSize src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
VkDescriptorPoolSize |
type(int value)
Sets the specified value to the
type field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int DESCRIPTORCOUNT
public VkDescriptorPoolSize(java.nio.ByteBuffer container)
VkDescriptorPoolSize 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 type()
type field.public int descriptorCount()
descriptorCount field.public VkDescriptorPoolSize type(int value)
type field.public VkDescriptorPoolSize descriptorCount(int value)
descriptorCount field.public VkDescriptorPoolSize set(int type, int descriptorCount)
public VkDescriptorPoolSize set(VkDescriptorPoolSize src)
src - the source structpublic static VkDescriptorPoolSize malloc()
VkDescriptorPoolSize instance allocated with memAlloc. The instance must be explicitly freed.public static VkDescriptorPoolSize calloc()
VkDescriptorPoolSize instance allocated with memCalloc. The instance must be explicitly freed.public static VkDescriptorPoolSize create()
VkDescriptorPoolSize instance allocated with BufferUtils.public static VkDescriptorPoolSize create(long address)
VkDescriptorPoolSize instance for the specified memory address.@Nullable public static VkDescriptorPoolSize createSafe(long address)
public static VkDescriptorPoolSize.Buffer malloc(int capacity)
VkDescriptorPoolSize.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorPoolSize.Buffer calloc(int capacity)
VkDescriptorPoolSize.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorPoolSize.Buffer create(int capacity)
VkDescriptorPoolSize.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDescriptorPoolSize.Buffer create(long address, int capacity)
VkDescriptorPoolSize.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDescriptorPoolSize.Buffer createSafe(long address, int capacity)
public static VkDescriptorPoolSize mallocStack()
VkDescriptorPoolSize instance allocated on the thread-local MemoryStack.public static VkDescriptorPoolSize callocStack()
VkDescriptorPoolSize instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDescriptorPoolSize mallocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorPoolSize instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDescriptorPoolSize callocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorPoolSize instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDescriptorPoolSize.Buffer mallocStack(int capacity)
VkDescriptorPoolSize.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDescriptorPoolSize.Buffer callocStack(int capacity)
VkDescriptorPoolSize.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDescriptorPoolSize.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorPoolSize.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDescriptorPoolSize.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorPoolSize.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 ntype(long struct)
type().public static int ndescriptorCount(long struct)
descriptorCount().public static void ntype(long struct,
int value)
type.public static void ndescriptorCount(long struct,
int value)
descriptorCount.Copyright LWJGL. All Rights Reserved. License terms.