This union is used where part of the API requires either color or depth/stencil clear values, depending on the attachment, and defines the initial clear values in the VkRenderPassBeginInfo structure.
VkClearAttachment, VkClearColorValue, VkClearDepthStencilValue, VkRenderPassBeginInfo, VkRenderingAttachmentInfo
union VkClearValue {
VkClearColorValue color;
VkClearDepthStencilValue depthStencil;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkClearValue.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COLOR
The struct member offsets. |
| public static final int | DEPTHSTENCIL
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkClearValue(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkClearValue | |
| public static VkClearValue. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkClearValue | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkClearValue. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkClearValue | |
| public static VkClearValue | |
| public static VkClearValue. | |
| public static VkClearValue. | |
| public VkClearColorValue | |
| public VkClearValue | |
| public VkClearValue | |
| protected VkClearValue | 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 VkClearValue | |
| public static VkClearValue | |
| public static VkClearValue. | create(int
the buffer capacity capacity)Returns a new |
| public static VkClearValue. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkClearValue | |
| public static VkClearValue. | |
| public VkClearDepthStencilValue | depthStencil()
specifies the depth and stencil clear values to use when clearing a depth/stencil image or attachment. |
| public VkClearValue | depthStencil(VkClearDepthStencilValue value)
Copies the specified |
| public VkClearValue | depthStencil(Consumer<VkClearDepthStencilValue> consumer)
Passes the |
| public static VkClearValue | |
| public static VkClearValue. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkClearValue | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkClearValue. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkClearValue | |
| public static VkClearValue | |
| public static VkClearValue. | |
| public static VkClearValue. | |
| public static VkClearColorValue | |
| public static void | |
| public static VkClearDepthStencilValue | |
| public static void | |
| public VkClearValue | 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. | |
| COLOR | back to summary |
|---|---|
| public static final int COLOR The struct member offsets. | |
| DEPTHSTENCIL | back to summary |
|---|---|
| public static final int DEPTHSTENCIL The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VkClearValue | back to summary |
|---|---|
| protected VkClearValue(long address, ByteBuffer container) | |
| VkClearValue | back to summary |
|---|---|
| public VkClearValue(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkClearValue calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkClearValue. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkClearValue calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkClearValue. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkClearValue callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkClearValue callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkClearValue. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkClearValue. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| color | back to summary |
|---|---|
| public VkClearColorValue color() specifies the color image clear values to use when clearing a color image or attachment. | |
| color | back to summary |
|---|---|
| public VkClearValue color(VkClearColorValue value) Copies the specified | |
| color | back to summary |
|---|---|
| public VkClearValue color(Consumer<VkClearColorValue> consumer) | |
| create | back to summary |
|---|---|
| protected VkClearValue create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkClearValue create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkClearValue create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkClearValue. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkClearValue. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkClearValue createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkClearValue. Like
| |
| depthStencil | back to summary |
|---|---|
| public VkClearDepthStencilValue depthStencil() specifies the depth and stencil clear values to use when clearing a depth/stencil image or attachment. | |
| depthStencil | back to summary |
|---|---|
| public VkClearValue depthStencil(VkClearDepthStencilValue value) Copies the specified | |
| depthStencil | back to summary |
|---|---|
| public VkClearValue depthStencil(Consumer<VkClearDepthStencilValue> consumer) Passes the | |
| malloc | back to summary |
|---|---|
| public static VkClearValue malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkClearValue. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkClearValue malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkClearValue. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearValue mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearValue mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearValue. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearValue. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ncolor | back to summary |
|---|---|
| public static VkClearColorValue ncolor(long struct) Unsafe version of | |
| ncolor | back to summary |
|---|---|
| public static void ncolor(long struct, VkClearColorValue value) Unsafe version of | |
| ndepthStencil | back to summary |
|---|---|
| public static VkClearDepthStencilValue ndepthStencil(long struct) Unsafe version of | |
| ndepthStencil | back to summary |
|---|---|
| public static void ndepthStencil(long struct, VkClearDepthStencilValue value) Unsafe version of | |
| set | back to summary |
|---|---|
| public VkClearValue set(VkClearValue src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VkClearValue structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkClearValue |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public VkClearColorValue | |
| public VkClearValue. | color(VkClearColorValue value)
Copies the specified |
| public VkClearValue. | color(Consumer<VkClearColorValue> consumer)
Passes the |
| public VkClearDepthStencilValue | |
| public VkClearValue. | depthStencil(VkClearDepthStencilValue value)
Copies the specified |
| public VkClearValue. | depthStencil(Consumer<VkClearDepthStencilValue> consumer)
Passes the |
| protected VkClearValue | |
| protected VkClearValue. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkClearValue 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) | |
| color | back to summary |
|---|---|
public VkClearColorValue color()
| |
| color | back to summary |
|---|---|
| public VkClearValue. Copies the specified | |
| color | back to summary |
|---|---|
| public VkClearValue. Passes the | |
| depthStencil | back to summary |
|---|---|
public VkClearDepthStencilValue depthStencil()
| |
| depthStencil | back to summary |
|---|---|
| public VkClearValue. Copies the specified | |
| depthStencil | back to summary |
|---|---|
| public VkClearValue. Passes the | |
| getElementFactory | back to summary |
|---|---|
| protected VkClearValue getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected VkClearValue. Implements abstract org.
| |