Package org.lwjgl.vulkan
Class VkPhysicalDeviceGroupProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceGroupProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceGroupPropertiesKHR
public class VkPhysicalDeviceGroupProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying physical device group properties.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIESpNextmust beNULL
See Also
EnumeratePhysicalDeviceGroups,EnumeratePhysicalDeviceGroupsKHRLayout
struct VkPhysicalDeviceGroupProperties { VkStructureTypesType(); void *pNext(); uint32_tphysicalDeviceCount(); VkPhysicalDevicephysicalDevices()[VK_MAX_DEVICE_GROUP_SIZE]; VkBool32subsetAllocation(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceGroupProperties.BufferAn array ofVkPhysicalDeviceGroupPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPHYSICALDEVICECOUNT
PHYSICALDEVICES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
SUBSETALLOCATIONThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceGroupProperties(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceGroupPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkPhysicalDeviceGroupPropertiescalloc()Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated withmemCalloc.static VkPhysicalDeviceGroupProperties.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceGroupProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceGroupPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceGroupPropertiescallocStack()Deprecated.static VkPhysicalDeviceGroupProperties.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceGroupProperties.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceGroupPropertiescallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceGroupPropertiescreate()Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated withBufferUtils.static VkPhysicalDeviceGroupProperties.Buffercreate(int capacity)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceGroupPropertiescreate(long address)Returns a newVkPhysicalDeviceGroupPropertiesinstance for the specified memory address.static VkPhysicalDeviceGroupProperties.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceGroupProperties.Bufferinstance at the specified memory.static VkPhysicalDeviceGroupPropertiescreateSafe(long address)static VkPhysicalDeviceGroupProperties.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceGroupPropertiesmalloc()Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated withmemAlloc.static VkPhysicalDeviceGroupProperties.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceGroupProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceGroupPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceGroupPropertiesmallocStack()Deprecated.static VkPhysicalDeviceGroupProperties.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceGroupProperties.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceGroupPropertiesmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnphysicalDeviceCount(long struct)Unsafe version ofphysicalDeviceCount().static org.lwjgl.PointerBuffernphysicalDevices(long struct)Unsafe version ofphysicalDevices().static longnphysicalDevices(long struct, int index)Unsafe version ofphysicalDevices.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnsubsetAllocation(long struct)Unsafe version ofsubsetAllocation().intphysicalDeviceCount()the number of physical devices in the group.org.lwjgl.PointerBufferphysicalDevices()an array ofMAX_DEVICE_GROUP_SIZEVkPhysicalDevicehandles representing all physical devices in the group.longphysicalDevices(int index)an array ofMAX_DEVICE_GROUP_SIZEVkPhysicalDevicehandles representing all physical devices in the group.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceGroupPropertiespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceGroupPropertiesset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceGroupPropertiesset(VkPhysicalDeviceGroupProperties src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceGroupPropertiessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceGroupPropertiessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIESvalue to thesType()field.booleansubsetAllocation()specifies whether logical devices created from the group support allocating device memory on a subset of devices, via thedeviceMaskmember of theVkMemoryAllocateFlagsInfo.
-
-
-
Constructor Detail
-
VkPhysicalDeviceGroupProperties
public VkPhysicalDeviceGroupProperties(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceGroupPropertiesinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
physicalDeviceCount
public int physicalDeviceCount()
the number of physical devices in the group.
-
physicalDevices
public org.lwjgl.PointerBuffer physicalDevices() public long physicalDevices(int index)
an array ofMAX_DEVICE_GROUP_SIZEVkPhysicalDevicehandles representing all physical devices in the group. The firstphysicalDeviceCountelements of the array will be valid.
-
subsetAllocation
public boolean subsetAllocation()
specifies whether logical devices created from the group support allocating device memory on a subset of devices, via thedeviceMaskmember of theVkMemoryAllocateFlagsInfo. If this isFALSE, then all device memory allocations are made across all physical devices in the group. IfphysicalDeviceCountis 1, thensubsetAllocationmust beFALSE.
-
sType
public VkPhysicalDeviceGroupProperties sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceGroupProperties sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceGroupProperties pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceGroupProperties set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceGroupProperties set(VkPhysicalDeviceGroupProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceGroupProperties malloc()
Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceGroupProperties calloc()
Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceGroupProperties create()
Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceGroupProperties create(long address)
Returns a newVkPhysicalDeviceGroupPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceGroupProperties createSafe(long address)
-
malloc
public static VkPhysicalDeviceGroupProperties.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceGroupProperties.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceGroupProperties.Buffer create(int capacity)
Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceGroupProperties.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceGroupProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceGroupProperties.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceGroupProperties mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceGroupProperties callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceGroupProperties mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceGroupProperties callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceGroupProperties.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceGroupProperties.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceGroupProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceGroupProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceGroupProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceGroupProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceGroupProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceGroupProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nphysicalDeviceCount
public static int nphysicalDeviceCount(long struct)
Unsafe version ofphysicalDeviceCount().
-
nphysicalDevices
public static org.lwjgl.PointerBuffer nphysicalDevices(long struct)
Unsafe version ofphysicalDevices().
-
nphysicalDevices
public static long nphysicalDevices(long struct, int index)Unsafe version ofphysicalDevices.
-
nsubsetAllocation
public static int nsubsetAllocation(long struct)
Unsafe version ofsubsetAllocation().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-