public class VkBindBufferMemoryDeviceGroupInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The VkBindBufferMemoryDeviceGroupInfo structure is defined as:
sType is the type of this structure.pNext is NULL or a pointer to an extension-specific structure.deviceIndexCount is the number of elements in pDeviceIndices.pDeviceIndices is a pointer to an array of device indices.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 |
|---|---|
static class |
VkBindBufferMemoryDeviceGroupInfo.Buffer
An array of
VkBindBufferMemoryDeviceGroupInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEVICEINDEXCOUNT
The struct member offsets.
|
static int |
PDEVICEINDICES
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkBindBufferMemoryDeviceGroupInfo(java.nio.ByteBuffer container)
Creates a
VkBindBufferMemoryDeviceGroupInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkBindBufferMemoryDeviceGroupInfo |
calloc()
Returns a new
VkBindBufferMemoryDeviceGroupInfo instance allocated with memCalloc. |
static VkBindBufferMemoryDeviceGroupInfo.Buffer |
calloc(int capacity)
Returns a new
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated with memCalloc. |
static VkBindBufferMemoryDeviceGroupInfo |
callocStack()
Returns a new
VkBindBufferMemoryDeviceGroupInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindBufferMemoryDeviceGroupInfo.Buffer |
callocStack(int capacity)
Returns a new
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindBufferMemoryDeviceGroupInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindBufferMemoryDeviceGroupInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindBufferMemoryDeviceGroupInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindBufferMemoryDeviceGroupInfo |
create()
Returns a new
VkBindBufferMemoryDeviceGroupInfo instance allocated with BufferUtils. |
static VkBindBufferMemoryDeviceGroupInfo.Buffer |
create(int capacity)
Returns a new
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated with BufferUtils. |
static VkBindBufferMemoryDeviceGroupInfo |
create(long address)
Returns a new
VkBindBufferMemoryDeviceGroupInfo instance for the specified memory address. |
static VkBindBufferMemoryDeviceGroupInfo.Buffer |
create(long address,
int capacity)
Create a
VkBindBufferMemoryDeviceGroupInfo.Buffer instance at the specified memory. |
static VkBindBufferMemoryDeviceGroupInfo |
createSafe(long address)
|
static VkBindBufferMemoryDeviceGroupInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
deviceIndexCount()
Returns the value of the
deviceIndexCount field. |
static VkBindBufferMemoryDeviceGroupInfo |
malloc()
Returns a new
VkBindBufferMemoryDeviceGroupInfo instance allocated with memAlloc. |
static VkBindBufferMemoryDeviceGroupInfo.Buffer |
malloc(int capacity)
Returns a new
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated with memAlloc. |
static VkBindBufferMemoryDeviceGroupInfo |
mallocStack()
Returns a new
VkBindBufferMemoryDeviceGroupInfo instance allocated on the thread-local MemoryStack. |
static VkBindBufferMemoryDeviceGroupInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkBindBufferMemoryDeviceGroupInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated on the specified MemoryStack. |
static VkBindBufferMemoryDeviceGroupInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindBufferMemoryDeviceGroupInfo instance allocated on the specified MemoryStack. |
static int |
ndeviceIndexCount(long struct)
Unsafe version of
deviceIndexCount(). |
static void |
ndeviceIndexCount(long struct,
int value)
Sets the specified value to the
deviceIndexCount field of the specified struct. |
static java.nio.IntBuffer |
npDeviceIndices(long struct)
Unsafe version of
pDeviceIndices. |
static void |
npDeviceIndices(long struct,
java.nio.IntBuffer value)
Unsafe version of
pDeviceIndices. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
java.nio.IntBuffer |
pDeviceIndices()
Returns a
IntBuffer view of the data pointed to by the pDeviceIndices field. |
VkBindBufferMemoryDeviceGroupInfo |
pDeviceIndices(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pDeviceIndices field. |
long |
pNext()
Returns the value of the
pNext field. |
VkBindBufferMemoryDeviceGroupInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkBindBufferMemoryDeviceGroupInfo |
set(int sType,
long pNext,
java.nio.IntBuffer pDeviceIndices)
Initializes this struct with the specified values.
|
VkBindBufferMemoryDeviceGroupInfo |
set(VkBindBufferMemoryDeviceGroupInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBindBufferMemoryDeviceGroupInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int DEVICEINDEXCOUNT
public static final int PDEVICEINDICES
public VkBindBufferMemoryDeviceGroupInfo(java.nio.ByteBuffer container)
VkBindBufferMemoryDeviceGroupInfo 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 sType()
sType field.public long pNext()
pNext field.public int deviceIndexCount()
deviceIndexCount field.@Nullable public java.nio.IntBuffer pDeviceIndices()
IntBuffer view of the data pointed to by the pDeviceIndices field.public VkBindBufferMemoryDeviceGroupInfo sType(int value)
sType field.public VkBindBufferMemoryDeviceGroupInfo pNext(long value)
pNext field.public VkBindBufferMemoryDeviceGroupInfo pDeviceIndices(@Nullable java.nio.IntBuffer value)
IntBuffer to the pDeviceIndices field.public VkBindBufferMemoryDeviceGroupInfo set(int sType, long pNext, @Nullable java.nio.IntBuffer pDeviceIndices)
public VkBindBufferMemoryDeviceGroupInfo set(VkBindBufferMemoryDeviceGroupInfo src)
src - the source structpublic static VkBindBufferMemoryDeviceGroupInfo malloc()
VkBindBufferMemoryDeviceGroupInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkBindBufferMemoryDeviceGroupInfo calloc()
VkBindBufferMemoryDeviceGroupInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkBindBufferMemoryDeviceGroupInfo create()
VkBindBufferMemoryDeviceGroupInfo instance allocated with BufferUtils.public static VkBindBufferMemoryDeviceGroupInfo create(long address)
VkBindBufferMemoryDeviceGroupInfo instance for the specified memory address.@Nullable public static VkBindBufferMemoryDeviceGroupInfo createSafe(long address)
public static VkBindBufferMemoryDeviceGroupInfo.Buffer malloc(int capacity)
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindBufferMemoryDeviceGroupInfo.Buffer calloc(int capacity)
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindBufferMemoryDeviceGroupInfo.Buffer create(int capacity)
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBindBufferMemoryDeviceGroupInfo.Buffer create(long address, int capacity)
VkBindBufferMemoryDeviceGroupInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBindBufferMemoryDeviceGroupInfo.Buffer createSafe(long address, int capacity)
public static VkBindBufferMemoryDeviceGroupInfo mallocStack()
VkBindBufferMemoryDeviceGroupInfo instance allocated on the thread-local MemoryStack.public static VkBindBufferMemoryDeviceGroupInfo callocStack()
VkBindBufferMemoryDeviceGroupInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBindBufferMemoryDeviceGroupInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkBindBufferMemoryDeviceGroupInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBindBufferMemoryDeviceGroupInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkBindBufferMemoryDeviceGroupInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBindBufferMemoryDeviceGroupInfo.Buffer mallocStack(int capacity)
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBindBufferMemoryDeviceGroupInfo.Buffer callocStack(int capacity)
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBindBufferMemoryDeviceGroupInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindBufferMemoryDeviceGroupInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBindBufferMemoryDeviceGroupInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindBufferMemoryDeviceGroupInfo.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int ndeviceIndexCount(long struct)
deviceIndexCount().@Nullable public static java.nio.IntBuffer npDeviceIndices(long struct)
pDeviceIndices.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndeviceIndexCount(long struct,
int value)
deviceIndexCount field of the specified struct.public static void npDeviceIndices(long struct,
@Nullable
java.nio.IntBuffer value)
pDeviceIndices.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.