public class VkPhysicalDeviceGroupProperties
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIESpNext must be NULLEnumeratePhysicalDeviceGroups, EnumeratePhysicalDeviceGroupsKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.physicalDeviceCount – the number of physical devices in the group.physicalDevices[VK_MAX_DEVICE_GROUP_SIZE] – an array of MAX_DEVICE_GROUP_SIZE VkPhysicalDevice handles representing all physical devices in the group. The first physicalDeviceCount elements of the array will be valid.subsetAllocation – specifies whether logical devices created from the group support allocating device memory on a subset of devices, via the deviceMask member of the VkMemoryAllocateFlagsInfo. If this is FALSE, then all device memory allocations are made across all physical devices in the group. If physicalDeviceCount is 1, then subsetAllocation must be FALSE.
struct VkPhysicalDeviceGroupProperties {
VkStructureType sType;
void * pNext;
uint32_t physicalDeviceCount;
VkPhysicalDevice physicalDevices[VK_MAX_DEVICE_GROUP_SIZE];
VkBool32 subsetAllocation;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceGroupProperties.Buffer
An array of
VkPhysicalDeviceGroupProperties structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PHYSICALDEVICECOUNT
The struct member offsets.
|
static int |
PHYSICALDEVICES
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.
|
static int |
SUBSETALLOCATION
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceGroupProperties(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceGroupProperties instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceGroupProperties |
calloc()
Returns a new
VkPhysicalDeviceGroupProperties instance allocated with memCalloc. |
static VkPhysicalDeviceGroupProperties.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceGroupProperties.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceGroupProperties |
callocStack()
Returns a new
VkPhysicalDeviceGroupProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceGroupProperties.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceGroupProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceGroupProperties.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceGroupProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceGroupProperties |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceGroupProperties instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceGroupProperties |
create()
Returns a new
VkPhysicalDeviceGroupProperties instance allocated with BufferUtils. |
static VkPhysicalDeviceGroupProperties.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceGroupProperties.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceGroupProperties |
create(long address)
Returns a new
VkPhysicalDeviceGroupProperties instance for the specified memory address. |
static VkPhysicalDeviceGroupProperties.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceGroupProperties.Buffer instance at the specified memory. |
static VkPhysicalDeviceGroupProperties |
createSafe(long address)
|
static VkPhysicalDeviceGroupProperties.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceGroupProperties |
malloc()
Returns a new
VkPhysicalDeviceGroupProperties instance allocated with memAlloc. |
static VkPhysicalDeviceGroupProperties.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceGroupProperties.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceGroupProperties |
mallocStack()
Returns a new
VkPhysicalDeviceGroupProperties instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceGroupProperties.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceGroupProperties.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceGroupProperties.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceGroupProperties.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceGroupProperties |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceGroupProperties instance allocated on the specified MemoryStack. |
static int |
nphysicalDeviceCount(long struct)
Unsafe version of
physicalDeviceCount(). |
static org.lwjgl.PointerBuffer |
nphysicalDevices(long struct)
Unsafe version of
physicalDevices(). |
static long |
nphysicalDevices(long struct,
int index)
Unsafe version of
physicalDevices. |
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. |
static int |
nsubsetAllocation(long struct)
Unsafe version of
subsetAllocation(). |
int |
physicalDeviceCount()
Returns the value of the
physicalDeviceCount field. |
org.lwjgl.PointerBuffer |
physicalDevices()
Returns a
PointerBuffer view of the physicalDevices field. |
long |
physicalDevices(int index)
Returns the value at the specified index of the
physicalDevices field. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceGroupProperties |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceGroupProperties |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkPhysicalDeviceGroupProperties |
set(VkPhysicalDeviceGroupProperties src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceGroupProperties |
sType(int value)
Sets the specified value to the
sType field. |
boolean |
subsetAllocation()
Returns the value of the
subsetAllocation 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 PHYSICALDEVICECOUNT
public static final int PHYSICALDEVICES
public static final int SUBSETALLOCATION
public VkPhysicalDeviceGroupProperties(java.nio.ByteBuffer container)
VkPhysicalDeviceGroupProperties 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.public org.lwjgl.PointerBuffer physicalDevices()
PointerBuffer view of the physicalDevices field.public long physicalDevices(int index)
physicalDevices field.public boolean subsetAllocation()
subsetAllocation field.public VkPhysicalDeviceGroupProperties sType(int value)
sType field.public VkPhysicalDeviceGroupProperties pNext(long value)
pNext field.public VkPhysicalDeviceGroupProperties set(int sType, long pNext)
public VkPhysicalDeviceGroupProperties set(VkPhysicalDeviceGroupProperties src)
src - the source structpublic static VkPhysicalDeviceGroupProperties malloc()
VkPhysicalDeviceGroupProperties instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceGroupProperties calloc()
VkPhysicalDeviceGroupProperties instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceGroupProperties create()
VkPhysicalDeviceGroupProperties instance allocated with BufferUtils.public static VkPhysicalDeviceGroupProperties create(long address)
VkPhysicalDeviceGroupProperties instance for the specified memory address.@Nullable public static VkPhysicalDeviceGroupProperties createSafe(long address)
public static VkPhysicalDeviceGroupProperties.Buffer malloc(int capacity)
VkPhysicalDeviceGroupProperties.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceGroupProperties.Buffer calloc(int capacity)
VkPhysicalDeviceGroupProperties.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceGroupProperties.Buffer create(int capacity)
VkPhysicalDeviceGroupProperties.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceGroupProperties.Buffer create(long address, int capacity)
VkPhysicalDeviceGroupProperties.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceGroupProperties.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceGroupProperties mallocStack()
VkPhysicalDeviceGroupProperties instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceGroupProperties callocStack()
VkPhysicalDeviceGroupProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceGroupProperties mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceGroupProperties instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceGroupProperties callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceGroupProperties instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceGroupProperties.Buffer mallocStack(int capacity)
VkPhysicalDeviceGroupProperties.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceGroupProperties.Buffer callocStack(int capacity)
VkPhysicalDeviceGroupProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceGroupProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceGroupProperties.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceGroupProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceGroupProperties.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().public static org.lwjgl.PointerBuffer nphysicalDevices(long struct)
physicalDevices().public static long nphysicalDevices(long struct,
int index)
physicalDevices.public static int nsubsetAllocation(long struct)
subsetAllocation().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.