Package org.lwjgl.vulkan
Class VkClearRect
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkClearRect {
{@link VkRect2D VkRect2D} rect;
uint32_t baseArrayLayer;
uint32_t layerCount;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 TypeMethodDescriptionintbaseArrayLayer(int value) Sets the specified value to thebaseArrayLayerfield.static VkClearRectcalloc()Returns a newVkClearRectinstance allocated withmemCalloc.static VkClearRect.Buffercalloc(int capacity) Returns a newVkClearRect.Bufferinstance allocated withmemCalloc.static VkClearRect.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkClearRect.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkClearRectcalloc(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, MemoryStack stack) Deprecated.static VkClearRectcallocStack(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) intlayerCount(int value) Sets the specified value to thelayerCountfield.static VkClearRectmalloc()Returns a newVkClearRectinstance allocated withmemAlloc.static VkClearRect.Buffermalloc(int capacity) Returns a newVkClearRect.Bufferinstance allocated withmemAlloc.static VkClearRect.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkClearRect.Bufferinstance allocated on the specifiedMemoryStack.static VkClearRectmalloc(MemoryStack stack) Returns a newVkClearRectinstance allocated on the specifiedMemoryStack.static VkClearRectDeprecated.static VkClearRect.BuffermallocStack(int capacity) Deprecated.static VkClearRect.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkClearRectmallocStack(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()Passes therectfield to the specifiedConsumer.Copies the specifiedVkRect2Dto therectfield.set(VkClearRect src) Copies the specified struct data to this struct.Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkClearRect>
-
rect
- Returns:
- a
VkRect2Dview of therectfield.
-
baseArrayLayer
public int baseArrayLayer()- Returns:
- the value of the
baseArrayLayerfield.
-
layerCount
public int layerCount()- Returns:
- the value of the
layerCountfield.
-
rect
Copies the specifiedVkRect2Dto therectfield. -
rect
Passes therectfield to the specifiedConsumer. -
baseArrayLayer
Sets the specified value to thebaseArrayLayerfield. -
layerCount
Sets the specified value to thelayerCountfield. -
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.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 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.
-