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 then descriptorCount must be a multiple of 4type must be a valid VkDescriptorType value
struct VkDescriptorPoolSize {
VkDescriptorType type;
uint32_t descriptorCount;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkDescriptorPoolSize.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DESCRIPTORCOUNT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkDescriptorPoolSize(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkDescriptorPoolSize | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDescriptorPoolSize. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize. | |
| public static VkDescriptorPoolSize. | |
| protected VkDescriptorPoolSize | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize. | create(int
the buffer capacity capacity)Returns a new |
| public static VkDescriptorPoolSize. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize. | |
| public int | |
| public VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkDescriptorPoolSize | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDescriptorPoolSize. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize | |
| public static VkDescriptorPoolSize. | |
| public static VkDescriptorPoolSize. | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public VkDescriptorPoolSize | |
| public VkDescriptorPoolSize | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkDescriptorPoolSize |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DESCRIPTORCOUNT | back to summary |
|---|---|
| public static final int DESCRIPTORCOUNT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| VkDescriptorPoolSize | back to summary |
|---|---|
| protected VkDescriptorPoolSize(long address, ByteBuffer container) | |
| VkDescriptorPoolSize | back to summary |
|---|---|
| public VkDescriptorPoolSize(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkDescriptorPoolSize calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDescriptorPoolSize calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkDescriptorPoolSize callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDescriptorPoolSize callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkDescriptorPoolSize create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkDescriptorPoolSize create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkDescriptorPoolSize create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkDescriptorPoolSize createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Like
| |
| descriptorCount | back to summary |
|---|---|
| public int descriptorCount() the number of descriptors of that type to allocate. If
| |
| descriptorCount | back to summary |
|---|---|
| public VkDescriptorPoolSize descriptorCount(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkDescriptorPoolSize malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDescriptorPoolSize malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkDescriptorPoolSize mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDescriptorPoolSize mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDescriptorPoolSize. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ndescriptorCount | back to summary |
|---|---|
| public static int ndescriptorCount(long struct) Unsafe version of | |
| ndescriptorCount | back to summary |
|---|---|
| public static void ndescriptorCount(long struct, int value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public VkDescriptorPoolSize set(int type, int descriptorCount) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkDescriptorPoolSize set(VkDescriptorPoolSize src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() the type of descriptor.
| |
| type | back to summary |
|---|---|
| public VkDescriptorPoolSize type(int value) Sets the specified value to the | |
VkDescriptorPoolSize structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkDescriptorPoolSize |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkDescriptorPoolSize. | descriptorCount(int value)
Sets the specified value to the |
| protected VkDescriptorPoolSize | |
| protected VkDescriptorPoolSize. | |
| public int | |
| public VkDescriptorPoolSize. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkDescriptorPoolSize ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| descriptorCount | back to summary |
|---|---|
public int descriptorCount()
| |
| descriptorCount | back to summary |
|---|---|
| public VkDescriptorPoolSize. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkDescriptorPoolSize getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected VkDescriptorPoolSize. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public VkDescriptorPoolSize. Sets the specified value to the | |