public class VkDeviceGroupPresentInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If mode is DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR, then each element of pDeviceMasks selects which instance of the swapchain image is presented. Each element of pDeviceMasks must have exactly one bit set, and the corresponding physical device must have a presentation engine as reported by VkDeviceGroupPresentCapabilitiesKHR.
If mode is DEVICE_GROUP_PRESENT_MODE_REMOTE_BIT_KHR, then each element of pDeviceMasks selects which instance of the swapchain image is presented. Each element of pDeviceMasks must have exactly one bit set, and some physical device in the logical device must include that bit in its VkDeviceGroupPresentCapabilitiesKHR::presentMask.
If mode is DEVICE_GROUP_PRESENT_MODE_SUM_BIT_KHR, then each element of pDeviceMasks selects which instances of the swapchain image are component-wise summed and the sum of those images is presented. If the sum in any component is outside the representable range, the value of that component is undefined. Each element of pDeviceMasks must have a value for which all set bits are set in one of the elements of VkDeviceGroupPresentCapabilitiesKHR::presentMask.
If mode is DEVICE_GROUP_PRESENT_MODE_LOCAL_MULTI_DEVICE_BIT_KHR, then each element of pDeviceMasks selects which instance(s) of the swapchain images are presented. For each bit set in each element of pDeviceMasks, the corresponding physical device must have a presentation engine as reported by VkDeviceGroupPresentCapabilitiesKHR.
If VkDeviceGroupPresentInfoKHR is not provided or swapchainCount is zero then the masks are considered to be 1. If VkDeviceGroupPresentInfoKHR is not provided, mode is considered to be DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR.
swapchainCount must equal 0 or VkPresentInfoKHR::swapchainCountmode is DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR, then each element of pDeviceMasks must have exactly one bit set, and the corresponding element of VkDeviceGroupPresentCapabilitiesKHR::presentMask must be non-zeromode is DEVICE_GROUP_PRESENT_MODE_REMOTE_BIT_KHR, then each element of pDeviceMasks must have exactly one bit set, and some physical device in the logical device must include that bit in its VkDeviceGroupPresentCapabilitiesKHR::presentMask.mode is DEVICE_GROUP_PRESENT_MODE_SUM_BIT_KHR, then each element of pDeviceMasks must have a value for which all set bits are set in one of the elements of VkDeviceGroupPresentCapabilitiesKHR::presentMaskmode is DEVICE_GROUP_PRESENT_MODE_LOCAL_MULTI_DEVICE_BIT_KHR, then for each bit set in each element of pDeviceMasks, the corresponding element of VkDeviceGroupPresentCapabilitiesKHR::presentMask must be non-zeropDeviceMasks must be equal to the device mask passed in VkAcquireNextImageInfoKHR::deviceMask when the image index was last acquiredmode must have exactly one bit set, and that bit must have been included in VkDeviceGroupSwapchainCreateInfoKHR::modessType must be STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_INFO_KHRswapchainCount is not 0, pDeviceMasks must be a valid pointer to an array of swapchainCount uint32_t valuesmode must be a valid VkDeviceGroupPresentModeFlagBitsKHR valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.swapchainCount – zero or the number of elements in pDeviceMasks.pDeviceMasks – a pointer to an array of device masks, one for each element of VkPresentInfoKHR::pSwapchains.mode – the device group present mode that will be used for this present.
struct VkDeviceGroupPresentInfoKHR {
VkStructureType sType;
void const * pNext;
uint32_t swapchainCount;
uint32_t const * pDeviceMasks;
VkDeviceGroupPresentModeFlagBitsKHR mode;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDeviceGroupPresentInfoKHR.Buffer
An array of
VkDeviceGroupPresentInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MODE
The struct member offsets.
|
static int |
PDEVICEMASKS
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 |
SWAPCHAINCOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkDeviceGroupPresentInfoKHR(java.nio.ByteBuffer container)
Creates a
VkDeviceGroupPresentInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDeviceGroupPresentInfoKHR |
calloc()
Returns a new
VkDeviceGroupPresentInfoKHR instance allocated with memCalloc. |
static VkDeviceGroupPresentInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkDeviceGroupPresentInfoKHR.Buffer instance allocated with memCalloc. |
static VkDeviceGroupPresentInfoKHR |
callocStack()
Returns a new
VkDeviceGroupPresentInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupPresentInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkDeviceGroupPresentInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupPresentInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupPresentInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupPresentInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupPresentInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupPresentInfoKHR |
create()
Returns a new
VkDeviceGroupPresentInfoKHR instance allocated with BufferUtils. |
static VkDeviceGroupPresentInfoKHR.Buffer |
create(int capacity)
Returns a new
VkDeviceGroupPresentInfoKHR.Buffer instance allocated with BufferUtils. |
static VkDeviceGroupPresentInfoKHR |
create(long address)
Returns a new
VkDeviceGroupPresentInfoKHR instance for the specified memory address. |
static VkDeviceGroupPresentInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkDeviceGroupPresentInfoKHR.Buffer instance at the specified memory. |
static VkDeviceGroupPresentInfoKHR |
createSafe(long address)
|
static VkDeviceGroupPresentInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkDeviceGroupPresentInfoKHR |
malloc()
Returns a new
VkDeviceGroupPresentInfoKHR instance allocated with memAlloc. |
static VkDeviceGroupPresentInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkDeviceGroupPresentInfoKHR.Buffer instance allocated with memAlloc. |
static VkDeviceGroupPresentInfoKHR |
mallocStack()
Returns a new
VkDeviceGroupPresentInfoKHR instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupPresentInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkDeviceGroupPresentInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupPresentInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupPresentInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkDeviceGroupPresentInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupPresentInfoKHR instance allocated on the specified MemoryStack. |
int |
mode()
Returns the value of the
mode field. |
VkDeviceGroupPresentInfoKHR |
mode(int value)
Sets the specified value to the
mode field. |
static int |
nmode(long struct)
Unsafe version of
mode(). |
static void |
nmode(long struct,
int value)
Unsafe version of
mode. |
static java.nio.IntBuffer |
npDeviceMasks(long struct)
Unsafe version of
pDeviceMasks. |
static void |
npDeviceMasks(long struct,
java.nio.IntBuffer value)
Unsafe version of
pDeviceMasks. |
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 |
nswapchainCount(long struct)
Unsafe version of
swapchainCount(). |
static void |
nswapchainCount(long struct,
int value)
Sets the specified value to the
swapchainCount field of the specified struct. |
java.nio.IntBuffer |
pDeviceMasks()
Returns a
IntBuffer view of the data pointed to by the pDeviceMasks field. |
VkDeviceGroupPresentInfoKHR |
pDeviceMasks(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pDeviceMasks field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDeviceGroupPresentInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDeviceGroupPresentInfoKHR |
set(int sType,
long pNext,
java.nio.IntBuffer pDeviceMasks,
int mode)
Initializes this struct with the specified values.
|
VkDeviceGroupPresentInfoKHR |
set(VkDeviceGroupPresentInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDeviceGroupPresentInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
int |
swapchainCount()
Returns the value of the
swapchainCount 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 SWAPCHAINCOUNT
public static final int PDEVICEMASKS
public static final int MODE
public VkDeviceGroupPresentInfoKHR(java.nio.ByteBuffer container)
VkDeviceGroupPresentInfoKHR 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 swapchainCount()
swapchainCount field.@Nullable public java.nio.IntBuffer pDeviceMasks()
IntBuffer view of the data pointed to by the pDeviceMasks field.public int mode()
mode field.public VkDeviceGroupPresentInfoKHR sType(int value)
sType field.public VkDeviceGroupPresentInfoKHR pNext(long value)
pNext field.public VkDeviceGroupPresentInfoKHR pDeviceMasks(@Nullable java.nio.IntBuffer value)
IntBuffer to the pDeviceMasks field.public VkDeviceGroupPresentInfoKHR mode(int value)
mode field.public VkDeviceGroupPresentInfoKHR set(int sType, long pNext, @Nullable java.nio.IntBuffer pDeviceMasks, int mode)
public VkDeviceGroupPresentInfoKHR set(VkDeviceGroupPresentInfoKHR src)
src - the source structpublic static VkDeviceGroupPresentInfoKHR malloc()
VkDeviceGroupPresentInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkDeviceGroupPresentInfoKHR calloc()
VkDeviceGroupPresentInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkDeviceGroupPresentInfoKHR create()
VkDeviceGroupPresentInfoKHR instance allocated with BufferUtils.public static VkDeviceGroupPresentInfoKHR create(long address)
VkDeviceGroupPresentInfoKHR instance for the specified memory address.@Nullable public static VkDeviceGroupPresentInfoKHR createSafe(long address)
public static VkDeviceGroupPresentInfoKHR.Buffer malloc(int capacity)
VkDeviceGroupPresentInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupPresentInfoKHR.Buffer calloc(int capacity)
VkDeviceGroupPresentInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupPresentInfoKHR.Buffer create(int capacity)
VkDeviceGroupPresentInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDeviceGroupPresentInfoKHR.Buffer create(long address, int capacity)
VkDeviceGroupPresentInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDeviceGroupPresentInfoKHR.Buffer createSafe(long address, int capacity)
public static VkDeviceGroupPresentInfoKHR mallocStack()
VkDeviceGroupPresentInfoKHR instance allocated on the thread-local MemoryStack.public static VkDeviceGroupPresentInfoKHR callocStack()
VkDeviceGroupPresentInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDeviceGroupPresentInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupPresentInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDeviceGroupPresentInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupPresentInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDeviceGroupPresentInfoKHR.Buffer mallocStack(int capacity)
VkDeviceGroupPresentInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDeviceGroupPresentInfoKHR.Buffer callocStack(int capacity)
VkDeviceGroupPresentInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDeviceGroupPresentInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupPresentInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDeviceGroupPresentInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupPresentInfoKHR.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 nswapchainCount(long struct)
swapchainCount().@Nullable public static java.nio.IntBuffer npDeviceMasks(long struct)
pDeviceMasks.public static int nmode(long struct)
mode().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nswapchainCount(long struct,
int value)
swapchainCount field of the specified struct.public static void npDeviceMasks(long struct,
@Nullable
java.nio.IntBuffer value)
pDeviceMasks.public static void nmode(long struct,
int value)
mode.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.