Package org.lwjgl.vulkan
Class VkPresentRegionsKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPresentRegionsKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPresentRegionsKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure hint of rectangular regions changed by vkQueuePresentKHR.Valid Usage
swapchainCountmust be the same value asVkPresentInfoKHR::swapchainCount, whereVkPresentInfoKHRis in thepNextchain of thisVkPresentRegionsKHRstructure
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PRESENT_REGIONS_KHR- If
pRegionsis notNULL,pRegionsmust be a valid pointer to an array ofswapchainCountvalidVkPresentRegionKHRstructures swapchainCountmust be greater than 0
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.swapchainCount– the number of swapchains being presented to by this command.pRegions–NULLor a pointer to an array ofVkPresentRegionKHRelements withswapchainCountentries. If notNULL, each element ofpRegionscontains the region that has changed since the last present to the swapchain in the corresponding entry in theVkPresentInfoKHR::pSwapchainsarray.
Layout
struct VkPresentRegionsKHR { VkStructureType sType; void const * pNext; uint32_t swapchainCount;VkPresentRegionKHRconst * pRegions; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPresentRegionsKHR.BufferAn array ofVkPresentRegionsKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkPresentRegionsKHR(java.nio.ByteBuffer container)Creates aVkPresentRegionsKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPresentRegionsKHRcalloc()Returns a newVkPresentRegionsKHRinstance allocated withmemCalloc.static VkPresentRegionsKHR.Buffercalloc(int capacity)Returns a newVkPresentRegionsKHR.Bufferinstance allocated withmemCalloc.static VkPresentRegionsKHRcallocStack()Returns a newVkPresentRegionsKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPresentRegionsKHR.BuffercallocStack(int capacity)Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPresentRegionsKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentRegionsKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPresentRegionsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentRegionsKHRcreate()Returns a newVkPresentRegionsKHRinstance allocated withBufferUtils.static VkPresentRegionsKHR.Buffercreate(int capacity)Returns a newVkPresentRegionsKHR.Bufferinstance allocated withBufferUtils.static VkPresentRegionsKHRcreate(long address)Returns a newVkPresentRegionsKHRinstance for the specified memory address.static VkPresentRegionsKHR.Buffercreate(long address, int capacity)Create aVkPresentRegionsKHR.Bufferinstance at the specified memory.static VkPresentRegionsKHRcreateSafe(long address)static VkPresentRegionsKHR.BuffercreateSafe(long address, int capacity)static VkPresentRegionsKHRmalloc()Returns a newVkPresentRegionsKHRinstance allocated withmemAlloc.static VkPresentRegionsKHR.Buffermalloc(int capacity)Returns a newVkPresentRegionsKHR.Bufferinstance allocated withmemAlloc.static VkPresentRegionsKHRmallocStack()Returns a newVkPresentRegionsKHRinstance allocated on the thread-localMemoryStack.static VkPresentRegionsKHR.BuffermallocStack(int capacity)Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkPresentRegionsKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPresentRegionsKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPresentRegionsKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkPresentRegionKHR.BuffernpRegions(long struct)Unsafe version ofpRegions().static voidnpRegions(long struct, VkPresentRegionKHR.Buffer value)Unsafe version ofpRegions.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnswapchainCount(long struct)Unsafe version ofswapchainCount().static voidnswapchainCount(long struct, int value)Sets the specified value to theswapchainCountfield of the specifiedstruct.longpNext()Returns the value of thepNextfield.VkPresentRegionsKHRpNext(long value)Sets the specified value to thepNextfield.VkPresentRegionKHR.BufferpRegions()Returns aVkPresentRegionKHR.Bufferview of the struct array pointed to by thepRegionsfield.VkPresentRegionsKHRpRegions(VkPresentRegionKHR.Buffer value)Sets the address of the specifiedVkPresentRegionKHR.Bufferto thepRegionsfield.VkPresentRegionsKHRset(int sType, long pNext, int swapchainCount, VkPresentRegionKHR.Buffer pRegions)Initializes this struct with the specified values.VkPresentRegionsKHRset(VkPresentRegionsKHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPresentRegionsKHRsType(int value)Sets the specified value to thesTypefield.intswapchainCount()Returns the value of theswapchainCountfield.VkPresentRegionsKHRswapchainCount(int value)Sets the specified value to theswapchainCountfield.
-
-
-
Constructor Detail
-
VkPresentRegionsKHR
public VkPresentRegionsKHR(java.nio.ByteBuffer container)
Creates aVkPresentRegionsKHRinstance 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
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
swapchainCount
public int swapchainCount()
Returns the value of theswapchainCountfield.
-
pRegions
@Nullable public VkPresentRegionKHR.Buffer pRegions()
Returns aVkPresentRegionKHR.Bufferview of the struct array pointed to by thepRegionsfield.
-
sType
public VkPresentRegionsKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPresentRegionsKHR pNext(long value)
Sets the specified value to thepNextfield.
-
swapchainCount
public VkPresentRegionsKHR swapchainCount(int value)
Sets the specified value to theswapchainCountfield.
-
pRegions
public VkPresentRegionsKHR pRegions(@Nullable VkPresentRegionKHR.Buffer value)
Sets the address of the specifiedVkPresentRegionKHR.Bufferto thepRegionsfield.
-
set
public VkPresentRegionsKHR set(int sType, long pNext, int swapchainCount, @Nullable VkPresentRegionKHR.Buffer pRegions)
Initializes this struct with the specified values.
-
set
public VkPresentRegionsKHR set(VkPresentRegionsKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPresentRegionsKHR malloc()
Returns a newVkPresentRegionsKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPresentRegionsKHR calloc()
Returns a newVkPresentRegionsKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPresentRegionsKHR create()
Returns a newVkPresentRegionsKHRinstance allocated withBufferUtils.
-
create
public static VkPresentRegionsKHR create(long address)
Returns a newVkPresentRegionsKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPresentRegionsKHR createSafe(long address)
-
malloc
public static VkPresentRegionsKHR.Buffer malloc(int capacity)
Returns a newVkPresentRegionsKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPresentRegionsKHR.Buffer calloc(int capacity)
Returns a newVkPresentRegionsKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPresentRegionsKHR.Buffer create(int capacity)
Returns a newVkPresentRegionsKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPresentRegionsKHR.Buffer create(long address, int capacity)
Create aVkPresentRegionsKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPresentRegionsKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPresentRegionsKHR mallocStack()
Returns a newVkPresentRegionsKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPresentRegionsKHR callocStack()
Returns a newVkPresentRegionsKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPresentRegionsKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentRegionsKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPresentRegionsKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentRegionsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPresentRegionsKHR.Buffer mallocStack(int capacity)
Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPresentRegionsKHR.Buffer callocStack(int capacity)
Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPresentRegionsKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPresentRegionsKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nswapchainCount
public static int nswapchainCount(long struct)
Unsafe version ofswapchainCount().
-
npRegions
@Nullable public static VkPresentRegionKHR.Buffer npRegions(long struct)
Unsafe version ofpRegions().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nswapchainCount
public static void nswapchainCount(long struct, int value)Sets the specified value to theswapchainCountfield of the specifiedstruct.
-
npRegions
public static void npRegions(long struct, @Nullable VkPresentRegionKHR.Buffer value)Unsafe version ofpRegions.
-
-