If the pNext chain of VkBindBufferMemoryInfo includes a VkBindBufferMemoryDeviceGroupInfo structure, then that structure determines how memory is bound to buffers across multiple devices in a device group.
If deviceIndexCount is greater than zero, then on device index i the buffer is attached to the instance of memory on the physical device with device index pDeviceIndices[i].
If deviceIndexCount is zero and memory comes from a memory heap with the MEMORY_HEAP_MULTI_INSTANCE_BIT bit set, then it is as if pDeviceIndices contains consecutive indices from zero to the number of physical devices in the logical device, minus one. In other words, by default each physical device attaches to its own instance of memory.
If deviceIndexCount is zero and memory comes from a memory heap without the MEMORY_HEAP_MULTI_INSTANCE_BIT bit set, then it is as if pDeviceIndices contains an array of zeros. In other words, by default each physical device attaches to instance zero.
deviceIndexCount must either be zero or equal to the number of physical devices in the logical devicepDeviceIndices must be valid device indicessType must be STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFOdeviceIndexCount is not 0, pDeviceIndices must be a valid pointer to an array of deviceIndexCount uint32_t values
struct VkBindBufferMemoryDeviceGroupInfo {
VkStructureType sType;
void const * pNext;
uint32_t deviceIndexCount;
uint32_t const * pDeviceIndices;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkBindBufferMemoryDeviceGroupInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DEVICEINDEXCOUNT
The struct member offsets. |
| public static final int | PDEVICEINDICES
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkBindBufferMemoryDeviceGroupInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo | |
| public static VkBindBufferMemoryDeviceGroupInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkBindBufferMemoryDeviceGroupInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkBindBufferMemoryDeviceGroupInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkBindBufferMemoryDeviceGroupInfo | |
| public static VkBindBufferMemoryDeviceGroupInfo | |
| public static VkBindBufferMemoryDeviceGroupInfo. | |
| public static VkBindBufferMemoryDeviceGroupInfo. | |
| protected VkBindBufferMemoryDeviceGroupInfo | 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 VkBindBufferMemoryDeviceGroupInfo | |
| public static VkBindBufferMemoryDeviceGroupInfo | create(long address)
Returns a new |
| public static VkBindBufferMemoryDeviceGroupInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VkBindBufferMemoryDeviceGroupInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkBindBufferMemoryDeviceGroupInfo | |
| public static VkBindBufferMemoryDeviceGroupInfo. | |
| public int | |
| public static VkBindBufferMemoryDeviceGroupInfo | |
| public static VkBindBufferMemoryDeviceGroupInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkBindBufferMemoryDeviceGroupInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkBindBufferMemoryDeviceGroupInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkBindBufferMemoryDeviceGroupInfo | |
| public static VkBindBufferMemoryDeviceGroupInfo | |
| public static VkBindBufferMemoryDeviceGroupInfo. | |
| public static VkBindBufferMemoryDeviceGroupInfo. | |
| public static int | |
| public static void | ndeviceIndexCount(long struct, int value)
Sets the specified value to the |
| public static IntBuffer | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public IntBuffer | |
| public VkBindBufferMemoryDeviceGroupInfo | pDeviceIndices(IntBuffer value)
Sets the address of the specified |
| public long | |
| public VkBindBufferMemoryDeviceGroupInfo | |
| public VkBindBufferMemoryDeviceGroupInfo | |
| public VkBindBufferMemoryDeviceGroupInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkBindBufferMemoryDeviceGroupInfo | |
| public VkBindBufferMemoryDeviceGroupInfo | sType$Default()
Sets the |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DEVICEINDEXCOUNT | back to summary |
|---|---|
| public static final int DEVICEINDEXCOUNT The struct member offsets. | |
| PDEVICEINDICES | back to summary |
|---|---|
| public static final int PDEVICEINDICES The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| VkBindBufferMemoryDeviceGroupInfo | back to summary |
|---|---|
| protected VkBindBufferMemoryDeviceGroupInfo(long address, ByteBuffer container) | |
| VkBindBufferMemoryDeviceGroupInfo | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkBindBufferMemoryDeviceGroupInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Like
| |
| deviceIndexCount | back to summary |
|---|---|
| public int deviceIndexCount() the number of elements in
| |
| malloc | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkBindBufferMemoryDeviceGroupInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ndeviceIndexCount | back to summary |
|---|---|
| public static int ndeviceIndexCount(long struct) Unsafe version of | |
| ndeviceIndexCount | back to summary |
|---|---|
| public static void ndeviceIndexCount(long struct, int value) Sets the specified value to the | |
| npDeviceIndices | back to summary |
|---|---|
| public static IntBuffer npDeviceIndices(long struct) Unsafe version of
| |
| npDeviceIndices | back to summary |
|---|---|
| public static void npDeviceIndices(long struct, IntBuffer value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| pDeviceIndices | back to summary |
|---|---|
| public IntBuffer pDeviceIndices() a pointer to an array of device indices.
| |
| pDeviceIndices | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo pDeviceIndices(IntBuffer value) Sets the address of the specified | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo pNext(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo set(int sType, long pNext, IntBuffer pDeviceIndices) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo set(VkBindBufferMemoryDeviceGroupInfo src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo sType$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
VkBindBufferMemoryDeviceGroupInfo structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkBindBufferMemoryDeviceGroupInfo |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the value of theVkBindBufferMemoryDeviceGroupInfo#deviceIndexCount field.
|
| protected VkBindBufferMemoryDeviceGroupInfo | |
| public IntBuffer | Returns: aIntBuffer view of the data pointed to by the VkBindBufferMemoryDeviceGroupInfo#pDeviceIndices field.
|
| public VkBindBufferMemoryDeviceGroupInfo. | pDeviceIndices(IntBuffer value)
Sets the address of the specified |
| public long | |
| public VkBindBufferMemoryDeviceGroupInfo. | |
| protected VkBindBufferMemoryDeviceGroupInfo. | |
| public int | |
| public VkBindBufferMemoryDeviceGroupInfo. | |
| public VkBindBufferMemoryDeviceGroupInfo. | sType$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkBindBufferMemoryDeviceGroupInfo 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) | |
| deviceIndexCount | back to summary |
|---|---|
public int deviceIndexCount()
| |
| getElementFactory | back to summary |
|---|---|
| protected VkBindBufferMemoryDeviceGroupInfo getElementFactory() Implements abstract org.
| |
| pDeviceIndices | back to summary |
|---|---|
public IntBuffer pDeviceIndices()
| |
| pDeviceIndices | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo. Sets the address of the specified | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkBindBufferMemoryDeviceGroupInfo. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkBindBufferMemoryDeviceGroupInfo. Sets the | |