public class VkDisplayModeParametersKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
For example, a 60Hz display mode would report a refreshRate of 60,000.
width member of visibleRegion must be greater than 0height member of visibleRegion must be greater than 0refreshRate must be greater than 0VkDisplayModeCreateInfoKHR, VkDisplayModePropertiesKHR, VkExtent2D
visibleRegion – the 2D extents of the visible region.refreshRate – a uint32_t that is the number of times the display is refreshed each second multiplied by 1000.
struct VkDisplayModeParametersKHR {
VkExtent2D visibleRegion;
uint32_t refreshRate;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDisplayModeParametersKHR.Buffer
An array of
VkDisplayModeParametersKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
REFRESHRATE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VISIBLEREGION
The struct member offsets.
|
| Constructor and Description |
|---|
VkDisplayModeParametersKHR(java.nio.ByteBuffer container)
Creates a
VkDisplayModeParametersKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDisplayModeParametersKHR |
calloc()
Returns a new
VkDisplayModeParametersKHR instance allocated with memCalloc. |
static VkDisplayModeParametersKHR.Buffer |
calloc(int capacity)
Returns a new
VkDisplayModeParametersKHR.Buffer instance allocated with memCalloc. |
static VkDisplayModeParametersKHR |
callocStack()
Returns a new
VkDisplayModeParametersKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayModeParametersKHR.Buffer |
callocStack(int capacity)
Returns a new
VkDisplayModeParametersKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayModeParametersKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModeParametersKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayModeParametersKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModeParametersKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayModeParametersKHR |
create()
Returns a new
VkDisplayModeParametersKHR instance allocated with BufferUtils. |
static VkDisplayModeParametersKHR.Buffer |
create(int capacity)
Returns a new
VkDisplayModeParametersKHR.Buffer instance allocated with BufferUtils. |
static VkDisplayModeParametersKHR |
create(long address)
Returns a new
VkDisplayModeParametersKHR instance for the specified memory address. |
static VkDisplayModeParametersKHR.Buffer |
create(long address,
int capacity)
Create a
VkDisplayModeParametersKHR.Buffer instance at the specified memory. |
static VkDisplayModeParametersKHR |
createSafe(long address)
|
static VkDisplayModeParametersKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkDisplayModeParametersKHR |
malloc()
Returns a new
VkDisplayModeParametersKHR instance allocated with memAlloc. |
static VkDisplayModeParametersKHR.Buffer |
malloc(int capacity)
Returns a new
VkDisplayModeParametersKHR.Buffer instance allocated with memAlloc. |
static VkDisplayModeParametersKHR |
mallocStack()
Returns a new
VkDisplayModeParametersKHR instance allocated on the thread-local MemoryStack. |
static VkDisplayModeParametersKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkDisplayModeParametersKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkDisplayModeParametersKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModeParametersKHR.Buffer instance allocated on the specified MemoryStack. |
static VkDisplayModeParametersKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayModeParametersKHR instance allocated on the specified MemoryStack. |
static int |
nrefreshRate(long struct)
Unsafe version of
refreshRate(). |
static void |
nrefreshRate(long struct,
int value)
Unsafe version of
refreshRate. |
static VkExtent2D |
nvisibleRegion(long struct)
Unsafe version of
visibleRegion(). |
static void |
nvisibleRegion(long struct,
VkExtent2D value)
Unsafe version of
visibleRegion. |
int |
refreshRate()
Returns the value of the
refreshRate field. |
VkDisplayModeParametersKHR |
refreshRate(int value)
Sets the specified value to the
refreshRate field. |
VkDisplayModeParametersKHR |
set(VkDisplayModeParametersKHR src)
Copies the specified struct data to this struct.
|
VkDisplayModeParametersKHR |
set(VkExtent2D visibleRegion,
int refreshRate)
Initializes this struct with the specified values.
|
int |
sizeof() |
VkExtent2D |
visibleRegion()
Returns a
VkExtent2D view of the visibleRegion field. |
VkDisplayModeParametersKHR |
visibleRegion(java.util.function.Consumer<VkExtent2D> consumer)
Passes the
visibleRegion field to the specified Consumer. |
VkDisplayModeParametersKHR |
visibleRegion(VkExtent2D value)
Copies the specified
VkExtent2D to the visibleRegion field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VISIBLEREGION
public static final int REFRESHRATE
public VkDisplayModeParametersKHR(java.nio.ByteBuffer container)
VkDisplayModeParametersKHR 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 VkExtent2D visibleRegion()
VkExtent2D view of the visibleRegion field.public int refreshRate()
refreshRate field.public VkDisplayModeParametersKHR visibleRegion(VkExtent2D value)
VkExtent2D to the visibleRegion field.public VkDisplayModeParametersKHR visibleRegion(java.util.function.Consumer<VkExtent2D> consumer)
visibleRegion field to the specified Consumer.public VkDisplayModeParametersKHR refreshRate(int value)
refreshRate field.public VkDisplayModeParametersKHR set(VkExtent2D visibleRegion, int refreshRate)
public VkDisplayModeParametersKHR set(VkDisplayModeParametersKHR src)
src - the source structpublic static VkDisplayModeParametersKHR malloc()
VkDisplayModeParametersKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkDisplayModeParametersKHR calloc()
VkDisplayModeParametersKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkDisplayModeParametersKHR create()
VkDisplayModeParametersKHR instance allocated with BufferUtils.public static VkDisplayModeParametersKHR create(long address)
VkDisplayModeParametersKHR instance for the specified memory address.@Nullable public static VkDisplayModeParametersKHR createSafe(long address)
public static VkDisplayModeParametersKHR.Buffer malloc(int capacity)
VkDisplayModeParametersKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayModeParametersKHR.Buffer calloc(int capacity)
VkDisplayModeParametersKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayModeParametersKHR.Buffer create(int capacity)
VkDisplayModeParametersKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDisplayModeParametersKHR.Buffer create(long address, int capacity)
VkDisplayModeParametersKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDisplayModeParametersKHR.Buffer createSafe(long address, int capacity)
public static VkDisplayModeParametersKHR mallocStack()
VkDisplayModeParametersKHR instance allocated on the thread-local MemoryStack.public static VkDisplayModeParametersKHR callocStack()
VkDisplayModeParametersKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDisplayModeParametersKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayModeParametersKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDisplayModeParametersKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayModeParametersKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDisplayModeParametersKHR.Buffer mallocStack(int capacity)
VkDisplayModeParametersKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDisplayModeParametersKHR.Buffer callocStack(int capacity)
VkDisplayModeParametersKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDisplayModeParametersKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayModeParametersKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDisplayModeParametersKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayModeParametersKHR.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 VkExtent2D nvisibleRegion(long struct)
visibleRegion().public static int nrefreshRate(long struct)
refreshRate().public static void nvisibleRegion(long struct,
VkExtent2D value)
visibleRegion.public static void nrefreshRate(long struct,
int value)
refreshRate.Copyright LWJGL. All Rights Reserved. License terms.