public class VkClearRect
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The layers [baseArrayLayer, baseArrayLayer + layerCount) counting from the base layer of the attachment image view are cleared.
rect – the two-dimensional region to be cleared.baseArrayLayer – the first layer to be cleared.layerCount – the number of layers to clear.
struct VkClearRect {
VkRect2D rect;
uint32_t baseArrayLayer;
uint32_t layerCount;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkClearRect.Buffer
An array of
VkClearRect structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BASEARRAYLAYER
The struct member offsets.
|
static int |
LAYERCOUNT
The struct member offsets.
|
static int |
RECT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkClearRect(java.nio.ByteBuffer container)
Creates a
VkClearRect instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
baseArrayLayer()
Returns the value of the
baseArrayLayer field. |
VkClearRect |
baseArrayLayer(int value)
Sets the specified value to the
baseArrayLayer field. |
static VkClearRect |
calloc()
Returns a new
VkClearRect instance allocated with memCalloc. |
static VkClearRect.Buffer |
calloc(int capacity)
Returns a new
VkClearRect.Buffer instance allocated with memCalloc. |
static VkClearRect |
callocStack()
Returns a new
VkClearRect instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkClearRect.Buffer |
callocStack(int capacity)
Returns a new
VkClearRect.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkClearRect.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkClearRect.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkClearRect |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkClearRect instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkClearRect |
create()
Returns a new
VkClearRect instance allocated with BufferUtils. |
static VkClearRect.Buffer |
create(int capacity)
Returns a new
VkClearRect.Buffer instance allocated with BufferUtils. |
static VkClearRect |
create(long address)
Returns a new
VkClearRect instance for the specified memory address. |
static VkClearRect.Buffer |
create(long address,
int capacity)
Create a
VkClearRect.Buffer instance at the specified memory. |
static VkClearRect |
createSafe(long address)
|
static VkClearRect.Buffer |
createSafe(long address,
int capacity)
|
int |
layerCount()
Returns the value of the
layerCount field. |
VkClearRect |
layerCount(int value)
Sets the specified value to the
layerCount field. |
static VkClearRect |
malloc()
Returns a new
VkClearRect instance allocated with memAlloc. |
static VkClearRect.Buffer |
malloc(int capacity)
Returns a new
VkClearRect.Buffer instance allocated with memAlloc. |
static VkClearRect |
mallocStack()
Returns a new
VkClearRect instance allocated on the thread-local MemoryStack. |
static VkClearRect.Buffer |
mallocStack(int capacity)
Returns a new
VkClearRect.Buffer instance allocated on the thread-local MemoryStack. |
static VkClearRect.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkClearRect.Buffer instance allocated on the specified MemoryStack. |
static VkClearRect |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkClearRect instance allocated on the specified MemoryStack. |
static int |
nbaseArrayLayer(long struct)
Unsafe version of
baseArrayLayer(). |
static void |
nbaseArrayLayer(long struct,
int value)
Unsafe version of
baseArrayLayer. |
static int |
nlayerCount(long struct)
Unsafe version of
layerCount(). |
static void |
nlayerCount(long struct,
int value)
Unsafe version of
layerCount. |
static VkRect2D |
nrect(long struct)
Unsafe version of
rect(). |
static void |
nrect(long struct,
VkRect2D value)
Unsafe version of
rect. |
VkRect2D |
rect()
Returns a
VkRect2D view of the rect field. |
VkClearRect |
rect(java.util.function.Consumer<VkRect2D> consumer)
Passes the
rect field to the specified Consumer. |
VkClearRect |
rect(VkRect2D value)
Copies the specified
VkRect2D to the rect field. |
VkClearRect |
set(VkClearRect src)
Copies the specified struct data to this struct.
|
VkClearRect |
set(VkRect2D rect,
int baseArrayLayer,
int layerCount)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int RECT
public static final int BASEARRAYLAYER
public static final int LAYERCOUNT
public VkClearRect(java.nio.ByteBuffer container)
VkClearRect instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int baseArrayLayer()
baseArrayLayer field.public int layerCount()
layerCount field.public VkClearRect rect(VkRect2D value)
VkRect2D to the rect field.public VkClearRect rect(java.util.function.Consumer<VkRect2D> consumer)
rect field to the specified Consumer.public VkClearRect baseArrayLayer(int value)
baseArrayLayer field.public VkClearRect layerCount(int value)
layerCount field.public VkClearRect set(VkRect2D rect, int baseArrayLayer, int layerCount)
public VkClearRect set(VkClearRect src)
src - the source structpublic static VkClearRect malloc()
VkClearRect instance allocated with memAlloc. The instance must be explicitly freed.public static VkClearRect calloc()
VkClearRect instance allocated with memCalloc. The instance must be explicitly freed.public static VkClearRect create()
VkClearRect instance allocated with BufferUtils.public static VkClearRect create(long address)
VkClearRect instance for the specified memory address.@Nullable public static VkClearRect createSafe(long address)
public static VkClearRect.Buffer malloc(int capacity)
VkClearRect.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkClearRect.Buffer calloc(int capacity)
VkClearRect.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkClearRect.Buffer create(int capacity)
VkClearRect.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkClearRect.Buffer create(long address, int capacity)
VkClearRect.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkClearRect.Buffer createSafe(long address, int capacity)
public static VkClearRect mallocStack()
VkClearRect instance allocated on the thread-local MemoryStack.public static VkClearRect callocStack()
VkClearRect instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkClearRect mallocStack(org.lwjgl.system.MemoryStack stack)
VkClearRect instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkClearRect callocStack(org.lwjgl.system.MemoryStack stack)
VkClearRect instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkClearRect.Buffer mallocStack(int capacity)
VkClearRect.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkClearRect.Buffer callocStack(int capacity)
VkClearRect.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkClearRect.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkClearRect.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkClearRect.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkClearRect.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nbaseArrayLayer(long struct)
baseArrayLayer().public static int nlayerCount(long struct)
layerCount().public static void nbaseArrayLayer(long struct,
int value)
baseArrayLayer.public static void nlayerCount(long struct,
int value)
layerCount.Copyright LWJGL. All Rights Reserved. License terms.