public class VkDisplayModeCreateInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHRpNext must be NULLflags must be 0parameters must be a valid VkDisplayModeParametersKHR structureVkDisplayModeParametersKHR, CreateDisplayModeKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use, and must be zero.parameters – a VkDisplayModeParametersKHR structure describing the display parameters to use in creating the new mode. If the parameters are not compatible with the specified display, the implementation must return ERROR_INITIALIZATION_FAILED.
struct VkDisplayModeCreateInfoKHR {
VkStructureType sType;
void const * pNext;
VkDisplayModeCreateFlagsKHR flags;
VkDisplayModeParametersKHR parameters;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDisplayModeCreateInfoKHR.Buffer
An array of
VkDisplayModeCreateInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PARAMETERS
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 |
|---|
VkDisplayModeCreateInfoKHR(java.nio.ByteBuffer container)
Creates a
VkDisplayModeCreateInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDisplayModeCreateInfoKHR |
calloc()
Returns a new
VkDisplayModeCreateInfoKHR instance allocated with memCalloc. |
static VkDisplayModeCreateInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkDisplayModeCreateInfoKHR.Buffer instance allocated with memCalloc. |
static VkDisplayModeCreateInfoKHR |
callocStack()
Returns a new
VkDisplayModeCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayModeCreateInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkDisplayModeCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayModeCreateInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModeCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayModeCreateInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModeCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayModeCreateInfoKHR |
create()
Returns a new
VkDisplayModeCreateInfoKHR instance allocated with BufferUtils. |
static VkDisplayModeCreateInfoKHR.Buffer |
create(int capacity)
Returns a new
VkDisplayModeCreateInfoKHR.Buffer instance allocated with BufferUtils. |
static VkDisplayModeCreateInfoKHR |
create(long address)
Returns a new
VkDisplayModeCreateInfoKHR instance for the specified memory address. |
static VkDisplayModeCreateInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkDisplayModeCreateInfoKHR.Buffer instance at the specified memory. |
static VkDisplayModeCreateInfoKHR |
createSafe(long address)
|
static VkDisplayModeCreateInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkDisplayModeCreateInfoKHR |
flags(int value)
Sets the specified value to the
flags field. |
static VkDisplayModeCreateInfoKHR |
malloc()
Returns a new
VkDisplayModeCreateInfoKHR instance allocated with memAlloc. |
static VkDisplayModeCreateInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkDisplayModeCreateInfoKHR.Buffer instance allocated with memAlloc. |
static VkDisplayModeCreateInfoKHR |
mallocStack()
Returns a new
VkDisplayModeCreateInfoKHR instance allocated on the thread-local MemoryStack. |
static VkDisplayModeCreateInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkDisplayModeCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkDisplayModeCreateInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModeCreateInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkDisplayModeCreateInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModeCreateInfoKHR instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkDisplayModeParametersKHR |
nparameters(long struct)
Unsafe version of
parameters(). |
static void |
nparameters(long struct,
VkDisplayModeParametersKHR value)
Unsafe version of
parameters. |
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. |
VkDisplayModeParametersKHR |
parameters()
Returns a
VkDisplayModeParametersKHR view of the parameters field. |
VkDisplayModeCreateInfoKHR |
parameters(java.util.function.Consumer<VkDisplayModeParametersKHR> consumer)
Passes the
parameters field to the specified Consumer. |
VkDisplayModeCreateInfoKHR |
parameters(VkDisplayModeParametersKHR value)
Copies the specified
VkDisplayModeParametersKHR to the parameters field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDisplayModeCreateInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDisplayModeCreateInfoKHR |
set(int sType,
long pNext,
int flags,
VkDisplayModeParametersKHR parameters)
Initializes this struct with the specified values.
|
VkDisplayModeCreateInfoKHR |
set(VkDisplayModeCreateInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDisplayModeCreateInfoKHR |
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 FLAGS
public static final int PARAMETERS
public VkDisplayModeCreateInfoKHR(java.nio.ByteBuffer container)
VkDisplayModeCreateInfoKHR 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 flags()
flags field.public VkDisplayModeParametersKHR parameters()
VkDisplayModeParametersKHR view of the parameters field.public VkDisplayModeCreateInfoKHR sType(int value)
sType field.public VkDisplayModeCreateInfoKHR pNext(long value)
pNext field.public VkDisplayModeCreateInfoKHR flags(int value)
flags field.public VkDisplayModeCreateInfoKHR parameters(VkDisplayModeParametersKHR value)
VkDisplayModeParametersKHR to the parameters field.public VkDisplayModeCreateInfoKHR parameters(java.util.function.Consumer<VkDisplayModeParametersKHR> consumer)
parameters field to the specified Consumer.public VkDisplayModeCreateInfoKHR set(int sType, long pNext, int flags, VkDisplayModeParametersKHR parameters)
public VkDisplayModeCreateInfoKHR set(VkDisplayModeCreateInfoKHR src)
src - the source structpublic static VkDisplayModeCreateInfoKHR malloc()
VkDisplayModeCreateInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkDisplayModeCreateInfoKHR calloc()
VkDisplayModeCreateInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkDisplayModeCreateInfoKHR create()
VkDisplayModeCreateInfoKHR instance allocated with BufferUtils.public static VkDisplayModeCreateInfoKHR create(long address)
VkDisplayModeCreateInfoKHR instance for the specified memory address.@Nullable public static VkDisplayModeCreateInfoKHR createSafe(long address)
public static VkDisplayModeCreateInfoKHR.Buffer malloc(int capacity)
VkDisplayModeCreateInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayModeCreateInfoKHR.Buffer calloc(int capacity)
VkDisplayModeCreateInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayModeCreateInfoKHR.Buffer create(int capacity)
VkDisplayModeCreateInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDisplayModeCreateInfoKHR.Buffer create(long address, int capacity)
VkDisplayModeCreateInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDisplayModeCreateInfoKHR.Buffer createSafe(long address, int capacity)
public static VkDisplayModeCreateInfoKHR mallocStack()
VkDisplayModeCreateInfoKHR instance allocated on the thread-local MemoryStack.public static VkDisplayModeCreateInfoKHR callocStack()
VkDisplayModeCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDisplayModeCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayModeCreateInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDisplayModeCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayModeCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDisplayModeCreateInfoKHR.Buffer mallocStack(int capacity)
VkDisplayModeCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDisplayModeCreateInfoKHR.Buffer callocStack(int capacity)
VkDisplayModeCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDisplayModeCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayModeCreateInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDisplayModeCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayModeCreateInfoKHR.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 nflags(long struct)
flags().public static VkDisplayModeParametersKHR nparameters(long struct)
parameters().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nparameters(long struct,
VkDisplayModeParametersKHR value)
parameters.Copyright LWJGL. All Rights Reserved. License terms.