Package org.lwjgl.vulkan
Class VkPresentRegionKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Structure containing rectangular region changed by vkQueuePresentKHR for a given VkImage.
Valid Usage (Implicit)
- If
rectangleCount
is not 0, andpRectangles
is notNULL
,pRectangles
must be a valid pointer to an array ofrectangleCount
validVkRectLayerKHR
structures
See Also
VkPresentRegionsKHR
, VkRectLayerKHR
Layout
struct VkPresentRegionKHR {
uint32_t rectangleCount()
;
VkRectLayerKHR
const * pRectangles()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVkPresentRegionKHR
(ByteBuffer container) Creates aVkPresentRegionKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPresentRegionKHR
calloc()
Returns a newVkPresentRegionKHR
instance allocated withmemCalloc
.static VkPresentRegionKHR.Buffer
calloc
(int capacity) Returns a newVkPresentRegionKHR.Buffer
instance allocated withmemCalloc
.static VkPresentRegionKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkPresentRegionKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPresentRegionKHR
calloc
(MemoryStack stack) Returns a newVkPresentRegionKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPresentRegionKHR
Deprecated.static VkPresentRegionKHR.Buffer
callocStack
(int capacity) Deprecated.static VkPresentRegionKHR.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkPresentRegionKHR
callocStack
(MemoryStack stack) Deprecated.static VkPresentRegionKHR
create()
Returns a newVkPresentRegionKHR
instance allocated withBufferUtils
.static VkPresentRegionKHR.Buffer
create
(int capacity) Returns a newVkPresentRegionKHR.Buffer
instance allocated withBufferUtils
.static VkPresentRegionKHR
create
(long address) Returns a newVkPresentRegionKHR
instance for the specified memory address.static VkPresentRegionKHR.Buffer
create
(long address, int capacity) Create aVkPresentRegionKHR.Buffer
instance at the specified memory.static VkPresentRegionKHR
createSafe
(long address) static VkPresentRegionKHR.Buffer
createSafe
(long address, int capacity) static VkPresentRegionKHR
malloc()
Returns a newVkPresentRegionKHR
instance allocated withmemAlloc
.static VkPresentRegionKHR.Buffer
malloc
(int capacity) Returns a newVkPresentRegionKHR.Buffer
instance allocated withmemAlloc
.static VkPresentRegionKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkPresentRegionKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkPresentRegionKHR
malloc
(MemoryStack stack) Returns a newVkPresentRegionKHR
instance allocated on the specifiedMemoryStack
.static VkPresentRegionKHR
Deprecated.static VkPresentRegionKHR.Buffer
mallocStack
(int capacity) Deprecated.static VkPresentRegionKHR.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkPresentRegionKHR
mallocStack
(MemoryStack stack) Deprecated.static VkRectLayerKHR.Buffer
npRectangles
(long struct) Unsafe version ofpRectangles()
.static void
npRectangles
(long struct, VkRectLayerKHR.Buffer value) Unsafe version ofpRectangles
.static int
nrectangleCount
(long struct) Unsafe version ofrectangleCount()
.static void
nrectangleCount
(long struct, int value) Sets the specified value to therectangleCount
field of the specifiedstruct
.eitherNULL
or a pointer to an array ofVkRectLayerKHR
structures.pRectangles
(VkRectLayerKHR.Buffer value) Sets the address of the specifiedVkRectLayerKHR.Buffer
to thepRectangles()
field.int
the number of rectangles inpRectangles
, or zero if the entire image has changed and should be presented.rectangleCount
(int value) Sets the specified value to therectangleCount()
field.set
(int rectangleCount, VkRectLayerKHR.Buffer pRectangles) Initializes this struct with the specified values.set
(VkPresentRegionKHR src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
RECTANGLECOUNT
public static final int RECTANGLECOUNTThe struct member offsets. -
PRECTANGLES
public static final int PRECTANGLESThe struct member offsets.
-
-
Constructor Details
-
VkPresentRegionKHR
Creates aVkPresentRegionKHR
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkPresentRegionKHR>
-
rectangleCount
public int rectangleCount()the number of rectangles inpRectangles
, or zero if the entire image has changed and should be presented. -
pRectangles
eitherNULL
or a pointer to an array ofVkRectLayerKHR
structures. TheVkRectLayerKHR
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 inpRectangles
is a rectangle of the given image that has changed since the last image was presented to the given swapchain. The rectangles must be specified relative toVkSurfaceCapabilitiesKHR
::currentTransform
, regardless of the swapchain’spreTransform
. The presentation engine will apply thepreTransform
transformation to the rectangles, along with any further transformation it applies to the image content. -
rectangleCount
Sets the specified value to therectangleCount()
field. -
pRectangles
Sets the address of the specifiedVkRectLayerKHR.Buffer
to thepRectangles()
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPresentRegionKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkPresentRegionKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkPresentRegionKHR
instance allocated withBufferUtils
. -
create
Returns a newVkPresentRegionKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPresentRegionKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkPresentRegionKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkPresentRegionKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkPresentRegionKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkPresentRegionKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkPresentRegionKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkPresentRegionKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkPresentRegionKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nrectangleCount
public static int nrectangleCount(long struct) Unsafe version ofrectangleCount()
. -
npRectangles
Unsafe version ofpRectangles()
. -
nrectangleCount
public static void nrectangleCount(long struct, int value) Sets the specified value to therectangleCount
field of the specifiedstruct
. -
npRectangles
Unsafe version ofpRectangles
.
-