public class VkDisplayPlaneInfo2KHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
This parameter also implicitly specifies a display.
planeIndex is the plane which the application intends to use with the display.The members of VkDisplayPlaneInfo2KHR correspond to the arguments to GetDisplayPlaneCapabilitiesKHR, with sType and pNext added for extensibility.
sType must be STRUCTURE_TYPE_DISPLAY_PLANE_INFO_2_KHRpNext must be NULLmode must be a valid VkDisplayModeKHR handlemode must be externally synchronizedGetDisplayPlaneCapabilities2KHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.mode – the display mode the application intends to program when using the specified plane.
struct VkDisplayPlaneInfo2KHR {
VkStructureType sType;
void const * pNext;
VkDisplayModeKHR mode;
uint32_t planeIndex;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDisplayPlaneInfo2KHR.Buffer
An array of
VkDisplayPlaneInfo2KHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MODE
The struct member offsets.
|
static int |
PLANEINDEX
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.
|
| Constructor and Description |
|---|
VkDisplayPlaneInfo2KHR(java.nio.ByteBuffer container)
Creates a
VkDisplayPlaneInfo2KHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDisplayPlaneInfo2KHR |
calloc()
Returns a new
VkDisplayPlaneInfo2KHR instance allocated with memCalloc. |
static VkDisplayPlaneInfo2KHR.Buffer |
calloc(int capacity)
Returns a new
VkDisplayPlaneInfo2KHR.Buffer instance allocated with memCalloc. |
static VkDisplayPlaneInfo2KHR |
callocStack()
Returns a new
VkDisplayPlaneInfo2KHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPlaneInfo2KHR.Buffer |
callocStack(int capacity)
Returns a new
VkDisplayPlaneInfo2KHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPlaneInfo2KHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPlaneInfo2KHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPlaneInfo2KHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPlaneInfo2KHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPlaneInfo2KHR |
create()
Returns a new
VkDisplayPlaneInfo2KHR instance allocated with BufferUtils. |
static VkDisplayPlaneInfo2KHR.Buffer |
create(int capacity)
Returns a new
VkDisplayPlaneInfo2KHR.Buffer instance allocated with BufferUtils. |
static VkDisplayPlaneInfo2KHR |
create(long address)
Returns a new
VkDisplayPlaneInfo2KHR instance for the specified memory address. |
static VkDisplayPlaneInfo2KHR.Buffer |
create(long address,
int capacity)
Create a
VkDisplayPlaneInfo2KHR.Buffer instance at the specified memory. |
static VkDisplayPlaneInfo2KHR |
createSafe(long address)
|
static VkDisplayPlaneInfo2KHR.Buffer |
createSafe(long address,
int capacity)
|
static VkDisplayPlaneInfo2KHR |
malloc()
Returns a new
VkDisplayPlaneInfo2KHR instance allocated with memAlloc. |
static VkDisplayPlaneInfo2KHR.Buffer |
malloc(int capacity)
Returns a new
VkDisplayPlaneInfo2KHR.Buffer instance allocated with memAlloc. |
static VkDisplayPlaneInfo2KHR |
mallocStack()
Returns a new
VkDisplayPlaneInfo2KHR instance allocated on the thread-local MemoryStack. |
static VkDisplayPlaneInfo2KHR.Buffer |
mallocStack(int capacity)
Returns a new
VkDisplayPlaneInfo2KHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkDisplayPlaneInfo2KHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPlaneInfo2KHR.Buffer instance allocated on the specified MemoryStack. |
static VkDisplayPlaneInfo2KHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPlaneInfo2KHR instance allocated on the specified MemoryStack. |
long |
mode()
Returns the value of the
mode field. |
VkDisplayPlaneInfo2KHR |
mode(long value)
Sets the specified value to the
mode field. |
static long |
nmode(long struct)
Unsafe version of
mode(). |
static void |
nmode(long struct,
long value)
Unsafe version of
mode. |
static int |
nplaneIndex(long struct)
Unsafe version of
planeIndex(). |
static void |
nplaneIndex(long struct,
int value)
Unsafe version of
planeIndex. |
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. |
int |
planeIndex()
Returns the value of the
planeIndex field. |
VkDisplayPlaneInfo2KHR |
planeIndex(int value)
Sets the specified value to the
planeIndex field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDisplayPlaneInfo2KHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDisplayPlaneInfo2KHR |
set(int sType,
long pNext,
long mode,
int planeIndex)
Initializes this struct with the specified values.
|
VkDisplayPlaneInfo2KHR |
set(VkDisplayPlaneInfo2KHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDisplayPlaneInfo2KHR |
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 MODE
public static final int PLANEINDEX
public VkDisplayPlaneInfo2KHR(java.nio.ByteBuffer container)
VkDisplayPlaneInfo2KHR 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 long mode()
mode field.public int planeIndex()
planeIndex field.public VkDisplayPlaneInfo2KHR sType(int value)
sType field.public VkDisplayPlaneInfo2KHR pNext(long value)
pNext field.public VkDisplayPlaneInfo2KHR mode(long value)
mode field.public VkDisplayPlaneInfo2KHR planeIndex(int value)
planeIndex field.public VkDisplayPlaneInfo2KHR set(int sType, long pNext, long mode, int planeIndex)
public VkDisplayPlaneInfo2KHR set(VkDisplayPlaneInfo2KHR src)
src - the source structpublic static VkDisplayPlaneInfo2KHR malloc()
VkDisplayPlaneInfo2KHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkDisplayPlaneInfo2KHR calloc()
VkDisplayPlaneInfo2KHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkDisplayPlaneInfo2KHR create()
VkDisplayPlaneInfo2KHR instance allocated with BufferUtils.public static VkDisplayPlaneInfo2KHR create(long address)
VkDisplayPlaneInfo2KHR instance for the specified memory address.@Nullable public static VkDisplayPlaneInfo2KHR createSafe(long address)
public static VkDisplayPlaneInfo2KHR.Buffer malloc(int capacity)
VkDisplayPlaneInfo2KHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPlaneInfo2KHR.Buffer calloc(int capacity)
VkDisplayPlaneInfo2KHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPlaneInfo2KHR.Buffer create(int capacity)
VkDisplayPlaneInfo2KHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDisplayPlaneInfo2KHR.Buffer create(long address, int capacity)
VkDisplayPlaneInfo2KHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDisplayPlaneInfo2KHR.Buffer createSafe(long address, int capacity)
public static VkDisplayPlaneInfo2KHR mallocStack()
VkDisplayPlaneInfo2KHR instance allocated on the thread-local MemoryStack.public static VkDisplayPlaneInfo2KHR callocStack()
VkDisplayPlaneInfo2KHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDisplayPlaneInfo2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPlaneInfo2KHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDisplayPlaneInfo2KHR callocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPlaneInfo2KHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDisplayPlaneInfo2KHR.Buffer mallocStack(int capacity)
VkDisplayPlaneInfo2KHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDisplayPlaneInfo2KHR.Buffer callocStack(int capacity)
VkDisplayPlaneInfo2KHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDisplayPlaneInfo2KHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPlaneInfo2KHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDisplayPlaneInfo2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPlaneInfo2KHR.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 long nmode(long struct)
mode().public static int nplaneIndex(long struct)
planeIndex().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nmode(long struct,
long value)
mode.public static void nplaneIndex(long struct,
int value)
planeIndex.Copyright LWJGL. All Rights Reserved. License terms.