Package org.lwjgl.vulkan
Class VkDisplayPropertiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDisplayPropertiesKHR
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDisplayPropertiesKHR extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes properties of a display device present on a Vulkan physical device.
Valid Usage
displaymust be a validVkDisplayKHRhandledisplayNamemust be a null-terminated stringsupportedTransformsmust be a valid combination ofVkSurfaceTransformFlagBitsKHRvalues
Member documentation
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 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.physicalDimensions– the physical width and height of the visible portion of the display, in millimetersphysicalResolution– the physical, native, or preferred resolution of the displaysupportedTransforms– which transforms are supported by this display. One or more of:planeReorderPossible– 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– 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.
Layout
struct VkDisplayPropertiesKHR { VkDisplayKHR display; const char * displayName;VkExtent2DphysicalDimensions;VkExtent2DphysicalResolution; VkSurfaceTransformFlagsKHR supportedTransforms; VkBool32 planeReorderPossible; VkBool32 persistentContent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkDisplayPropertiesKHR.BufferAn array ofVkDisplayPropertiesKHRstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkDisplayPropertiesKHR(java.nio.ByteBuffer container)Creates aVkDisplayPropertiesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkDisplayPropertiesKHRcalloc()Returns a newVkDisplayPropertiesKHRinstance allocated withmemCalloc.static VkDisplayPropertiesKHR.Buffercalloc(int capacity)Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemCalloc.static VkDisplayPropertiesKHRcallocStack()Returns a newVkDisplayPropertiesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayPropertiesKHR.BuffercallocStack(int capacity)Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayPropertiesKHR.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPropertiesKHRcallocStack(MemoryStack stack)Returns a newVkDisplayPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPropertiesKHRcreate()Returns a newVkDisplayPropertiesKHRinstance allocated withBufferUtils.static VkDisplayPropertiesKHR.Buffercreate(int capacity)Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withBufferUtils.static VkDisplayPropertiesKHRcreate(long address)Returns a newVkDisplayPropertiesKHRinstance for the specified memory address ornullif the address isNULL.static VkDisplayPropertiesKHR.Buffercreate(long address, int capacity)Create aVkDisplayPropertiesKHR.Bufferinstance at the specified memory.longdisplay()Returns the value of thedisplayfield.java.nio.ByteBufferdisplayName()Returns aByteBufferview of the null-terminated string pointed to by thedisplayNamefield.java.lang.StringdisplayNameString()Decodes the null-terminated string pointed to by thedisplayNamefield.static VkDisplayPropertiesKHRmalloc()Returns a newVkDisplayPropertiesKHRinstance allocated withmemAlloc.static VkDisplayPropertiesKHR.Buffermalloc(int capacity)Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemAlloc.static VkDisplayPropertiesKHRmallocStack()Returns a newVkDisplayPropertiesKHRinstance allocated on the thread-localMemoryStack.static VkDisplayPropertiesKHR.BuffermallocStack(int capacity)Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkDisplayPropertiesKHR.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayPropertiesKHRmallocStack(MemoryStack stack)Returns a newVkDisplayPropertiesKHRinstance allocated on the specifiedMemoryStack.intpersistentContent()Returns the value of thepersistentContentfield.VkExtent2DphysicalDimensions()Returns aVkExtent2Dview of thephysicalDimensionsfield.VkExtent2DphysicalResolution()Returns aVkExtent2Dview of thephysicalResolutionfield.intplaneReorderPossible()Returns the value of theplaneReorderPossiblefield.intsizeof()Returns thesizeof(struct).intsupportedTransforms()Returns the value of thesupportedTransformsfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkDisplayPropertiesKHR
public VkDisplayPropertiesKHR(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
display
public long display()
Returns the value of thedisplayfield.
-
displayName
public java.nio.ByteBuffer displayName()
Returns aByteBufferview of the null-terminated string pointed to by thedisplayNamefield.
-
displayNameString
public java.lang.String displayNameString()
Decodes the null-terminated string pointed to by thedisplayNamefield.
-
physicalDimensions
public VkExtent2D physicalDimensions()
Returns aVkExtent2Dview of thephysicalDimensionsfield.
-
physicalResolution
public VkExtent2D physicalResolution()
Returns aVkExtent2Dview of thephysicalResolutionfield.
-
supportedTransforms
public int supportedTransforms()
Returns the value of thesupportedTransformsfield.
-
planeReorderPossible
public int planeReorderPossible()
Returns the value of theplaneReorderPossiblefield.
-
persistentContent
public int persistentContent()
Returns the value of thepersistentContentfield.
-
malloc
public static VkDisplayPropertiesKHR malloc()
Returns a newVkDisplayPropertiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDisplayPropertiesKHR calloc()
Returns a newVkDisplayPropertiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDisplayPropertiesKHR create()
Returns a newVkDisplayPropertiesKHRinstance allocated withBufferUtils.
-
create
public static VkDisplayPropertiesKHR create(long address)
Returns a newVkDisplayPropertiesKHRinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkDisplayPropertiesKHR.Buffer malloc(int capacity)
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDisplayPropertiesKHR.Buffer calloc(int capacity)
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayPropertiesKHR.Buffer create(int capacity)
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayPropertiesKHR.Buffer create(long address, int capacity)
Create aVkDisplayPropertiesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkDisplayPropertiesKHR mallocStack()
Returns a newVkDisplayPropertiesKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDisplayPropertiesKHR callocStack()
Returns a newVkDisplayPropertiesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDisplayPropertiesKHR mallocStack(MemoryStack stack)
Returns a newVkDisplayPropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplayPropertiesKHR callocStack(MemoryStack stack)
Returns a newVkDisplayPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDisplayPropertiesKHR.Buffer mallocStack(int capacity)
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDisplayPropertiesKHR.Buffer callocStack(int capacity)
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDisplayPropertiesKHR.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDisplayPropertiesKHR.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-