public class VkDisplayPropertiesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
display – a handle that is used to refer to the display described here. This handle will be valid for the lifetime of the Vulkan instance.displayName – a pointer to a null-terminated UTF-8 string containing the name of the display. Generally, this will be the name provided by the display’s EDID. It can be NULL if no suitable name is available. If not NULL, the memory it points to must remain accessible as long as display is valid.physicalDimensions – describes the physical width and height of the visible portion of the display, in millimeters.physicalResolution – describes the physical, native, or preferred resolution of the display.
For devices which have no natural value to return here, implementations should return the maximum resolution supported.
supportedTransforms – a bitmask of VkSurfaceTransformFlagBitsKHR describing which transforms are supported by this display.planeReorderPossible – tells whether the planes on this display can have their z order changed. If this is TRUE, the application can re-arrange the planes on this display in any order relative to each other.persistentContent – tells whether the display supports self-refresh/internal buffering. If this is true, the application can submit persistent present operations on swapchains created against this display.
Persistent presents may have higher latency, and may use less power when the screen content is updated infrequently, or when only a portion of the screen needs to be updated in most frames.
struct VkDisplayPropertiesKHR {
VkDisplayKHR display;
char const * displayName;
VkExtent2D physicalDimensions;
VkExtent2D physicalResolution;
VkSurfaceTransformFlagsKHR supportedTransforms;
VkBool32 planeReorderPossible;
VkBool32 persistentContent;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDisplayPropertiesKHR.Buffer
An array of
VkDisplayPropertiesKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
DISPLAYNAME
The struct member offsets.
|
static int |
PERSISTENTCONTENT
The struct member offsets.
|
static int |
PHYSICALDIMENSIONS
The struct member offsets.
|
static int |
PHYSICALRESOLUTION
The struct member offsets.
|
static int |
PLANEREORDERPOSSIBLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SUPPORTEDTRANSFORMS
The struct member offsets.
|
| Constructor and Description |
|---|
VkDisplayPropertiesKHR(java.nio.ByteBuffer container)
Creates a
VkDisplayPropertiesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDisplayPropertiesKHR |
calloc()
Returns a new
VkDisplayPropertiesKHR instance allocated with memCalloc. |
static VkDisplayPropertiesKHR.Buffer |
calloc(int capacity)
Returns a new
VkDisplayPropertiesKHR.Buffer instance allocated with memCalloc. |
static VkDisplayPropertiesKHR |
callocStack()
Returns a new
VkDisplayPropertiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPropertiesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkDisplayPropertiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPropertiesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPropertiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPropertiesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPropertiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPropertiesKHR |
create()
Returns a new
VkDisplayPropertiesKHR instance allocated with BufferUtils. |
static VkDisplayPropertiesKHR.Buffer |
create(int capacity)
Returns a new
VkDisplayPropertiesKHR.Buffer instance allocated with BufferUtils. |
static VkDisplayPropertiesKHR |
create(long address)
Returns a new
VkDisplayPropertiesKHR instance for the specified memory address. |
static VkDisplayPropertiesKHR.Buffer |
create(long address,
int capacity)
Create a
VkDisplayPropertiesKHR.Buffer instance at the specified memory. |
static VkDisplayPropertiesKHR |
createSafe(long address)
|
static VkDisplayPropertiesKHR.Buffer |
createSafe(long address,
int capacity)
|
long |
display()
Returns the value of the
display field. |
java.nio.ByteBuffer |
displayName()
Returns a
ByteBuffer view of the null-terminated string pointed to by the displayName field. |
java.lang.String |
displayNameString()
Decodes the null-terminated string pointed to by the
displayName field. |
static VkDisplayPropertiesKHR |
malloc()
Returns a new
VkDisplayPropertiesKHR instance allocated with memAlloc. |
static VkDisplayPropertiesKHR.Buffer |
malloc(int capacity)
Returns a new
VkDisplayPropertiesKHR.Buffer instance allocated with memAlloc. |
static VkDisplayPropertiesKHR |
mallocStack()
Returns a new
VkDisplayPropertiesKHR instance allocated on the thread-local MemoryStack. |
static VkDisplayPropertiesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkDisplayPropertiesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkDisplayPropertiesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPropertiesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkDisplayPropertiesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPropertiesKHR instance allocated on the specified MemoryStack. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static java.nio.ByteBuffer |
ndisplayName(long struct)
Unsafe version of
displayName(). |
static java.lang.String |
ndisplayNameString(long struct)
Unsafe version of
displayNameString(). |
static int |
npersistentContent(long struct)
Unsafe version of
persistentContent(). |
static VkExtent2D |
nphysicalDimensions(long struct)
Unsafe version of
physicalDimensions(). |
static VkExtent2D |
nphysicalResolution(long struct)
Unsafe version of
physicalResolution(). |
static int |
nplaneReorderPossible(long struct)
Unsafe version of
planeReorderPossible(). |
static int |
nsupportedTransforms(long struct)
Unsafe version of
supportedTransforms(). |
boolean |
persistentContent()
Returns the value of the
persistentContent field. |
VkExtent2D |
physicalDimensions()
Returns a
VkExtent2D view of the physicalDimensions field. |
VkExtent2D |
physicalResolution()
Returns a
VkExtent2D view of the physicalResolution field. |
boolean |
planeReorderPossible()
Returns the value of the
planeReorderPossible field. |
int |
sizeof() |
int |
supportedTransforms()
Returns the value of the
supportedTransforms field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DISPLAY
public static final int DISPLAYNAME
public static final int PHYSICALDIMENSIONS
public static final int PHYSICALRESOLUTION
public static final int SUPPORTEDTRANSFORMS
public static final int PLANEREORDERPOSSIBLE
public static final int PERSISTENTCONTENT
public VkDisplayPropertiesKHR(java.nio.ByteBuffer container)
VkDisplayPropertiesKHR 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 display()
display field.public java.nio.ByteBuffer displayName()
ByteBuffer view of the null-terminated string pointed to by the displayName field.public java.lang.String displayNameString()
displayName field.public VkExtent2D physicalDimensions()
VkExtent2D view of the physicalDimensions field.public VkExtent2D physicalResolution()
VkExtent2D view of the physicalResolution field.public int supportedTransforms()
supportedTransforms field.public boolean planeReorderPossible()
planeReorderPossible field.public boolean persistentContent()
persistentContent field.public static VkDisplayPropertiesKHR malloc()
VkDisplayPropertiesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkDisplayPropertiesKHR calloc()
VkDisplayPropertiesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkDisplayPropertiesKHR create()
VkDisplayPropertiesKHR instance allocated with BufferUtils.public static VkDisplayPropertiesKHR create(long address)
VkDisplayPropertiesKHR instance for the specified memory address.@Nullable public static VkDisplayPropertiesKHR createSafe(long address)
public static VkDisplayPropertiesKHR.Buffer malloc(int capacity)
VkDisplayPropertiesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPropertiesKHR.Buffer calloc(int capacity)
VkDisplayPropertiesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPropertiesKHR.Buffer create(int capacity)
VkDisplayPropertiesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDisplayPropertiesKHR.Buffer create(long address, int capacity)
VkDisplayPropertiesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDisplayPropertiesKHR.Buffer createSafe(long address, int capacity)
public static VkDisplayPropertiesKHR mallocStack()
VkDisplayPropertiesKHR instance allocated on the thread-local MemoryStack.public static VkDisplayPropertiesKHR callocStack()
VkDisplayPropertiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDisplayPropertiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPropertiesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDisplayPropertiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPropertiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDisplayPropertiesKHR.Buffer mallocStack(int capacity)
VkDisplayPropertiesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDisplayPropertiesKHR.Buffer callocStack(int capacity)
VkDisplayPropertiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDisplayPropertiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPropertiesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDisplayPropertiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPropertiesKHR.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 ndisplay(long struct)
display().public static java.nio.ByteBuffer ndisplayName(long struct)
displayName().public static java.lang.String ndisplayNameString(long struct)
displayNameString().public static VkExtent2D nphysicalDimensions(long struct)
physicalDimensions().public static VkExtent2D nphysicalResolution(long struct)
physicalResolution().public static int nsupportedTransforms(long struct)
supportedTransforms().public static int nplaneReorderPossible(long struct)
planeReorderPossible().public static int npersistentContent(long struct)
persistentContent().Copyright LWJGL. All Rights Reserved. License terms.