The four array elements of the clear color map to R, G, B, and A components of image formats, in order.
If the image has more than one sample, the same value is written to all samples for any pixels being cleared.
VkClearValue, VkSamplerCustomBorderColorCreateInfoEXT, CmdClearColorImage
union VkClearColorValue {
float float32[4];
int32_t int32[4];
uint32_t uint32[4];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkClearColorValue.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLOAT32
The struct member offsets. |
| public static final int | INT32
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | UINT32
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkClearColorValue(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkClearColorValue | |
| public static VkClearColorValue. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkClearColorValue | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkClearColorValue. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkClearColorValue | |
| public static VkClearColorValue | |
| public static VkClearColorValue. | |
| public static VkClearColorValue. | |
| protected VkClearColorValue | 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 VkClearColorValue | |
| public static VkClearColorValue | |
| public static VkClearColorValue. | create(int
the buffer capacity capacity)Returns a new |
| public static VkClearColorValue. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkClearColorValue | |
| public static VkClearColorValue. | |
| public FloatBuffer | float32()
are the color clear values when the format of the image or attachment is one of the numeric formats with a numeric type that is floating-point. |
| public float | float32(int index)
are the color clear values when the format of the image or attachment is one of the numeric formats with a numeric type that is floating-point. |
| public VkClearColorValue | |
| public VkClearColorValue | |
| public IntBuffer | int32()
are the color clear values when the format of the image or attachment has a numeric type that is signed integer ( |
| public int | int32(int index)
are the color clear values when the format of the image or attachment has a numeric type that is signed integer ( |
| public VkClearColorValue | |
| public VkClearColorValue | |
| public static VkClearColorValue | |
| public static VkClearColorValue. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkClearColorValue | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkClearColorValue. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkClearColorValue | |
| public static VkClearColorValue | |
| public static VkClearColorValue. | |
| public static VkClearColorValue. | |
| public static FloatBuffer | |
| public static float | |
| public static void | |
| public static void | |
| public static IntBuffer | |
| public static int | |
| public static void | |
| public static void | |
| public static IntBuffer | |
| public static int | |
| public static void | |
| public static void | |
| public VkClearColorValue | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public IntBuffer | uint32()
are the color clear values when the format of the image or attachment has a numeric type that is unsigned integer ( |
| public int | uint32(int index)
are the color clear values when the format of the image or attachment has a numeric type that is unsigned integer ( |
| public VkClearColorValue | |
| public VkClearColorValue |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FLOAT32 | back to summary |
|---|---|
| public static final int FLOAT32 The struct member offsets. | |
| INT32 | back to summary |
|---|---|
| public static final int INT32 The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| UINT32 | back to summary |
|---|---|
| public static final int UINT32 The struct member offsets. | |
| VkClearColorValue | back to summary |
|---|---|
| protected VkClearColorValue(long address, ByteBuffer container) | |
| VkClearColorValue | back to summary |
|---|---|
| public VkClearColorValue(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkClearColorValue calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkClearColorValue. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkClearColorValue calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkClearColorValue. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkClearColorValue callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkClearColorValue callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkClearColorValue. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkClearColorValue. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkClearColorValue create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkClearColorValue create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkClearColorValue create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkClearColorValue. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkClearColorValue. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkClearColorValue createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkClearColorValue. Like
| |
| float32 | back to summary |
|---|---|
| public FloatBuffer float32() are the color clear values when the format of the image or attachment is one of the numeric formats with a numeric type that is floating-point. Floating point values are automatically converted to the format of the image, with the clear value being treated as linear if the image is sRGB.
| |
| float32 | back to summary |
|---|---|
| public float float32(int index) are the color clear values when the format of the image or attachment is one of the numeric formats with a numeric type that is floating-point. Floating point values are automatically converted to the format of the image, with the clear value being treated as linear if the image is sRGB. | |
| float32 | back to summary |
|---|---|
| public VkClearColorValue float32(FloatBuffer value) Copies the specified | |
| float32 | back to summary |
|---|---|
| public VkClearColorValue float32(int index, float value) Sets the specified value at the specified index of the | |
| int32 | back to summary |
|---|---|
| public IntBuffer int32() are the color clear values when the format of the image or attachment has a numeric type that is signed integer (
| |
| int32 | back to summary |
|---|---|
| public int int32(int index) are the color clear values when the format of the image or attachment has a numeric type that is signed integer (
| |
| int32 | back to summary |
|---|---|
| public VkClearColorValue int32(IntBuffer value) | |
| int32 | back to summary |
|---|---|
| public VkClearColorValue int32(int index, int value) Sets the specified value at the specified index of the | |
| malloc | back to summary |
|---|---|
| public static VkClearColorValue malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkClearColorValue. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkClearColorValue malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkClearColorValue. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearColorValue mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearColorValue mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearColorValue. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkClearColorValue. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nfloat32 | back to summary |
|---|---|
| public static FloatBuffer nfloat32(long struct) Unsafe version of | |
| nfloat32 | back to summary |
|---|---|
| public static float nfloat32(long struct, int index) Unsafe version of | |
| nfloat32 | back to summary |
|---|---|
| public static void nfloat32(long struct, FloatBuffer value) Unsafe version of | |
| nfloat32 | back to summary |
|---|---|
| public static void nfloat32(long struct, int index, float value) Unsafe version of | |
| nint32 | back to summary |
|---|---|
| public static IntBuffer nint32(long struct) Unsafe version of | |
| nint32 | back to summary |
|---|---|
| public static int nint32(long struct, int index) Unsafe version of | |
| nint32 | back to summary |
|---|---|
| public static void nint32(long struct, IntBuffer value) Unsafe version of | |
| nint32 | back to summary |
|---|---|
| public static void nint32(long struct, int index, int value) Unsafe version of | |
| nuint32 | back to summary |
|---|---|
| public static IntBuffer nuint32(long struct) Unsafe version of | |
| nuint32 | back to summary |
|---|---|
| public static int nuint32(long struct, int index) Unsafe version of | |
| nuint32 | back to summary |
|---|---|
| public static void nuint32(long struct, IntBuffer value) Unsafe version of | |
| nuint32 | back to summary |
|---|---|
| public static void nuint32(long struct, int index, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public VkClearColorValue set(VkClearColorValue src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| uint32 | back to summary |
|---|---|
| public IntBuffer uint32() are the color clear values when the format of the image or attachment has a numeric type that is unsigned integer (
| |
| uint32 | back to summary |
|---|---|
| public int uint32(int index) are the color clear values when the format of the image or attachment has a numeric type that is unsigned integer (
| |
| uint32 | back to summary |
|---|---|
| public VkClearColorValue uint32(IntBuffer value) | |
| uint32 | back to summary |
|---|---|
| public VkClearColorValue uint32(int index, int value) Sets the specified value at the specified index of the | |
VkClearColorValue structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkClearColorValue |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public FloatBuffer | |
| public float | |
| public VkClearColorValue. | |
| public VkClearColorValue. | float32(int index, float value)
Sets the specified value at the specified index of the |
| protected VkClearColorValue | |
| public IntBuffer | |
| public int | |
| public VkClearColorValue. | |
| public VkClearColorValue. | int32(int index, int value)
Sets the specified value at the specified index of the |
| protected VkClearColorValue. | |
| public IntBuffer | |
| public int | |
| public VkClearColorValue. | |
| public VkClearColorValue. | uint32(int index, int value)
Sets the specified value at the specified index of the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkClearColorValue 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) | |
| float32 | back to summary |
|---|---|
public FloatBuffer float32()
| |
| float32 | back to summary |
|---|---|
public float float32(int index)
| |
| float32 | back to summary |
|---|---|
| public VkClearColorValue. Copies the specified | |
| float32 | back to summary |
|---|---|
| public VkClearColorValue. Sets the specified value at the specified index of the | |
| getElementFactory | back to summary |
|---|---|
| protected VkClearColorValue getElementFactory() Implements abstract org.
| |
| int32 | back to summary |
|---|---|
public IntBuffer int32()
| |
| int32 | back to summary |
|---|---|
public int int32(int index)
| |
| int32 | back to summary |
|---|---|
| public VkClearColorValue. Copies the specified | |
| int32 | back to summary |
|---|---|
| public VkClearColorValue. Sets the specified value at the specified index of the | |
| self | back to summary |
|---|---|
| protected VkClearColorValue. Implements abstract org.
| |
| uint32 | back to summary |
|---|---|
public IntBuffer uint32()
| |
| uint32 | back to summary |
|---|---|
public int uint32(int index)
| |
| uint32 | back to summary |
|---|---|
| public VkClearColorValue. Copies the specified | |
| uint32 | back to summary |
|---|---|
| public VkClearColorValue. Sets the specified value at the specified index of the | |