Package org.lwjgl.vulkan
Class VkClearRect
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkClearRect>
org.lwjgl.vulkan.VkClearRect
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkClearRect
extends org.lwjgl.system.Struct<VkClearRect>
implements org.lwjgl.system.NativeResource
Structure specifying a clear rectangle.
Description
The layers [baseArrayLayer, baseArrayLayer + layerCount) counting from the base layer of the attachment image view are cleared.
See Also
Layout
struct VkClearRect {
VkRect2D rect();
uint32_t baseArrayLayer();
uint32_t layerCount();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkClearRect(ByteBuffer container) Creates aVkClearRectinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintthe first layer to be cleared.baseArrayLayer(int value) Sets the specified value to thebaseArrayLayer()field.static VkClearRectcalloc()Returns a newVkClearRectinstance allocated withmemCalloc.static VkClearRect.Buffercalloc(int capacity) Returns a newVkClearRect.Bufferinstance allocated withmemCalloc.static VkClearRect.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkClearRect.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkClearRectcalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkClearRectinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkClearRectDeprecated.static VkClearRect.BuffercallocStack(int capacity) Deprecated.static VkClearRect.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkClearRectcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static VkClearRectcreate()Returns a newVkClearRectinstance allocated withBufferUtils.static VkClearRect.Buffercreate(int capacity) Returns a newVkClearRect.Bufferinstance allocated withBufferUtils.static VkClearRectcreate(long address) Returns a newVkClearRectinstance for the specified memory address.static VkClearRect.Buffercreate(long address, int capacity) Create aVkClearRect.Bufferinstance at the specified memory.static @Nullable VkClearRectcreateSafe(long address) static @Nullable VkClearRect.BuffercreateSafe(long address, int capacity) intthe number of layers to clear.layerCount(int value) Sets the specified value to thelayerCount()field.static VkClearRectmalloc()Returns a newVkClearRectinstance allocated withmemAlloc.static VkClearRect.Buffermalloc(int capacity) Returns a newVkClearRect.Bufferinstance allocated withmemAlloc.static VkClearRect.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkClearRect.Bufferinstance allocated on the specifiedMemoryStack.static VkClearRectmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkClearRectinstance allocated on the specifiedMemoryStack.static VkClearRectDeprecated.static VkClearRect.BuffermallocStack(int capacity) Deprecated.static VkClearRect.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkClearRectmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnbaseArrayLayer(long struct) Unsafe version ofbaseArrayLayer().static voidnbaseArrayLayer(long struct, int value) Unsafe version ofbaseArrayLayer.static intnlayerCount(long struct) Unsafe version oflayerCount().static voidnlayerCount(long struct, int value) Unsafe version oflayerCount.static VkRect2Dnrect(long struct) Unsafe version ofrect().static voidUnsafe version ofrect.rect()the two-dimensional region to be cleared.set(VkClearRect src) Copies the specified struct data to this struct.Initializes this struct with the specified values.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
RECT
public static final int RECTThe struct member offsets. -
BASEARRAYLAYER
public static final int BASEARRAYLAYERThe struct member offsets. -
LAYERCOUNT
public static final int LAYERCOUNTThe struct member offsets.
-
-
Constructor Details
-
VkClearRect
Creates aVkClearRectinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkClearRect>
-
rect
the two-dimensional region to be cleared. -
baseArrayLayer
public int baseArrayLayer()the first layer to be cleared. -
layerCount
public int layerCount()the number of layers to clear. -
rect
-
rect
-
baseArrayLayer
Sets the specified value to thebaseArrayLayer()field. -
layerCount
Sets the specified value to thelayerCount()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 newVkClearRectinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkClearRectinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkClearRectinstance allocated withBufferUtils. -
create
Returns a newVkClearRectinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkClearRect.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkClearRect.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkClearRect.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkClearRect.Bufferinstance 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 public static VkClearRect.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 VkClearRect.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkClearRectinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkClearRectinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkClearRect.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkClearRect.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nrect
Unsafe version ofrect(). -
nbaseArrayLayer
public static int nbaseArrayLayer(long struct) Unsafe version ofbaseArrayLayer(). -
nlayerCount
public static int nlayerCount(long struct) Unsafe version oflayerCount(). -
nrect
Unsafe version ofrect. -
nbaseArrayLayer
public static void nbaseArrayLayer(long struct, int value) Unsafe version ofbaseArrayLayer. -
nlayerCount
public static void nlayerCount(long struct, int value) Unsafe version oflayerCount.
-