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 included 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
Layout
struct VkPresentRegionsKHR { VkStructureTypesType(); void const *pNext(); uint32_tswapchainCount();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 Deprecated 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 VkPresentRegionsKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentRegionsKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPresentRegionsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentRegionsKHRcallocStack()Deprecated.static VkPresentRegionsKHR.BuffercallocStack(int capacity)Deprecated.static VkPresentRegionsKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPresentRegionsKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkPresentRegionsKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPresentRegionsKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPresentRegionsKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPresentRegionsKHRinstance allocated on the specifiedMemoryStack.static VkPresentRegionsKHRmallocStack()Deprecated.static VkPresentRegionsKHR.BuffermallocStack(int capacity)Deprecated.static VkPresentRegionsKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPresentRegionsKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkPresentRegionsKHRpNext(long value)Sets the specified value to thepNext()field.VkPresentRegionKHR.BufferpRegions()VkPresentRegionsKHRpRegions(VkPresentRegionKHR.Buffer value)Sets the address of the specifiedVkPresentRegionKHR.Bufferto thepRegions()field.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()the type of this structure.VkPresentRegionsKHRsType(int value)Sets the specified value to thesType()field.VkPresentRegionsKHRsType$Default()Sets theSTRUCTURE_TYPE_PRESENT_REGIONS_KHRvalue to thesType()field.intswapchainCount()the number of swapchains being presented to by this command.VkPresentRegionsKHRswapchainCount(int value)Sets the specified value to theswapchainCount()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
swapchainCount
public int swapchainCount()
the number of swapchains being presented to by this command.
-
pRegions
@Nullable public VkPresentRegionKHR.Buffer 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.
-
sType
public VkPresentRegionsKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPresentRegionsKHR sType$Default()
Sets theSTRUCTURE_TYPE_PRESENT_REGIONS_KHRvalue to thesType()field.
-
pNext
public VkPresentRegionsKHR pNext(long value)
Sets the specified value to thepNext()field.
-
swapchainCount
public VkPresentRegionsKHR swapchainCount(int value)
Sets the specified value to theswapchainCount()field.
-
pRegions
public VkPresentRegionsKHR pRegions(@Nullable VkPresentRegionKHR.Buffer value)
Sets the address of the specifiedVkPresentRegionKHR.Bufferto thepRegions()field.
-
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
@Deprecated public static VkPresentRegionsKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPresentRegionsKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPresentRegionsKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPresentRegionsKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPresentRegionsKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPresentRegionsKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPresentRegionsKHR.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 VkPresentRegionsKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPresentRegionsKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentRegionsKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPresentRegionsKHR calloc(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
-
malloc
public static VkPresentRegionsKHR.Buffer malloc(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
-
calloc
public static VkPresentRegionsKHR.Buffer calloc(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.
-
-