Package org.lwjgl.vulkan
Class VkDisplayPropertiesKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDisplayPropertiesKHR>
org.lwjgl.vulkan.VkDisplayPropertiesKHR
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDisplayPropertiesKHR
extends org.lwjgl.system.Struct<VkDisplayPropertiesKHR>
implements org.lwjgl.system.NativeResource
Structure describing an available display device.
See Also
VkDisplayProperties2KHR, VkExtent2D, GetPhysicalDeviceDisplayPropertiesKHR
Layout
struct VkDisplayPropertiesKHR {
VkDisplayKHR display();
char const * displayName();
VkExtent2D physicalDimensions();
VkExtent2D physicalResolution();
VkSurfaceTransformFlagsKHR supportedTransforms();
VkBool32 planeReorderPossible();
VkBool32 persistentContent();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkDisplayPropertiesKHR(ByteBuffer container) Creates aVkDisplayPropertiesKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDisplayPropertiesKHRcalloc()Returns a newVkDisplayPropertiesKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPropertiesKHRcalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkDisplayPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPropertiesKHRDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkDisplayPropertiesKHRcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static VkDisplayPropertiesKHRcreate()Returns a newVkDisplayPropertiesKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withBufferUtils.static VkDisplayPropertiesKHRcreate(long address) Returns a newVkDisplayPropertiesKHRinstance for the specified memory address.create(long address, int capacity) Create aVkDisplayPropertiesKHR.Bufferinstance at the specified memory.static @Nullable VkDisplayPropertiesKHRcreateSafe(long address) static @Nullable VkDisplayPropertiesKHR.BuffercreateSafe(long address, int capacity) longdisplay()a handle that is used to refer to the display described here.NULLor a pointer to a null-terminated UTF-8 string containing the name of the display.NULLor a pointer to a null-terminated UTF-8 string containing the name of the display.static VkDisplayPropertiesKHRmalloc()Returns a newVkDisplayPropertiesKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayPropertiesKHRmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkDisplayPropertiesKHRinstance allocated on the specifiedMemoryStack.static VkDisplayPropertiesKHRDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkDisplayPropertiesKHRmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static longndisplay(long struct) Unsafe version ofdisplay().static ByteBufferndisplayName(long struct) Unsafe version ofdisplayName().static StringndisplayNameString(long struct) Unsafe version ofdisplayNameString().static intnpersistentContent(long struct) Unsafe version ofpersistentContent().static VkExtent2DnphysicalDimensions(long struct) Unsafe version ofphysicalDimensions().static VkExtent2DnphysicalResolution(long struct) Unsafe version ofphysicalResolution().static intnplaneReorderPossible(long struct) Unsafe version ofplaneReorderPossible().static intnsupportedTransforms(long struct) Unsafe version ofsupportedTransforms().booleantells whether the display supports self-refresh/internal buffering.describes the physical width and height of the visible portion of the display, in millimeters.describes the physical, native, or preferred resolution of the display.booleantells whether the planes on this display can have their z order changed.intsizeof()inta bitmask ofVkSurfaceTransformFlagBitsKHRdescribing which transforms are supported by this display.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
DISPLAY
public static final int DISPLAYThe struct member offsets. -
DISPLAYNAME
public static final int DISPLAYNAMEThe struct member offsets. -
PHYSICALDIMENSIONS
public static final int PHYSICALDIMENSIONSThe struct member offsets. -
PHYSICALRESOLUTION
public static final int PHYSICALRESOLUTIONThe struct member offsets. -
SUPPORTEDTRANSFORMS
public static final int SUPPORTEDTRANSFORMSThe struct member offsets. -
PLANEREORDERPOSSIBLE
public static final int PLANEREORDERPOSSIBLEThe struct member offsets. -
PERSISTENTCONTENT
public static final int PERSISTENTCONTENTThe struct member offsets.
-
-
Constructor Details
-
VkDisplayPropertiesKHR
Creates aVkDisplayPropertiesKHRinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkDisplayPropertiesKHR>
-
display
public long 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
NULLor 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. IfNULL, no suitable name is available. If notNULL, the string pointed to must remain accessible and unmodified as long asdisplayis valid. -
displayNameString
NULLor 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. IfNULL, no suitable name is available. If notNULL, the string pointed to must remain accessible and unmodified as long asdisplayis 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.Note
For devices which have no natural value to return here, implementations should return the maximum resolution supported.
-
supportedTransforms
public int supportedTransforms()a bitmask ofVkSurfaceTransformFlagBitsKHRdescribing which transforms are supported by this display. -
planeReorderPossible
public boolean planeReorderPossible()tells whether the planes on this display can have their z order changed. If this isTRUE, the application can re-arrange the planes on this display in any order relative to each other. -
persistentContent
public boolean 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.Note
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.
-
malloc
Returns a newVkDisplayPropertiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDisplayPropertiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDisplayPropertiesKHRinstance allocated withBufferUtils. -
create
Returns a newVkDisplayPropertiesKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDisplayPropertiesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static VkDisplayPropertiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VkDisplayPropertiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkDisplayPropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDisplayPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDisplayPropertiesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkDisplayPropertiesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ndisplay
public static long ndisplay(long struct) Unsafe version ofdisplay(). -
ndisplayName
Unsafe version ofdisplayName(). -
ndisplayNameString
Unsafe version ofdisplayNameString(). -
nphysicalDimensions
Unsafe version ofphysicalDimensions(). -
nphysicalResolution
Unsafe version ofphysicalResolution(). -
nsupportedTransforms
public static int nsupportedTransforms(long struct) Unsafe version ofsupportedTransforms(). -
nplaneReorderPossible
public static int nplaneReorderPossible(long struct) Unsafe version ofplaneReorderPossible(). -
npersistentContent
public static int npersistentContent(long struct) Unsafe version ofpersistentContent().
-