public class VkDisplayModePropertiesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
displayMode – a handle to the display mode described in this structure. This handle will be valid for the lifetime of the Vulkan instance.parameters – a VkDisplayModeParametersKHR structure describing the display parameters associated with displayMode.
struct VkDisplayModePropertiesKHR {
VkDisplayModeKHR displayMode;
VkDisplayModeParametersKHR parameters;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDisplayModePropertiesKHR.Buffer
An array of
VkDisplayModePropertiesKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DISPLAYMODE
The struct member offsets.
|
static int |
PARAMETERS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkDisplayModePropertiesKHR(java.nio.ByteBuffer container)
Creates a
VkDisplayModePropertiesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDisplayModePropertiesKHR |
calloc()
Returns a new
VkDisplayModePropertiesKHR instance allocated with memCalloc. |
static VkDisplayModePropertiesKHR.Buffer |
calloc(int capacity)
Returns a new
VkDisplayModePropertiesKHR.Buffer instance allocated with memCalloc. |
static VkDisplayModePropertiesKHR |
callocStack()
Returns a new
VkDisplayModePropertiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayModePropertiesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkDisplayModePropertiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayModePropertiesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModePropertiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayModePropertiesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModePropertiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayModePropertiesKHR |
create()
Returns a new
VkDisplayModePropertiesKHR instance allocated with BufferUtils. |
static VkDisplayModePropertiesKHR.Buffer |
create(int capacity)
Returns a new
VkDisplayModePropertiesKHR.Buffer instance allocated with BufferUtils. |
static VkDisplayModePropertiesKHR |
create(long address)
Returns a new
VkDisplayModePropertiesKHR instance for the specified memory address. |
static VkDisplayModePropertiesKHR.Buffer |
create(long address,
int capacity)
Create a
VkDisplayModePropertiesKHR.Buffer instance at the specified memory. |
static VkDisplayModePropertiesKHR |
createSafe(long address)
|
static VkDisplayModePropertiesKHR.Buffer |
createSafe(long address,
int capacity)
|
long |
displayMode()
Returns the value of the
displayMode field. |
static VkDisplayModePropertiesKHR |
malloc()
Returns a new
VkDisplayModePropertiesKHR instance allocated with memAlloc. |
static VkDisplayModePropertiesKHR.Buffer |
malloc(int capacity)
Returns a new
VkDisplayModePropertiesKHR.Buffer instance allocated with memAlloc. |
static VkDisplayModePropertiesKHR |
mallocStack()
Returns a new
VkDisplayModePropertiesKHR instance allocated on the thread-local MemoryStack. |
static VkDisplayModePropertiesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkDisplayModePropertiesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkDisplayModePropertiesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModePropertiesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkDisplayModePropertiesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModePropertiesKHR instance allocated on the specified MemoryStack. |
static long |
ndisplayMode(long struct)
Unsafe version of
displayMode(). |
static VkDisplayModeParametersKHR |
nparameters(long struct)
Unsafe version of
parameters(). |
VkDisplayModeParametersKHR |
parameters()
Returns a
VkDisplayModeParametersKHR view of the parameters field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DISPLAYMODE
public static final int PARAMETERS
public VkDisplayModePropertiesKHR(java.nio.ByteBuffer container)
VkDisplayModePropertiesKHR 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 long displayMode()
displayMode field.public VkDisplayModeParametersKHR parameters()
VkDisplayModeParametersKHR view of the parameters field.public static VkDisplayModePropertiesKHR malloc()
VkDisplayModePropertiesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkDisplayModePropertiesKHR calloc()
VkDisplayModePropertiesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkDisplayModePropertiesKHR create()
VkDisplayModePropertiesKHR instance allocated with BufferUtils.public static VkDisplayModePropertiesKHR create(long address)
VkDisplayModePropertiesKHR instance for the specified memory address.@Nullable public static VkDisplayModePropertiesKHR createSafe(long address)
public static VkDisplayModePropertiesKHR.Buffer malloc(int capacity)
VkDisplayModePropertiesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayModePropertiesKHR.Buffer calloc(int capacity)
VkDisplayModePropertiesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayModePropertiesKHR.Buffer create(int capacity)
VkDisplayModePropertiesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDisplayModePropertiesKHR.Buffer create(long address, int capacity)
VkDisplayModePropertiesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDisplayModePropertiesKHR.Buffer createSafe(long address, int capacity)
public static VkDisplayModePropertiesKHR mallocStack()
VkDisplayModePropertiesKHR instance allocated on the thread-local MemoryStack.public static VkDisplayModePropertiesKHR callocStack()
VkDisplayModePropertiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDisplayModePropertiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayModePropertiesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDisplayModePropertiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayModePropertiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDisplayModePropertiesKHR.Buffer mallocStack(int capacity)
VkDisplayModePropertiesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDisplayModePropertiesKHR.Buffer callocStack(int capacity)
VkDisplayModePropertiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDisplayModePropertiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayModePropertiesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDisplayModePropertiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayModePropertiesKHR.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 long ndisplayMode(long struct)
displayMode().public static VkDisplayModeParametersKHR nparameters(long struct)
parameters().Copyright LWJGL. All Rights Reserved. License terms.