public class VkDeviceGroupPresentCapabilitiesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
modes always has DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR set.
The present mode flags are also used when presenting an image, in VkDeviceGroupPresentInfoKHR::mode.
If a device group only includes a single physical device, then modes must equal DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR.
sType must be STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_CAPABILITIES_KHRpNext must be NULLGetDeviceGroupPresentCapabilitiesKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.presentMask[VK_MAX_DEVICE_GROUP_SIZE] – an array of MAX_DEVICE_GROUP_SIZE uint32_t masks, where the mask at element i is non-zero if physical device i has a presentation engine, and where bit j is set in element i if physical device i can present swapchain images from physical device j. If element i is non-zero, then bit i must be set.modes – a bitmask of VkDeviceGroupPresentModeFlagBitsKHR indicating which device group presentation modes are supported.
struct VkDeviceGroupPresentCapabilitiesKHR {
VkStructureType sType;
void const * pNext;
uint32_t presentMask[VK_MAX_DEVICE_GROUP_SIZE];
VkDeviceGroupPresentModeFlagsKHR modes;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDeviceGroupPresentCapabilitiesKHR.Buffer
An array of
VkDeviceGroupPresentCapabilitiesKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MODES
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PRESENTMASK
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDeviceGroupPresentCapabilitiesKHR(java.nio.ByteBuffer container)
Creates a
VkDeviceGroupPresentCapabilitiesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDeviceGroupPresentCapabilitiesKHR |
calloc()
Returns a new
VkDeviceGroupPresentCapabilitiesKHR instance allocated with memCalloc. |
static VkDeviceGroupPresentCapabilitiesKHR.Buffer |
calloc(int capacity)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated with memCalloc. |
static VkDeviceGroupPresentCapabilitiesKHR |
callocStack()
Returns a new
VkDeviceGroupPresentCapabilitiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupPresentCapabilitiesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupPresentCapabilitiesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupPresentCapabilitiesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceGroupPresentCapabilitiesKHR |
create()
Returns a new
VkDeviceGroupPresentCapabilitiesKHR instance allocated with BufferUtils. |
static VkDeviceGroupPresentCapabilitiesKHR.Buffer |
create(int capacity)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated with BufferUtils. |
static VkDeviceGroupPresentCapabilitiesKHR |
create(long address)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR instance for the specified memory address. |
static VkDeviceGroupPresentCapabilitiesKHR.Buffer |
create(long address,
int capacity)
Create a
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance at the specified memory. |
static VkDeviceGroupPresentCapabilitiesKHR |
createSafe(long address)
|
static VkDeviceGroupPresentCapabilitiesKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkDeviceGroupPresentCapabilitiesKHR |
malloc()
Returns a new
VkDeviceGroupPresentCapabilitiesKHR instance allocated with memAlloc. |
static VkDeviceGroupPresentCapabilitiesKHR.Buffer |
malloc(int capacity)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated with memAlloc. |
static VkDeviceGroupPresentCapabilitiesKHR |
mallocStack()
Returns a new
VkDeviceGroupPresentCapabilitiesKHR instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupPresentCapabilitiesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkDeviceGroupPresentCapabilitiesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkDeviceGroupPresentCapabilitiesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceGroupPresentCapabilitiesKHR instance allocated on the specified MemoryStack. |
int |
modes()
Returns the value of the
modes field. |
static int |
nmodes(long struct)
Unsafe version of
modes(). |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.IntBuffer |
npresentMask(long struct)
Unsafe version of
presentMask(). |
static int |
npresentMask(long struct,
int index)
Unsafe version of
presentMask. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkDeviceGroupPresentCapabilitiesKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.IntBuffer |
presentMask()
Returns a
IntBuffer view of the presentMask field. |
int |
presentMask(int index)
Returns the value at the specified index of the
presentMask field. |
VkDeviceGroupPresentCapabilitiesKHR |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkDeviceGroupPresentCapabilitiesKHR |
set(VkDeviceGroupPresentCapabilitiesKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDeviceGroupPresentCapabilitiesKHR |
sType(int value)
Sets the specified value to the
sType 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 PRESENTMASK
public static final int MODES
public VkDeviceGroupPresentCapabilitiesKHR(java.nio.ByteBuffer container)
VkDeviceGroupPresentCapabilitiesKHR 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 java.nio.IntBuffer presentMask()
IntBuffer view of the presentMask field.public int presentMask(int index)
presentMask field.public int modes()
modes field.public VkDeviceGroupPresentCapabilitiesKHR sType(int value)
sType field.public VkDeviceGroupPresentCapabilitiesKHR pNext(long value)
pNext field.public VkDeviceGroupPresentCapabilitiesKHR set(int sType, long pNext)
public VkDeviceGroupPresentCapabilitiesKHR set(VkDeviceGroupPresentCapabilitiesKHR src)
src - the source structpublic static VkDeviceGroupPresentCapabilitiesKHR malloc()
VkDeviceGroupPresentCapabilitiesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkDeviceGroupPresentCapabilitiesKHR calloc()
VkDeviceGroupPresentCapabilitiesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkDeviceGroupPresentCapabilitiesKHR create()
VkDeviceGroupPresentCapabilitiesKHR instance allocated with BufferUtils.public static VkDeviceGroupPresentCapabilitiesKHR create(long address)
VkDeviceGroupPresentCapabilitiesKHR instance for the specified memory address.@Nullable public static VkDeviceGroupPresentCapabilitiesKHR createSafe(long address)
public static VkDeviceGroupPresentCapabilitiesKHR.Buffer malloc(int capacity)
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupPresentCapabilitiesKHR.Buffer calloc(int capacity)
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceGroupPresentCapabilitiesKHR.Buffer create(int capacity)
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDeviceGroupPresentCapabilitiesKHR.Buffer create(long address, int capacity)
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDeviceGroupPresentCapabilitiesKHR.Buffer createSafe(long address, int capacity)
public static VkDeviceGroupPresentCapabilitiesKHR mallocStack()
VkDeviceGroupPresentCapabilitiesKHR instance allocated on the thread-local MemoryStack.public static VkDeviceGroupPresentCapabilitiesKHR callocStack()
VkDeviceGroupPresentCapabilitiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDeviceGroupPresentCapabilitiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupPresentCapabilitiesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDeviceGroupPresentCapabilitiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceGroupPresentCapabilitiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDeviceGroupPresentCapabilitiesKHR.Buffer mallocStack(int capacity)
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDeviceGroupPresentCapabilitiesKHR.Buffer callocStack(int capacity)
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDeviceGroupPresentCapabilitiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupPresentCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDeviceGroupPresentCapabilitiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceGroupPresentCapabilitiesKHR.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 java.nio.IntBuffer npresentMask(long struct)
presentMask().public static int npresentMask(long struct,
int index)
presentMask.public static int nmodes(long struct)
modes().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.