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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDisplayPropertiesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing an available display device.See Also
VkDisplayProperties2KHR,VkExtent2D,GetPhysicalDeviceDisplayPropertiesKHRLayout
struct VkDisplayPropertiesKHR { VkDisplayKHRdisplay(); char const *displayName();VkExtent2DphysicalDimensions();VkExtent2DphysicalResolution(); VkSurfaceTransformFlagsKHRsupportedTransforms(); VkBool32planeReorderPossible(); VkBool32persistentContent(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDisplayPropertiesKHR.BufferAn array ofVkDisplayPropertiesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDISPLAY
DISPLAYNAME
PERSISTENTCONTENT
PHYSICALDIMENSIONS
PHYSICALRESOLUTION
PLANEREORDERPOSSIBLEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSUPPORTEDTRANSFORMSThe struct member offsets.
-
Constructor Summary
Constructors Constructor 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 Deprecated Methods Modifier and Type Method Description static VkDisplayPropertiesKHRcalloc()Returns a newVkDisplayPropertiesKHRinstance allocated withmemCalloc.static VkDisplayPropertiesKHR.Buffercalloc(int capacity)Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemCalloc.static VkDisplayPropertiesKHR.Buffercalloc(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 VkDisplayPropertiesKHRcallocStack()Deprecated.static VkDisplayPropertiesKHR.BuffercallocStack(int capacity)Deprecated.static VkDisplayPropertiesKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayPropertiesKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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.static VkDisplayPropertiesKHR.Buffercreate(long address, int capacity)Create aVkDisplayPropertiesKHR.Bufferinstance at the specified memory.static VkDisplayPropertiesKHRcreateSafe(long address)static VkDisplayPropertiesKHR.BuffercreateSafe(long address, int capacity)longdisplay()a handle that is used to refer to the display described here.java.nio.ByteBufferdisplayName()NULLor a pointer to a null-terminated UTF-8 string containing the name of the display.java.lang.StringdisplayNameString()NULLor a pointer to a null-terminated UTF-8 string containing the name of the display.static VkDisplayPropertiesKHRmalloc()Returns a newVkDisplayPropertiesKHRinstance allocated withmemAlloc.static VkDisplayPropertiesKHR.Buffermalloc(int capacity)Returns a newVkDisplayPropertiesKHR.Bufferinstance allocated withmemAlloc.static VkDisplayPropertiesKHR.Buffermalloc(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 VkDisplayPropertiesKHRmallocStack()Deprecated.static VkDisplayPropertiesKHR.BuffermallocStack(int capacity)Deprecated.static VkDisplayPropertiesKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayPropertiesKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longndisplay(long struct)Unsafe version ofdisplay().static java.nio.ByteBufferndisplayName(long struct)Unsafe version ofdisplayName().static java.lang.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().booleanpersistentContent()tells whether the display supports self-refresh/internal buffering.VkExtent2DphysicalDimensions()describes the physical width and height of the visible portion of the display, in millimeters.VkExtent2DphysicalResolution()describes the physical, native, or preferred resolution of the display.booleanplaneReorderPossible()tells whether the planes on this display can have their z order changed.intsizeof()intsupportedTransforms()a bitmask ofVkSurfaceTransformFlagBitsKHRdescribing which transforms are supported by this display.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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, displayNameString
public java.nio.ByteBuffer displayName() public java.lang.String 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
public VkExtent2D physicalDimensions()
describes the physical width and height of the visible portion of the display, in millimeters.
-
physicalResolution
public VkExtent2D 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
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.
-
createSafe
@Nullable public static VkDisplayPropertiesKHR createSafe(long address)
-
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
-
createSafe
@Nullable public static VkDisplayPropertiesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkDisplayPropertiesKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPropertiesKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayPropertiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPropertiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayPropertiesKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPropertiesKHR.Buffer callocStack(int capacity)
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
public static VkDisplayPropertiesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDisplayPropertiesKHR calloc(org.lwjgl.system.MemoryStack stack)
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ndisplay
public static long ndisplay(long struct)
Unsafe version ofdisplay().
-
ndisplayName
public static java.nio.ByteBuffer ndisplayName(long struct)
Unsafe version ofdisplayName().
-
ndisplayNameString
public static java.lang.String ndisplayNameString(long struct)
Unsafe version ofdisplayNameString().
-
nphysicalDimensions
public static VkExtent2D nphysicalDimensions(long struct)
Unsafe version ofphysicalDimensions().
-
nphysicalResolution
public static VkExtent2D nphysicalResolution(long struct)
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().
-
-