public class VkPresentRegionsKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
swapchainCount must be the same value as VkPresentInfoKHR::swapchainCount, where VkPresentInfoKHR is included in the pNext chain of this VkPresentRegionsKHR structuresType must be STRUCTURE_TYPE_PRESENT_REGIONS_KHRpRegions is not NULL, pRegions must be a valid pointer to an array of swapchainCount valid VkPresentRegionKHR structuresswapchainCount must be greater than 0sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.swapchainCount – the number of swapchains being presented to by this command.pRegions – NULL or a pointer to an array of VkPresentRegionKHR elements with swapchainCount entries. If not NULL, each element of pRegions contains the region that has changed since the last present to the swapchain in the corresponding entry in the VkPresentInfoKHR::pSwapchains array.
struct VkPresentRegionsKHR {
VkStructureType sType;
void const * pNext;
uint32_t swapchainCount;
VkPresentRegionKHR const * pRegions;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPresentRegionsKHR.Buffer
An array of
VkPresentRegionsKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PREGIONS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
SWAPCHAINCOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkPresentRegionsKHR(java.nio.ByteBuffer container)
Creates a
VkPresentRegionsKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPresentRegionsKHR |
calloc()
Returns a new
VkPresentRegionsKHR instance allocated with memCalloc. |
static VkPresentRegionsKHR.Buffer |
calloc(int capacity)
Returns a new
VkPresentRegionsKHR.Buffer instance allocated with memCalloc. |
static VkPresentRegionsKHR |
callocStack()
Returns a new
VkPresentRegionsKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPresentRegionsKHR.Buffer |
callocStack(int capacity)
Returns a new
VkPresentRegionsKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPresentRegionsKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentRegionsKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPresentRegionsKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentRegionsKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPresentRegionsKHR |
create()
Returns a new
VkPresentRegionsKHR instance allocated with BufferUtils. |
static VkPresentRegionsKHR.Buffer |
create(int capacity)
Returns a new
VkPresentRegionsKHR.Buffer instance allocated with BufferUtils. |
static VkPresentRegionsKHR |
create(long address)
Returns a new
VkPresentRegionsKHR instance for the specified memory address. |
static VkPresentRegionsKHR.Buffer |
create(long address,
int capacity)
Create a
VkPresentRegionsKHR.Buffer instance at the specified memory. |
static VkPresentRegionsKHR |
createSafe(long address)
|
static VkPresentRegionsKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkPresentRegionsKHR |
malloc()
Returns a new
VkPresentRegionsKHR instance allocated with memAlloc. |
static VkPresentRegionsKHR.Buffer |
malloc(int capacity)
Returns a new
VkPresentRegionsKHR.Buffer instance allocated with memAlloc. |
static VkPresentRegionsKHR |
mallocStack()
Returns a new
VkPresentRegionsKHR instance allocated on the thread-local MemoryStack. |
static VkPresentRegionsKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkPresentRegionsKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkPresentRegionsKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentRegionsKHR.Buffer instance allocated on the specified MemoryStack. |
static VkPresentRegionsKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentRegionsKHR instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static VkPresentRegionKHR.Buffer |
npRegions(long struct)
Unsafe version of
pRegions(). |
static void |
npRegions(long struct,
VkPresentRegionKHR.Buffer value)
Unsafe version of
pRegions. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nswapchainCount(long struct)
Unsafe version of
swapchainCount(). |
static void |
nswapchainCount(long struct,
int value)
Sets the specified value to the
swapchainCount field of the specified struct. |
long |
pNext()
Returns the value of the
pNext field. |
VkPresentRegionsKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPresentRegionKHR.Buffer |
pRegions()
Returns a
VkPresentRegionKHR.Buffer view of the struct array pointed to by the pRegions field. |
VkPresentRegionsKHR |
pRegions(VkPresentRegionKHR.Buffer value)
Sets the address of the specified
VkPresentRegionKHR.Buffer to the pRegions field. |
VkPresentRegionsKHR |
set(int sType,
long pNext,
int swapchainCount,
VkPresentRegionKHR.Buffer pRegions)
Initializes this struct with the specified values.
|
VkPresentRegionsKHR |
set(VkPresentRegionsKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPresentRegionsKHR |
sType(int value)
Sets the specified value to the
sType field. |
int |
swapchainCount()
Returns the value of the
swapchainCount field. |
VkPresentRegionsKHR |
swapchainCount(int value)
Sets the specified value to the
swapchainCount 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 SWAPCHAINCOUNT
public static final int PREGIONS
public VkPresentRegionsKHR(java.nio.ByteBuffer container)
VkPresentRegionsKHR 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 int swapchainCount()
swapchainCount field.@Nullable public VkPresentRegionKHR.Buffer pRegions()
VkPresentRegionKHR.Buffer view of the struct array pointed to by the pRegions field.public VkPresentRegionsKHR sType(int value)
sType field.public VkPresentRegionsKHR pNext(long value)
pNext field.public VkPresentRegionsKHR swapchainCount(int value)
swapchainCount field.public VkPresentRegionsKHR pRegions(@Nullable VkPresentRegionKHR.Buffer value)
VkPresentRegionKHR.Buffer to the pRegions field.public VkPresentRegionsKHR set(int sType, long pNext, int swapchainCount, @Nullable VkPresentRegionKHR.Buffer pRegions)
public VkPresentRegionsKHR set(VkPresentRegionsKHR src)
src - the source structpublic static VkPresentRegionsKHR malloc()
VkPresentRegionsKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkPresentRegionsKHR calloc()
VkPresentRegionsKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkPresentRegionsKHR create()
VkPresentRegionsKHR instance allocated with BufferUtils.public static VkPresentRegionsKHR create(long address)
VkPresentRegionsKHR instance for the specified memory address.@Nullable public static VkPresentRegionsKHR createSafe(long address)
public static VkPresentRegionsKHR.Buffer malloc(int capacity)
VkPresentRegionsKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPresentRegionsKHR.Buffer calloc(int capacity)
VkPresentRegionsKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPresentRegionsKHR.Buffer create(int capacity)
VkPresentRegionsKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPresentRegionsKHR.Buffer create(long address, int capacity)
VkPresentRegionsKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPresentRegionsKHR.Buffer createSafe(long address, int capacity)
public static VkPresentRegionsKHR mallocStack()
VkPresentRegionsKHR instance allocated on the thread-local MemoryStack.public static VkPresentRegionsKHR callocStack()
VkPresentRegionsKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPresentRegionsKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkPresentRegionsKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPresentRegionsKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkPresentRegionsKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPresentRegionsKHR.Buffer mallocStack(int capacity)
VkPresentRegionsKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPresentRegionsKHR.Buffer callocStack(int capacity)
VkPresentRegionsKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPresentRegionsKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPresentRegionsKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPresentRegionsKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPresentRegionsKHR.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 nswapchainCount(long struct)
swapchainCount().@Nullable public static VkPresentRegionKHR.Buffer npRegions(long struct)
pRegions().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nswapchainCount(long struct,
int value)
swapchainCount field of the specified struct.public static void npRegions(long struct,
@Nullable
VkPresentRegionKHR.Buffer value)
pRegions.Copyright LWJGL. All Rights Reserved. License terms.