Class VkBindBufferMemoryDeviceGroupInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkBindBufferMemoryDeviceGroupInfo>
org.lwjgl.vulkan.VkBindBufferMemoryDeviceGroupInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkBindBufferMemoryDeviceGroupInfoKHR

public class VkBindBufferMemoryDeviceGroupInfo extends org.lwjgl.system.Struct<VkBindBufferMemoryDeviceGroupInfo> implements org.lwjgl.system.NativeResource
Structure specifying device within a group to bind to.
Description

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.

Valid Usage
  • deviceIndexCount must either be zero or equal to the number of physical devices in the logical device
  • All elements of pDeviceIndices must be valid device indices
Valid Usage (Implicit)

Layout


 struct VkBindBufferMemoryDeviceGroupInfo {
     VkStructureType sType();
     void const * pNext();
     uint32_t deviceIndexCount();
     uint32_t const * pDeviceIndices();
 }