aspectMask includes IMAGE_ASPECT_COLOR_BIT, it must not include IMAGE_ASPECT_DEPTH_BIT or IMAGE_ASPECT_STENCIL_BITaspectMask must not include IMAGE_ASPECT_METADATA_BITaspectMask must not include VK_IMAGE_ASPECT_MEMORY_PLANE_i_BIT_EXT for any index iclearValue must be a valid VkClearValue unionaspectMask must be a valid combination of VkImageAspectFlagBits valuesaspectMask must not be 0VkClearValue, CmdClearAttachments
struct VkClearAttachment {
VkImageAspectFlags aspectMask;
uint32_t colorAttachment;
VkClearValue clearValue;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkClearAttachment.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ASPECTMASK
The struct member offsets. |
| public static final int | CLEARVALUE
The struct member offsets. |
| public static final int | COLORATTACHMENT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkClearAttachment(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | aspectMask()
a mask selecting the color, depth and/or stencil aspects of the attachment to be cleared. |
| public VkClearAttachment | |
| public static VkClearAttachment | |
| public static VkClearAttachment. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkClearAttachment | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkClearAttachment. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkClearAttachment | |
| public static VkClearAttachment | |
| public static VkClearAttachment. | |
| public static VkClearAttachment. | |
| public VkClearValue | clearValue()
the color or depth/stencil value to clear the attachment to, as described in Clear Values below. |
| public VkClearAttachment | |
| public VkClearAttachment | |
| public int | colorAttachment()
only meaningful if |
| public VkClearAttachment | |
| protected VkClearAttachment | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkClearAttachment | |
| public static VkClearAttachment | |
| public static VkClearAttachment. | create(int
the buffer capacity capacity)Returns a new |
| public static VkClearAttachment. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkClearAttachment | |
| public static VkClearAttachment. | |
| public static VkClearAttachment | |
| public static VkClearAttachment. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkClearAttachment | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkClearAttachment. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkClearAttachment | |
| public static VkClearAttachment | |
| public static VkClearAttachment. | |
| public static VkClearAttachment. | |
| public static int | |
| public static void | |
| public static VkClearValue | |
| public static void | |
| public static int | |
| public static void | |
| public VkClearAttachment | set(int aspectMask, int colorAttachment, VkClearValue clearValue)
Initializes this struct with the specified values. |
| public VkClearAttachment | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ASPECTMASK | back to summary |
|---|---|
| public static final int ASPECTMASK The struct member offsets. | |
| CLEARVALUE | back to summary |
|---|---|
| public static final int CLEARVALUE The struct member offsets. | |
| COLORATTACHMENT | back to summary |
|---|---|
| public static final int COLORATTACHMENT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VkClearAttachment | back to summary |
|---|---|
| protected VkClearAttachment(long address, ByteBuffer container) | |
| VkClearAttachment | back to summary |
|---|---|
| public VkClearAttachment(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| aspectMask | back to summary |
|---|---|
| public int aspectMask() a mask selecting the color, depth and/or stencil aspects of the attachment to be cleared.
| |
| aspectMask | back to summary |
|---|---|
| public VkClearAttachment aspectMask(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static VkClearAttachment calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkClearAttachment. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkClearAttachment calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkClearAttachment. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkClearAttachment callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkClearAttachment callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkClearAttachment. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkClearAttachment. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| clearValue | back to summary |
|---|---|
| public VkClearValue clearValue() the color or depth/stencil value to clear the attachment to, as described in Clear Values below. | |
| clearValue | back to summary |
|---|---|
| public VkClearAttachment clearValue(VkClearValue value) Copies the specified | |
| clearValue | back to summary |
|---|---|
| public VkClearAttachment clearValue(Consumer<VkClearValue> consumer) Passes the | |
| colorAttachment | back to summary |
|---|---|
| public int colorAttachment() only meaningful if
| |
| colorAttachment | back to summary |
|---|---|
| public VkClearAttachment colorAttachment(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected VkClearAttachment create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkClearAttachment create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkClearAttachment create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkClearAttachment. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkClearAttachment. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkClearAttachment createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkClearAttachment. Like
| |
| malloc | back to summary |
|---|---|
| public static VkClearAttachment malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkClearAttachment. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkClearAttachment malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkClearAttachment. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearAttachment mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearAttachment mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearAttachment. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearAttachment. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| naspectMask | back to summary |
|---|---|
| public static int naspectMask(long struct) Unsafe version of | |
| naspectMask | back to summary |
|---|---|
| public static void naspectMask(long struct, int value) Unsafe version of | |
| nclearValue | back to summary |
|---|---|
| public static VkClearValue nclearValue(long struct) Unsafe version of | |
| nclearValue | back to summary |
|---|---|
| public static void nclearValue(long struct, VkClearValue value) Unsafe version of | |
| ncolorAttachment | back to summary |
|---|---|
| public static int ncolorAttachment(long struct) Unsafe version of | |
| ncolorAttachment | back to summary |
|---|---|
| public static void ncolorAttachment(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public VkClearAttachment set(int aspectMask, int colorAttachment, VkClearValue clearValue) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkClearAttachment set(VkClearAttachment src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VkClearAttachment structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkClearAttachment |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkClearAttachment. | |
| public VkClearValue | |
| public VkClearAttachment. | clearValue(VkClearValue value)
Copies the specified |
| public VkClearAttachment. | clearValue(Consumer<VkClearValue> consumer)
Passes the |
| public int | |
| public VkClearAttachment. | |
| protected VkClearAttachment | |
| protected VkClearAttachment. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkClearAttachment ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| aspectMask | back to summary |
|---|---|
public int aspectMask()
| |
| aspectMask | back to summary |
|---|---|
| public VkClearAttachment. Sets the specified value to the | |
| clearValue | back to summary |
|---|---|
public VkClearValue clearValue()
| |
| clearValue | back to summary |
|---|---|
| public VkClearAttachment. Copies the specified | |
| clearValue | back to summary |
|---|---|
| public VkClearAttachment. Passes the | |
| colorAttachment | back to summary |
|---|---|
public int colorAttachment()
| |
| colorAttachment | back to summary |
|---|---|
| public VkClearAttachment. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkClearAttachment getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected VkClearAttachment. Implements abstract org.
| |