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,EnumeratePhysicalDeviceGroupsKHRMember documentation
sType– the type of this structure.pNext–NULLor 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 physical device handles representing all physical devices in the group. The firstphysicalDeviceCountelements 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 thedeviceMaskmember of theVkMemoryAllocateFlagsInfo. If this isFALSE, then all device memory allocations are made across all physical devices in the group. IfphysicalDeviceCountis 1, thensubsetAllocationmust beFALSE.
Layout
struct VkPhysicalDeviceGroupProperties { VkStructureType sType; void * pNext; uint32_t physicalDeviceCount; VkPhysicalDevice physicalDevices[VK_MAX_DEVICE_GROUP_SIZE]; VkBool32 subsetAllocation; }
-
-
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 Modifier and Type Method Description static VkPhysicalDeviceGroupPropertiescalloc()Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated withmemCalloc.static VkPhysicalDeviceGroupProperties.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceGroupPropertiescallocStack()Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceGroupProperties.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceGroupProperties.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceGroupPropertiescallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 VkPhysicalDeviceGroupPropertiesmallocStack()Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceGroupProperties.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceGroupProperties.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceGroupPropertiesmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the specifiedMemoryStack.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()Returns the value of thephysicalDeviceCountfield.org.lwjgl.PointerBufferphysicalDevices()Returns aPointerBufferview of thephysicalDevicesfield.longphysicalDevices(int index)Returns the value at the specified index of thephysicalDevicesfield.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceGroupPropertiespNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkPhysicalDeviceGroupPropertiessType(int value)Sets the specified value to thesTypefield.booleansubsetAllocation()Returns the value of thesubsetAllocationfield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
physicalDeviceCount
public int physicalDeviceCount()
Returns the value of thephysicalDeviceCountfield.
-
physicalDevices
public org.lwjgl.PointerBuffer physicalDevices()
Returns aPointerBufferview of thephysicalDevicesfield.
-
physicalDevices
public long physicalDevices(int index)
Returns the value at the specified index of thephysicalDevicesfield.
-
subsetAllocation
public boolean subsetAllocation()
Returns the value of thesubsetAllocationfield.
-
sType
public VkPhysicalDeviceGroupProperties sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceGroupProperties pNext(long value)
Sets the specified value to thepNextfield.
-
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
public static VkPhysicalDeviceGroupProperties mallocStack()
Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceGroupProperties callocStack()
Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceGroupProperties mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceGroupProperties callocStack(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
-
mallocStack
public static VkPhysicalDeviceGroupProperties.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceGroupProperties.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceGroupProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceGroupProperties.Buffer mallocStack(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
-
callocStack
public static VkPhysicalDeviceGroupProperties.Buffer callocStack(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.
-
-