Package org.lwjgl.vulkan
Class VkClearColorValue
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkClearColorValue
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkClearColorValue extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a clear color value.Description
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.
See Also
VkClearValue,VkSamplerCustomBorderColorCreateInfoEXT,CmdClearColorImageLayout
union VkClearColorValue { floatfloat32()[4]; int32_tint32()[4]; uint32_tuint32()[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkClearColorValue.BufferAn array ofVkClearColorValuestructs.
-
Constructor Summary
Constructors Constructor Description VkClearColorValue(java.nio.ByteBuffer container)Creates aVkClearColorValueinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkClearColorValuecalloc()Returns a newVkClearColorValueinstance allocated withmemCalloc.static VkClearColorValue.Buffercalloc(int capacity)Returns a newVkClearColorValue.Bufferinstance allocated withmemCalloc.static VkClearColorValue.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkClearColorValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkClearColorValuecalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkClearColorValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkClearColorValuecallocStack()Deprecated.static VkClearColorValue.BuffercallocStack(int capacity)Deprecated.static VkClearColorValue.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkClearColorValuecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkClearColorValuecreate()Returns a newVkClearColorValueinstance allocated withBufferUtils.static VkClearColorValue.Buffercreate(int capacity)Returns a newVkClearColorValue.Bufferinstance allocated withBufferUtils.static VkClearColorValuecreate(long address)Returns a newVkClearColorValueinstance for the specified memory address.static VkClearColorValue.Buffercreate(long address, int capacity)Create aVkClearColorValue.Bufferinstance at the specified memory.static VkClearColorValuecreateSafe(long address)static VkClearColorValue.BuffercreateSafe(long address, int capacity)java.nio.FloatBufferfloat32()are the color clear values when the format of the image or attachment is one of the formats in the Interpretation of Numeric Format table other than signed integer (SINT) or unsigned integer (UINT).floatfloat32(int index)are the color clear values when the format of the image or attachment is one of the formats in the Interpretation of Numeric Format table other than signed integer (SINT) or unsigned integer (UINT).VkClearColorValuefloat32(int index, float value)Sets the specified value at the specified index of thefloat32()field.VkClearColorValuefloat32(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto thefloat32()field.java.nio.IntBufferint32()are the color clear values when the format of the image or attachment is signed integer (SINT).intint32(int index)are the color clear values when the format of the image or attachment is signed integer (SINT).VkClearColorValueint32(int index, int value)Sets the specified value at the specified index of theint32()field.VkClearColorValueint32(java.nio.IntBuffer value)Copies the specifiedIntBufferto theint32()field.static VkClearColorValuemalloc()Returns a newVkClearColorValueinstance allocated withmemAlloc.static VkClearColorValue.Buffermalloc(int capacity)Returns a newVkClearColorValue.Bufferinstance allocated withmemAlloc.static VkClearColorValue.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkClearColorValue.Bufferinstance allocated on the specifiedMemoryStack.static VkClearColorValuemalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkClearColorValueinstance allocated on the specifiedMemoryStack.static VkClearColorValuemallocStack()Deprecated.static VkClearColorValue.BuffermallocStack(int capacity)Deprecated.static VkClearColorValue.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkClearColorValuemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.FloatBuffernfloat32(long struct)Unsafe version offloat32().static floatnfloat32(long struct, int index)Unsafe version offloat32.static voidnfloat32(long struct, int index, float value)Unsafe version offloat32.static voidnfloat32(long struct, java.nio.FloatBuffer value)Unsafe version offloat32.static java.nio.IntBuffernint32(long struct)Unsafe version ofint32().static intnint32(long struct, int index)Unsafe version ofint32.static voidnint32(long struct, int index, int value)Unsafe version ofint32.static voidnint32(long struct, java.nio.IntBuffer value)Unsafe version ofint32.static java.nio.IntBuffernuint32(long struct)Unsafe version ofuint32().static intnuint32(long struct, int index)Unsafe version ofuint32.static voidnuint32(long struct, int index, int value)Unsafe version ofuint32.static voidnuint32(long struct, java.nio.IntBuffer value)Unsafe version ofuint32.VkClearColorValueset(VkClearColorValue src)Copies the specified struct data to this struct.intsizeof()java.nio.IntBufferuint32()are the color clear values when the format of the image or attachment is unsigned integer (UINT).intuint32(int index)are the color clear values when the format of the image or attachment is unsigned integer (UINT).VkClearColorValueuint32(int index, int value)Sets the specified value at the specified index of theuint32()field.VkClearColorValueuint32(java.nio.IntBuffer value)Copies the specifiedIntBufferto theuint32()field.
-
-
-
Constructor Detail
-
VkClearColorValue
public VkClearColorValue(java.nio.ByteBuffer container)
Creates aVkClearColorValueinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
float32
public java.nio.FloatBuffer float32() public float float32(int index)
are the color clear values when the format of the image or attachment is one of the formats in the Interpretation of Numeric Format table other than signed integer (SINT) or unsigned integer (UINT). 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.
-
int32
public java.nio.IntBuffer int32() public int int32(int index)
are the color clear values when the format of the image or attachment is signed integer (SINT). Signed integer values are converted to the format of the image by casting to the smaller type (with negative 32-bit values mapping to negative values in the smaller type). If the integer clear value is not representable in the target type (e.g. would overflow in conversion to that type), the clear value is undefined.
-
uint32
public java.nio.IntBuffer uint32() public int uint32(int index)
are the color clear values when the format of the image or attachment is unsigned integer (UINT). Unsigned integer values are converted to the format of the image by casting to the integer type with fewer bits.
-
float32
public VkClearColorValue float32(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto thefloat32()field.
-
float32
public VkClearColorValue float32(int index, float value)
Sets the specified value at the specified index of thefloat32()field.
-
int32
public VkClearColorValue int32(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theint32()field.
-
int32
public VkClearColorValue int32(int index, int value)
Sets the specified value at the specified index of theint32()field.
-
uint32
public VkClearColorValue uint32(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theuint32()field.
-
uint32
public VkClearColorValue uint32(int index, int value)
Sets the specified value at the specified index of theuint32()field.
-
set
public VkClearColorValue set(VkClearColorValue src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkClearColorValue malloc()
Returns a newVkClearColorValueinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkClearColorValue calloc()
Returns a newVkClearColorValueinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkClearColorValue create()
Returns a newVkClearColorValueinstance allocated withBufferUtils.
-
create
public static VkClearColorValue create(long address)
Returns a newVkClearColorValueinstance for the specified memory address.
-
createSafe
@Nullable public static VkClearColorValue createSafe(long address)
-
malloc
public static VkClearColorValue.Buffer malloc(int capacity)
Returns a newVkClearColorValue.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkClearColorValue.Buffer calloc(int capacity)
Returns a newVkClearColorValue.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkClearColorValue.Buffer create(int capacity)
Returns a newVkClearColorValue.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkClearColorValue.Buffer create(long address, int capacity)
Create aVkClearColorValue.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkClearColorValue.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkClearColorValue mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkClearColorValue callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkClearColorValue mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkClearColorValue callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkClearColorValue.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkClearColorValue.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkClearColorValue.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkClearColorValue.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkClearColorValue malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkClearColorValueinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkClearColorValue calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkClearColorValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkClearColorValue.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkClearColorValue.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkClearColorValue.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkClearColorValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nfloat32
public static java.nio.FloatBuffer nfloat32(long struct)
Unsafe version offloat32().
-
nfloat32
public static float nfloat32(long struct, int index)Unsafe version offloat32.
-
nint32
public static java.nio.IntBuffer nint32(long struct)
Unsafe version ofint32().
-
nint32
public static int nint32(long struct, int index)Unsafe version ofint32.
-
nuint32
public static java.nio.IntBuffer nuint32(long struct)
Unsafe version ofuint32().
-
nuint32
public static int nuint32(long struct, int index)Unsafe version ofuint32.
-
nfloat32
public static void nfloat32(long struct, java.nio.FloatBuffer value)Unsafe version offloat32.
-
nfloat32
public static void nfloat32(long struct, int index, float value)Unsafe version offloat32.
-
nint32
public static void nint32(long struct, java.nio.IntBuffer value)Unsafe version ofint32.
-
nint32
public static void nint32(long struct, int index, int value)Unsafe version ofint32.
-
nuint32
public static void nuint32(long struct, java.nio.IntBuffer value)Unsafe version ofuint32.
-
nuint32
public static void nuint32(long struct, int index, int value)Unsafe version ofuint32.
-
-