public class VkDisplayPresentInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the extent of the srcRect and dstRect are not equal, the presented pixels will be scaled accordingly.
srcRect must specify a rectangular region that is a subset of the image being presenteddstRect must specify a rectangular region that is a subset of the visibleRegion parameter of the display mode the swapchain being presented usespersistentContent member of the VkDisplayPropertiesKHR structure returned by vkGetPhysicalDeviceDisplayPropertiesKHR for the display the present operation targets then persistent must be FALSEsType must be STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHRsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.srcRect – a rectangular region of pixels to present. It must be a subset of the image being presented. If VkDisplayPresentInfoKHR is not specified, this region will be assumed to be the entire presentable image.dstRect – a rectangular region within the visible region of the swapchain’s display mode. If VkDisplayPresentInfoKHR is not specified, this region will be assumed to be the entire visible region of the visible region of the swapchain’s mode. If the specified rectangle is a subset of the display mode’s visible region, content from display planes below the swapchain’s plane will be visible outside the rectangle. If there are no planes below the swapchain’s, the area outside the specified rectangle will be black. If portions of the specified rectangle are outside of the display’s visible region, pixels mapping only to those portions of the rectangle will be discarded.persistent – If this is TRUE, the display engine will enable buffered mode on displays that support it. This allows the display engine to stop sending content to the display until a new image is presented. The display will instead maintain a copy of the last presented image. This allows less power to be used, but may increase presentation latency. If VkDisplayPresentInfoKHR is not specified, persistent mode will not be used.
struct VkDisplayPresentInfoKHR {
VkStructureType sType;
void const * pNext;
VkRect2D srcRect;
VkRect2D dstRect;
VkBool32 persistent;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDisplayPresentInfoKHR.Buffer
An array of
VkDisplayPresentInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DSTRECT
The struct member offsets.
|
static int |
PERSISTENT
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SRCRECT
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDisplayPresentInfoKHR(java.nio.ByteBuffer container)
Creates a
VkDisplayPresentInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDisplayPresentInfoKHR |
calloc()
Returns a new
VkDisplayPresentInfoKHR instance allocated with memCalloc. |
static VkDisplayPresentInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkDisplayPresentInfoKHR.Buffer instance allocated with memCalloc. |
static VkDisplayPresentInfoKHR |
callocStack()
Returns a new
VkDisplayPresentInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPresentInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkDisplayPresentInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPresentInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPresentInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPresentInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPresentInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPresentInfoKHR |
create()
Returns a new
VkDisplayPresentInfoKHR instance allocated with BufferUtils. |
static VkDisplayPresentInfoKHR.Buffer |
create(int capacity)
Returns a new
VkDisplayPresentInfoKHR.Buffer instance allocated with BufferUtils. |
static VkDisplayPresentInfoKHR |
create(long address)
Returns a new
VkDisplayPresentInfoKHR instance for the specified memory address. |
static VkDisplayPresentInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkDisplayPresentInfoKHR.Buffer instance at the specified memory. |
static VkDisplayPresentInfoKHR |
createSafe(long address)
|
static VkDisplayPresentInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
VkRect2D |
dstRect()
Returns a
VkRect2D view of the dstRect field. |
VkDisplayPresentInfoKHR |
dstRect(java.util.function.Consumer<VkRect2D> consumer)
Passes the
dstRect field to the specified Consumer. |
VkDisplayPresentInfoKHR |
dstRect(VkRect2D value)
Copies the specified
VkRect2D to the dstRect field. |
static VkDisplayPresentInfoKHR |
malloc()
Returns a new
VkDisplayPresentInfoKHR instance allocated with memAlloc. |
static VkDisplayPresentInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkDisplayPresentInfoKHR.Buffer instance allocated with memAlloc. |
static VkDisplayPresentInfoKHR |
mallocStack()
Returns a new
VkDisplayPresentInfoKHR instance allocated on the thread-local MemoryStack. |
static VkDisplayPresentInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkDisplayPresentInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkDisplayPresentInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPresentInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkDisplayPresentInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPresentInfoKHR instance allocated on the specified MemoryStack. |
static VkRect2D |
ndstRect(long struct)
Unsafe version of
dstRect(). |
static void |
ndstRect(long struct,
VkRect2D value)
Unsafe version of
dstRect. |
static int |
npersistent(long struct)
Unsafe version of
persistent(). |
static void |
npersistent(long struct,
int value)
Unsafe version of
persistent. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static VkRect2D |
nsrcRect(long struct)
Unsafe version of
srcRect(). |
static void |
nsrcRect(long struct,
VkRect2D value)
Unsafe version of
srcRect. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
boolean |
persistent()
Returns the value of the
persistent field. |
VkDisplayPresentInfoKHR |
persistent(boolean value)
Sets the specified value to the
persistent field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDisplayPresentInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDisplayPresentInfoKHR |
set(int sType,
long pNext,
VkRect2D srcRect,
VkRect2D dstRect,
boolean persistent)
Initializes this struct with the specified values.
|
VkDisplayPresentInfoKHR |
set(VkDisplayPresentInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
VkRect2D |
srcRect()
Returns a
VkRect2D view of the srcRect field. |
VkDisplayPresentInfoKHR |
srcRect(java.util.function.Consumer<VkRect2D> consumer)
Passes the
srcRect field to the specified Consumer. |
VkDisplayPresentInfoKHR |
srcRect(VkRect2D value)
Copies the specified
VkRect2D to the srcRect field. |
int |
sType()
Returns the value of the
sType field. |
VkDisplayPresentInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SRCRECT
public static final int DSTRECT
public static final int PERSISTENT
public VkDisplayPresentInfoKHR(java.nio.ByteBuffer container)
VkDisplayPresentInfoKHR 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 int sType()
sType field.public long pNext()
pNext field.public boolean persistent()
persistent field.public VkDisplayPresentInfoKHR sType(int value)
sType field.public VkDisplayPresentInfoKHR pNext(long value)
pNext field.public VkDisplayPresentInfoKHR srcRect(VkRect2D value)
VkRect2D to the srcRect field.public VkDisplayPresentInfoKHR srcRect(java.util.function.Consumer<VkRect2D> consumer)
srcRect field to the specified Consumer.public VkDisplayPresentInfoKHR dstRect(VkRect2D value)
VkRect2D to the dstRect field.public VkDisplayPresentInfoKHR dstRect(java.util.function.Consumer<VkRect2D> consumer)
dstRect field to the specified Consumer.public VkDisplayPresentInfoKHR persistent(boolean value)
persistent field.public VkDisplayPresentInfoKHR set(int sType, long pNext, VkRect2D srcRect, VkRect2D dstRect, boolean persistent)
public VkDisplayPresentInfoKHR set(VkDisplayPresentInfoKHR src)
src - the source structpublic static VkDisplayPresentInfoKHR malloc()
VkDisplayPresentInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkDisplayPresentInfoKHR calloc()
VkDisplayPresentInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkDisplayPresentInfoKHR create()
VkDisplayPresentInfoKHR instance allocated with BufferUtils.public static VkDisplayPresentInfoKHR create(long address)
VkDisplayPresentInfoKHR instance for the specified memory address.@Nullable public static VkDisplayPresentInfoKHR createSafe(long address)
public static VkDisplayPresentInfoKHR.Buffer malloc(int capacity)
VkDisplayPresentInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPresentInfoKHR.Buffer calloc(int capacity)
VkDisplayPresentInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPresentInfoKHR.Buffer create(int capacity)
VkDisplayPresentInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDisplayPresentInfoKHR.Buffer create(long address, int capacity)
VkDisplayPresentInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDisplayPresentInfoKHR.Buffer createSafe(long address, int capacity)
public static VkDisplayPresentInfoKHR mallocStack()
VkDisplayPresentInfoKHR instance allocated on the thread-local MemoryStack.public static VkDisplayPresentInfoKHR callocStack()
VkDisplayPresentInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDisplayPresentInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPresentInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDisplayPresentInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPresentInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDisplayPresentInfoKHR.Buffer mallocStack(int capacity)
VkDisplayPresentInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDisplayPresentInfoKHR.Buffer callocStack(int capacity)
VkDisplayPresentInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDisplayPresentInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPresentInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDisplayPresentInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPresentInfoKHR.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 int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int npersistent(long struct)
persistent().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void npersistent(long struct,
int value)
persistent.Copyright LWJGL. All Rights Reserved. License terms.