public class VkDeviceGroupDeviceCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The elements of the pPhysicalDevices array are an ordered list of the physical devices that the logical device represents. These must be a subset of a single device group, and need not be in the same order as they were enumerated. The order of the physical devices in the pPhysicalDevices array determines the device index of each physical device, with element i being assigned a device index of i. Certain commands and structures refer to one or more physical devices by using device indices or device masks formed using device indices.
A logical device created without using VkDeviceGroupDeviceCreateInfo, or with physicalDeviceCount equal to zero, is equivalent to a physicalDeviceCount of one and pPhysicalDevices pointing to the physicalDevice parameter to CreateDevice. In particular, the device index of that physical device is zero.
pPhysicalDevices must be uniquepPhysicalDevices must be in the same device group as enumerated by EnumeratePhysicalDeviceGroupsphysicalDeviceCount is not 0, the physicalDevice parameter of CreateDevice must be an element of pPhysicalDevices.sType must be STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFOphysicalDeviceCount is not 0, pPhysicalDevices must be a valid pointer to an array of physicalDeviceCount valid VkPhysicalDevice handlessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.physicalDeviceCount – the number of elements in the pPhysicalDevices array.pPhysicalDevices – a pointer to an array of physical device handles belonging to the same device group.
struct VkDeviceGroupDeviceCreateInfo {
VkStructureType sType;
void const * pNext;
uint32_t physicalDeviceCount;
VkPhysicalDevice const * pPhysicalDevices;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDeviceGroupDeviceCreateInfo.Buffer
An array of
VkDeviceGroupDeviceCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PHYSICALDEVICECOUNT
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PPHYSICALDEVICES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDeviceGroupDeviceCreateInfo(java.nio.ByteBuffer container)
Creates a
VkDeviceGroupDeviceCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDeviceGroupDeviceCreateInfo |
calloc()
Returns a new
VkDeviceGroupDeviceCreateInfo instance allocated with memCalloc. |
static VkDeviceGroupDeviceCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated with memCalloc. |
static VkDeviceGroupDeviceCreateInfo |
callocStack()
Returns a new
VkDeviceGroupDeviceCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupDeviceCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupDeviceCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupDeviceCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupDeviceCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupDeviceCreateInfo |
create()
Returns a new
VkDeviceGroupDeviceCreateInfo instance allocated with BufferUtils. |
static VkDeviceGroupDeviceCreateInfo.Buffer |
create(int capacity)
Returns a new
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated with BufferUtils. |
static VkDeviceGroupDeviceCreateInfo |
create(long address)
Returns a new
VkDeviceGroupDeviceCreateInfo instance for the specified memory address. |
static VkDeviceGroupDeviceCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkDeviceGroupDeviceCreateInfo.Buffer instance at the specified memory. |
static VkDeviceGroupDeviceCreateInfo |
createSafe(long address)
|
static VkDeviceGroupDeviceCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
static VkDeviceGroupDeviceCreateInfo |
malloc()
Returns a new
VkDeviceGroupDeviceCreateInfo instance allocated with memAlloc. |
static VkDeviceGroupDeviceCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated with memAlloc. |
static VkDeviceGroupDeviceCreateInfo |
mallocStack()
Returns a new
VkDeviceGroupDeviceCreateInfo instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupDeviceCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupDeviceCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkDeviceGroupDeviceCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupDeviceCreateInfo instance allocated on the specified MemoryStack. |
static int |
nphysicalDeviceCount(long struct)
Unsafe version of
physicalDeviceCount(). |
static void |
nphysicalDeviceCount(long struct,
int value)
Sets the specified value to the
physicalDeviceCount field of the specified struct. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static org.lwjgl.PointerBuffer |
npPhysicalDevices(long struct)
Unsafe version of
pPhysicalDevices. |
static void |
npPhysicalDevices(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
pPhysicalDevices. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
int |
physicalDeviceCount()
Returns the value of the
physicalDeviceCount field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDeviceGroupDeviceCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
org.lwjgl.PointerBuffer |
pPhysicalDevices()
Returns a
PointerBuffer view of the data pointed to by the pPhysicalDevices field. |
VkDeviceGroupDeviceCreateInfo |
pPhysicalDevices(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the pPhysicalDevices field. |
VkDeviceGroupDeviceCreateInfo |
set(int sType,
long pNext,
org.lwjgl.PointerBuffer pPhysicalDevices)
Initializes this struct with the specified values.
|
VkDeviceGroupDeviceCreateInfo |
set(VkDeviceGroupDeviceCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDeviceGroupDeviceCreateInfo |
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 PHYSICALDEVICECOUNT
public static final int PPHYSICALDEVICES
public VkDeviceGroupDeviceCreateInfo(java.nio.ByteBuffer container)
VkDeviceGroupDeviceCreateInfo 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 physicalDeviceCount()
physicalDeviceCount field.@Nullable public org.lwjgl.PointerBuffer pPhysicalDevices()
PointerBuffer view of the data pointed to by the pPhysicalDevices field.public VkDeviceGroupDeviceCreateInfo sType(int value)
sType field.public VkDeviceGroupDeviceCreateInfo pNext(long value)
pNext field.public VkDeviceGroupDeviceCreateInfo pPhysicalDevices(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the pPhysicalDevices field.public VkDeviceGroupDeviceCreateInfo set(int sType, long pNext, @Nullable org.lwjgl.PointerBuffer pPhysicalDevices)
public VkDeviceGroupDeviceCreateInfo set(VkDeviceGroupDeviceCreateInfo src)
src - the source structpublic static VkDeviceGroupDeviceCreateInfo malloc()
VkDeviceGroupDeviceCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkDeviceGroupDeviceCreateInfo calloc()
VkDeviceGroupDeviceCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkDeviceGroupDeviceCreateInfo create()
VkDeviceGroupDeviceCreateInfo instance allocated with BufferUtils.public static VkDeviceGroupDeviceCreateInfo create(long address)
VkDeviceGroupDeviceCreateInfo instance for the specified memory address.@Nullable public static VkDeviceGroupDeviceCreateInfo createSafe(long address)
public static VkDeviceGroupDeviceCreateInfo.Buffer malloc(int capacity)
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupDeviceCreateInfo.Buffer calloc(int capacity)
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupDeviceCreateInfo.Buffer create(int capacity)
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDeviceGroupDeviceCreateInfo.Buffer create(long address, int capacity)
VkDeviceGroupDeviceCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDeviceGroupDeviceCreateInfo.Buffer createSafe(long address, int capacity)
public static VkDeviceGroupDeviceCreateInfo mallocStack()
VkDeviceGroupDeviceCreateInfo instance allocated on the thread-local MemoryStack.public static VkDeviceGroupDeviceCreateInfo callocStack()
VkDeviceGroupDeviceCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDeviceGroupDeviceCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupDeviceCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDeviceGroupDeviceCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupDeviceCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDeviceGroupDeviceCreateInfo.Buffer mallocStack(int capacity)
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDeviceGroupDeviceCreateInfo.Buffer callocStack(int capacity)
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDeviceGroupDeviceCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupDeviceCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDeviceGroupDeviceCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupDeviceCreateInfo.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 nphysicalDeviceCount(long struct)
physicalDeviceCount().@Nullable public static org.lwjgl.PointerBuffer npPhysicalDevices(long struct)
pPhysicalDevices.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nphysicalDeviceCount(long struct,
int value)
physicalDeviceCount field of the specified struct.public static void npPhysicalDevices(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
pPhysicalDevices.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.