public class VkDeviceGroupBindSparseInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
These device indices apply to all buffer and image memory binds included in the batch pointing to this structure. The semaphore waits and signals for the batch are executed only by the physical device specified by the resourceDeviceIndex.
If this structure is not present, resourceDeviceIndex and memoryDeviceIndex are assumed to be zero.
resourceDeviceIndex and memoryDeviceIndex must both be valid device indices.memoryDeviceIndex.sType must be STRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFOsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.resourceDeviceIndex – a device index indicating which instance of the resource is bound.memoryDeviceIndex – a device index indicating which instance of the memory the resource instance is bound to.
struct VkDeviceGroupBindSparseInfo {
VkStructureType sType;
void const * pNext;
uint32_t resourceDeviceIndex;
uint32_t memoryDeviceIndex;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDeviceGroupBindSparseInfo.Buffer
An array of
VkDeviceGroupBindSparseInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MEMORYDEVICEINDEX
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
RESOURCEDEVICEINDEX
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDeviceGroupBindSparseInfo(java.nio.ByteBuffer container)
Creates a
VkDeviceGroupBindSparseInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDeviceGroupBindSparseInfo |
calloc()
Returns a new
VkDeviceGroupBindSparseInfo instance allocated with memCalloc. |
static VkDeviceGroupBindSparseInfo.Buffer |
calloc(int capacity)
Returns a new
VkDeviceGroupBindSparseInfo.Buffer instance allocated with memCalloc. |
static VkDeviceGroupBindSparseInfo |
callocStack()
Returns a new
VkDeviceGroupBindSparseInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupBindSparseInfo.Buffer |
callocStack(int capacity)
Returns a new
VkDeviceGroupBindSparseInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupBindSparseInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupBindSparseInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupBindSparseInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupBindSparseInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupBindSparseInfo |
create()
Returns a new
VkDeviceGroupBindSparseInfo instance allocated with BufferUtils. |
static VkDeviceGroupBindSparseInfo.Buffer |
create(int capacity)
Returns a new
VkDeviceGroupBindSparseInfo.Buffer instance allocated with BufferUtils. |
static VkDeviceGroupBindSparseInfo |
create(long address)
Returns a new
VkDeviceGroupBindSparseInfo instance for the specified memory address. |
static VkDeviceGroupBindSparseInfo.Buffer |
create(long address,
int capacity)
Create a
VkDeviceGroupBindSparseInfo.Buffer instance at the specified memory. |
static VkDeviceGroupBindSparseInfo |
createSafe(long address)
|
static VkDeviceGroupBindSparseInfo.Buffer |
createSafe(long address,
int capacity)
|
static VkDeviceGroupBindSparseInfo |
malloc()
Returns a new
VkDeviceGroupBindSparseInfo instance allocated with memAlloc. |
static VkDeviceGroupBindSparseInfo.Buffer |
malloc(int capacity)
Returns a new
VkDeviceGroupBindSparseInfo.Buffer instance allocated with memAlloc. |
static VkDeviceGroupBindSparseInfo |
mallocStack()
Returns a new
VkDeviceGroupBindSparseInfo instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupBindSparseInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkDeviceGroupBindSparseInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupBindSparseInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupBindSparseInfo.Buffer instance allocated on the specified MemoryStack. |
static VkDeviceGroupBindSparseInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupBindSparseInfo instance allocated on the specified MemoryStack. |
int |
memoryDeviceIndex()
Returns the value of the
memoryDeviceIndex field. |
VkDeviceGroupBindSparseInfo |
memoryDeviceIndex(int value)
Sets the specified value to the
memoryDeviceIndex field. |
static int |
nmemoryDeviceIndex(long struct)
Unsafe version of
memoryDeviceIndex(). |
static void |
nmemoryDeviceIndex(long struct,
int value)
Unsafe version of
memoryDeviceIndex. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nresourceDeviceIndex(long struct)
Unsafe version of
resourceDeviceIndex(). |
static void |
nresourceDeviceIndex(long struct,
int value)
Unsafe version of
resourceDeviceIndex. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkDeviceGroupBindSparseInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
resourceDeviceIndex()
Returns the value of the
resourceDeviceIndex field. |
VkDeviceGroupBindSparseInfo |
resourceDeviceIndex(int value)
Sets the specified value to the
resourceDeviceIndex field. |
VkDeviceGroupBindSparseInfo |
set(int sType,
long pNext,
int resourceDeviceIndex,
int memoryDeviceIndex)
Initializes this struct with the specified values.
|
VkDeviceGroupBindSparseInfo |
set(VkDeviceGroupBindSparseInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDeviceGroupBindSparseInfo |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int RESOURCEDEVICEINDEX
public static final int MEMORYDEVICEINDEX
public VkDeviceGroupBindSparseInfo(java.nio.ByteBuffer container)
VkDeviceGroupBindSparseInfo 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 resourceDeviceIndex()
resourceDeviceIndex field.public int memoryDeviceIndex()
memoryDeviceIndex field.public VkDeviceGroupBindSparseInfo sType(int value)
sType field.public VkDeviceGroupBindSparseInfo pNext(long value)
pNext field.public VkDeviceGroupBindSparseInfo resourceDeviceIndex(int value)
resourceDeviceIndex field.public VkDeviceGroupBindSparseInfo memoryDeviceIndex(int value)
memoryDeviceIndex field.public VkDeviceGroupBindSparseInfo set(int sType, long pNext, int resourceDeviceIndex, int memoryDeviceIndex)
public VkDeviceGroupBindSparseInfo set(VkDeviceGroupBindSparseInfo src)
src - the source structpublic static VkDeviceGroupBindSparseInfo malloc()
VkDeviceGroupBindSparseInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkDeviceGroupBindSparseInfo calloc()
VkDeviceGroupBindSparseInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkDeviceGroupBindSparseInfo create()
VkDeviceGroupBindSparseInfo instance allocated with BufferUtils.public static VkDeviceGroupBindSparseInfo create(long address)
VkDeviceGroupBindSparseInfo instance for the specified memory address.@Nullable public static VkDeviceGroupBindSparseInfo createSafe(long address)
public static VkDeviceGroupBindSparseInfo.Buffer malloc(int capacity)
VkDeviceGroupBindSparseInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupBindSparseInfo.Buffer calloc(int capacity)
VkDeviceGroupBindSparseInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupBindSparseInfo.Buffer create(int capacity)
VkDeviceGroupBindSparseInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDeviceGroupBindSparseInfo.Buffer create(long address, int capacity)
VkDeviceGroupBindSparseInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDeviceGroupBindSparseInfo.Buffer createSafe(long address, int capacity)
public static VkDeviceGroupBindSparseInfo mallocStack()
VkDeviceGroupBindSparseInfo instance allocated on the thread-local MemoryStack.public static VkDeviceGroupBindSparseInfo callocStack()
VkDeviceGroupBindSparseInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDeviceGroupBindSparseInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupBindSparseInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDeviceGroupBindSparseInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupBindSparseInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDeviceGroupBindSparseInfo.Buffer mallocStack(int capacity)
VkDeviceGroupBindSparseInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDeviceGroupBindSparseInfo.Buffer callocStack(int capacity)
VkDeviceGroupBindSparseInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDeviceGroupBindSparseInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupBindSparseInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDeviceGroupBindSparseInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupBindSparseInfo.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 nresourceDeviceIndex(long struct)
resourceDeviceIndex().public static int nmemoryDeviceIndex(long struct)
memoryDeviceIndex().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nresourceDeviceIndex(long struct,
int value)
resourceDeviceIndex.public static void nmemoryDeviceIndex(long struct,
int value)
memoryDeviceIndex.Copyright LWJGL. All Rights Reserved. License terms.