Package org.lwjgl.vulkan
Class VkPhysicalDeviceGroupPropertiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceGroupProperties
-
- org.lwjgl.vulkan.VkPhysicalDeviceGroupPropertiesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceGroupPropertiesKHR extends VkPhysicalDeviceGroupProperties
SeeVkPhysicalDeviceGroupProperties
.Layout
struct VkPhysicalDeviceGroupPropertiesKHR { 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 class
VkPhysicalDeviceGroupPropertiesKHR.Buffer
An array ofVkPhysicalDeviceGroupPropertiesKHR
structs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkPhysicalDeviceGroupProperties
ALIGNOF, PHYSICALDEVICECOUNT, PHYSICALDEVICES, PNEXT, SIZEOF, STYPE, SUBSETALLOCATION
-
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceGroupPropertiesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceGroupPropertiesKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceGroupPropertiesKHR
calloc()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated withmemCalloc
.static VkPhysicalDeviceGroupPropertiesKHR.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceGroupPropertiesKHR
callocStack()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceGroupPropertiesKHR.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceGroupPropertiesKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceGroupPropertiesKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceGroupPropertiesKHR
create()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated withBufferUtils
.static VkPhysicalDeviceGroupPropertiesKHR.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceGroupPropertiesKHR
create(long address)
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance for the specified memory address.static VkPhysicalDeviceGroupPropertiesKHR.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance at the specified memory.static VkPhysicalDeviceGroupPropertiesKHR
createSafe(long address)
static VkPhysicalDeviceGroupPropertiesKHR.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceGroupPropertiesKHR
malloc()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated withmemAlloc
.static VkPhysicalDeviceGroupPropertiesKHR.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceGroupPropertiesKHR
mallocStack()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceGroupPropertiesKHR.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceGroupPropertiesKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceGroupPropertiesKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated on the specifiedMemoryStack
.VkPhysicalDeviceGroupPropertiesKHR
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceGroupPropertiesKHR
set(int sType, long pNext)
Initializes this struct with the specified values.VkPhysicalDeviceGroupPropertiesKHR
set(VkPhysicalDeviceGroupPropertiesKHR src)
Copies the specified struct data to this struct.VkPhysicalDeviceGroupPropertiesKHR
sType(int value)
Sets the specified value to thesType
field.-
Methods inherited from class org.lwjgl.vulkan.VkPhysicalDeviceGroupProperties
nphysicalDeviceCount, nphysicalDevices, nphysicalDevices, npNext, npNext, nsType, nsType, nsubsetAllocation, physicalDeviceCount, physicalDevices, physicalDevices, pNext, set, sizeof, sType, subsetAllocation
-
-
-
-
Constructor Detail
-
VkPhysicalDeviceGroupPropertiesKHR
public VkPhysicalDeviceGroupPropertiesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceGroupPropertiesKHR
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sType
public VkPhysicalDeviceGroupPropertiesKHR sType(int value)
Sets the specified value to thesType
field.- Overrides:
sType
in classVkPhysicalDeviceGroupProperties
-
pNext
public VkPhysicalDeviceGroupPropertiesKHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkPhysicalDeviceGroupProperties
-
set
public VkPhysicalDeviceGroupPropertiesKHR set(int sType, long pNext)
Initializes this struct with the specified values.- Overrides:
set
in classVkPhysicalDeviceGroupProperties
-
set
public VkPhysicalDeviceGroupPropertiesKHR set(VkPhysicalDeviceGroupPropertiesKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceGroupPropertiesKHR malloc()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceGroupPropertiesKHR calloc()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceGroupPropertiesKHR create()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceGroupPropertiesKHR create(long address)
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceGroupPropertiesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceGroupPropertiesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceGroupPropertiesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceGroupPropertiesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceGroupPropertiesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceGroupPropertiesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceGroupPropertiesKHR mallocStack()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceGroupPropertiesKHR callocStack()
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceGroupPropertiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceGroupPropertiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceGroupPropertiesKHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceGroupPropertiesKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceGroupPropertiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceGroupPropertiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGroupPropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-