For DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC and DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC descriptor types, offset is the base offset from which the dynamic offset is applied and range is the static size used for all dynamic offsets.
When range is WHOLE_SIZE the effective range is calculated at UpdateDescriptorSets is by taking the size of buffer minus the offset.
offset must be less than the size of bufferrange is not equal to WHOLE_SIZE, range must be greater than 0range is not equal to WHOLE_SIZE, range must be less than or equal to the size of buffer minus offsetnullDescriptor feature is not enabled, buffer must not be NULL_HANDLEbuffer is NULL_HANDLE, offset must be zero and range must be WHOLE_SIZEbuffer is not NULL_HANDLE, buffer must be a valid VkBuffer handle
struct VkDescriptorBufferInfo {
VkBuffer buffer;
VkDeviceSize offset;
VkDeviceSize range;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkDescriptorBufferInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BUFFER
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | RANGE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkDescriptorBufferInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkDescriptorBufferInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDescriptorBufferInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo. | |
| public static VkDescriptorBufferInfo. | |
| protected VkDescriptorBufferInfo | 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 VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VkDescriptorBufferInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo. | |
| public static VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkDescriptorBufferInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDescriptorBufferInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo | |
| public static VkDescriptorBufferInfo. | |
| public static VkDescriptorBufferInfo. | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public VkDescriptorBufferInfo | |
| public long | range()
the size in bytes that is used for this descriptor update, or |
| public VkDescriptorBufferInfo | |
| public VkDescriptorBufferInfo | |
| public VkDescriptorBufferInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BUFFER | back to summary |
|---|---|
| public static final int BUFFER The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| RANGE | back to summary |
|---|---|
| public static final int RANGE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VkDescriptorBufferInfo | back to summary |
|---|---|
| protected VkDescriptorBufferInfo(long address, ByteBuffer container) | |
| VkDescriptorBufferInfo | back to summary |
|---|---|
| public VkDescriptorBufferInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| buffer | back to summary |
|---|---|
| public long buffer()
| |
| buffer | back to summary |
|---|---|
| public VkDescriptorBufferInfo buffer(long value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static VkDescriptorBufferInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDescriptorBufferInfo calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkDescriptorBufferInfo callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDescriptorBufferInfo callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkDescriptorBufferInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkDescriptorBufferInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkDescriptorBufferInfo create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkDescriptorBufferInfo createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Like
| |
| malloc | back to summary |
|---|---|
| public static VkDescriptorBufferInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDescriptorBufferInfo malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkDescriptorBufferInfo mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDescriptorBufferInfo mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDescriptorBufferInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nbuffer | back to summary |
|---|---|
| public static long nbuffer(long struct) Unsafe version of | |
| nbuffer | back to summary |
|---|---|
| public static void nbuffer(long struct, long value) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static long noffset(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, long value) Unsafe version of | |
| nrange | back to summary |
|---|---|
| public static long nrange(long struct) Unsafe version of | |
| nrange | back to summary |
|---|---|
| public static void nrange(long struct, long value) Unsafe version of | |
| offset | back to summary |
|---|---|
| public long offset() the offset in bytes from the start of
| |
| offset | back to summary |
|---|---|
| public VkDescriptorBufferInfo offset(long value) Sets the specified value to the | |
| range | back to summary |
|---|---|
| public long range() the size in bytes that is used for this descriptor update, or NoteWhen setting
| |
| range | back to summary |
|---|---|
| public VkDescriptorBufferInfo range(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkDescriptorBufferInfo set(long buffer, long offset, long range) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkDescriptorBufferInfo set(VkDescriptorBufferInfo src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VkDescriptorBufferInfo structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkDescriptorBufferInfo |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VkDescriptorBufferInfo. | |
| protected VkDescriptorBufferInfo | |
| public long | |
| public VkDescriptorBufferInfo. | |
| public long | |
| public VkDescriptorBufferInfo. | |
| protected VkDescriptorBufferInfo. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkDescriptorBufferInfo 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) | |
| buffer | back to summary |
|---|---|
public long buffer()
| |
| buffer | back to summary |
|---|---|
| public VkDescriptorBufferInfo. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkDescriptorBufferInfo getElementFactory() Implements abstract org.
| |
| offset | back to summary |
|---|---|
public long offset()
| |
| offset | back to summary |
|---|---|
| public VkDescriptorBufferInfo. Sets the specified value to the | |
| range | back to summary |
|---|---|
public long range()
| |
| range | back to summary |
|---|---|
| public VkDescriptorBufferInfo. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkDescriptorBufferInfo. Implements abstract org.
| |