public class VkPresentRegionKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
rectangleCount is not 0, and pRectangles is not NULL, pRectangles must be a valid pointer to an array of rectangleCount valid VkRectLayerKHR structuresVkPresentRegionsKHR, VkRectLayerKHR
rectangleCount – the number of rectangles in pRectangles, or zero if the entire image has changed and should be presented.pRectangles – either NULL or a pointer to an array of VkRectLayerKHR structures. The VkRectLayerKHR structure is the framebuffer coordinates, plus layer, of a portion of a presentable image that has changed and must be presented. If non-NULL, each entry in pRectangles is a rectangle of the given image that has changed since the last image was presented to the given swapchain.
struct VkPresentRegionKHR {
uint32_t rectangleCount;
VkRectLayerKHR const * pRectangles;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPresentRegionKHR.Buffer
An array of
VkPresentRegionKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PRECTANGLES
The struct member offsets.
|
static int |
RECTANGLECOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkPresentRegionKHR(java.nio.ByteBuffer container)
Creates a
VkPresentRegionKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPresentRegionKHR |
calloc()
Returns a new
VkPresentRegionKHR instance allocated with memCalloc. |
static VkPresentRegionKHR.Buffer |
calloc(int capacity)
Returns a new
VkPresentRegionKHR.Buffer instance allocated with memCalloc. |
static VkPresentRegionKHR |
callocStack()
Returns a new
VkPresentRegionKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPresentRegionKHR.Buffer |
callocStack(int capacity)
Returns a new
VkPresentRegionKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPresentRegionKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentRegionKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPresentRegionKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentRegionKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPresentRegionKHR |
create()
Returns a new
VkPresentRegionKHR instance allocated with BufferUtils. |
static VkPresentRegionKHR.Buffer |
create(int capacity)
Returns a new
VkPresentRegionKHR.Buffer instance allocated with BufferUtils. |
static VkPresentRegionKHR |
create(long address)
Returns a new
VkPresentRegionKHR instance for the specified memory address. |
static VkPresentRegionKHR.Buffer |
create(long address,
int capacity)
Create a
VkPresentRegionKHR.Buffer instance at the specified memory. |
static VkPresentRegionKHR |
createSafe(long address)
|
static VkPresentRegionKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkPresentRegionKHR |
malloc()
Returns a new
VkPresentRegionKHR instance allocated with memAlloc. |
static VkPresentRegionKHR.Buffer |
malloc(int capacity)
Returns a new
VkPresentRegionKHR.Buffer instance allocated with memAlloc. |
static VkPresentRegionKHR |
mallocStack()
Returns a new
VkPresentRegionKHR instance allocated on the thread-local MemoryStack. |
static VkPresentRegionKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkPresentRegionKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkPresentRegionKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentRegionKHR.Buffer instance allocated on the specified MemoryStack. |
static VkPresentRegionKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentRegionKHR instance allocated on the specified MemoryStack. |
static VkRectLayerKHR.Buffer |
npRectangles(long struct)
Unsafe version of
pRectangles(). |
static void |
npRectangles(long struct,
VkRectLayerKHR.Buffer value)
Unsafe version of
pRectangles. |
static int |
nrectangleCount(long struct)
Unsafe version of
rectangleCount(). |
static void |
nrectangleCount(long struct,
int value)
Sets the specified value to the
rectangleCount field of the specified struct. |
VkRectLayerKHR.Buffer |
pRectangles()
Returns a
VkRectLayerKHR.Buffer view of the struct array pointed to by the pRectangles field. |
VkPresentRegionKHR |
pRectangles(VkRectLayerKHR.Buffer value)
Sets the address of the specified
VkRectLayerKHR.Buffer to the pRectangles field. |
int |
rectangleCount()
Returns the value of the
rectangleCount field. |
VkPresentRegionKHR |
rectangleCount(int value)
Sets the specified value to the
rectangleCount field. |
VkPresentRegionKHR |
set(int rectangleCount,
VkRectLayerKHR.Buffer pRectangles)
Initializes this struct with the specified values.
|
VkPresentRegionKHR |
set(VkPresentRegionKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int RECTANGLECOUNT
public static final int PRECTANGLES
public VkPresentRegionKHR(java.nio.ByteBuffer container)
VkPresentRegionKHR 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 rectangleCount()
rectangleCount field.@Nullable public VkRectLayerKHR.Buffer pRectangles()
VkRectLayerKHR.Buffer view of the struct array pointed to by the pRectangles field.public VkPresentRegionKHR rectangleCount(int value)
rectangleCount field.public VkPresentRegionKHR pRectangles(@Nullable VkRectLayerKHR.Buffer value)
VkRectLayerKHR.Buffer to the pRectangles field.public VkPresentRegionKHR set(int rectangleCount, @Nullable VkRectLayerKHR.Buffer pRectangles)
public VkPresentRegionKHR set(VkPresentRegionKHR src)
src - the source structpublic static VkPresentRegionKHR malloc()
VkPresentRegionKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkPresentRegionKHR calloc()
VkPresentRegionKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkPresentRegionKHR create()
VkPresentRegionKHR instance allocated with BufferUtils.public static VkPresentRegionKHR create(long address)
VkPresentRegionKHR instance for the specified memory address.@Nullable public static VkPresentRegionKHR createSafe(long address)
public static VkPresentRegionKHR.Buffer malloc(int capacity)
VkPresentRegionKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPresentRegionKHR.Buffer calloc(int capacity)
VkPresentRegionKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPresentRegionKHR.Buffer create(int capacity)
VkPresentRegionKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPresentRegionKHR.Buffer create(long address, int capacity)
VkPresentRegionKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPresentRegionKHR.Buffer createSafe(long address, int capacity)
public static VkPresentRegionKHR mallocStack()
VkPresentRegionKHR instance allocated on the thread-local MemoryStack.public static VkPresentRegionKHR callocStack()
VkPresentRegionKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPresentRegionKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkPresentRegionKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPresentRegionKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkPresentRegionKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPresentRegionKHR.Buffer mallocStack(int capacity)
VkPresentRegionKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPresentRegionKHR.Buffer callocStack(int capacity)
VkPresentRegionKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPresentRegionKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPresentRegionKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPresentRegionKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPresentRegionKHR.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 nrectangleCount(long struct)
rectangleCount().@Nullable public static VkRectLayerKHR.Buffer npRectangles(long struct)
pRectangles().public static void nrectangleCount(long struct,
int value)
rectangleCount field of the specified struct.public static void npRectangles(long struct,
@Nullable
VkRectLayerKHR.Buffer value)
pRectangles.Copyright LWJGL. All Rights Reserved. License terms.