Package org.lwjgl.vulkan
Class VkClearColorValue
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
union VkClearColorValue {
float float32[4];
int32_t int32[4];
uint32_t uint32[4];
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkClearColorValue
(ByteBuffer container) Creates aVkClearColorValue
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkClearColorValue
calloc()
Returns a newVkClearColorValue
instance allocated withmemCalloc
.static VkClearColorValue.Buffer
calloc
(int capacity) Returns a newVkClearColorValue.Buffer
instance allocated withmemCalloc
.static VkClearColorValue.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkClearColorValue.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkClearColorValue
calloc
(MemoryStack stack) Returns a newVkClearColorValue
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkClearColorValue
Deprecated.static VkClearColorValue.Buffer
callocStack
(int capacity) Deprecated.static VkClearColorValue.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkClearColorValue
callocStack
(MemoryStack stack) Deprecated.static VkClearColorValue
create()
Returns a newVkClearColorValue
instance allocated withBufferUtils
.static VkClearColorValue.Buffer
create
(int capacity) Returns a newVkClearColorValue.Buffer
instance allocated withBufferUtils
.static VkClearColorValue
create
(long address) Returns a newVkClearColorValue
instance for the specified memory address.static VkClearColorValue.Buffer
create
(long address, int capacity) Create aVkClearColorValue.Buffer
instance at the specified memory.static @Nullable VkClearColorValue
createSafe
(long address) static @Nullable VkClearColorValue.Buffer
createSafe
(long address, int capacity) float32()
float
float32
(int index) float32
(int index, float value) Sets the specified value at the specified index of thefloat32
field.float32
(FloatBuffer value) Copies the specifiedFloatBuffer
to thefloat32
field.int32()
int
int32
(int index) int32
(int index, int value) Sets the specified value at the specified index of theint32
field.Copies the specifiedIntBuffer
to theint32
field.static VkClearColorValue
malloc()
Returns a newVkClearColorValue
instance allocated withmemAlloc
.static VkClearColorValue.Buffer
malloc
(int capacity) Returns a newVkClearColorValue.Buffer
instance allocated withmemAlloc
.static VkClearColorValue.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkClearColorValue.Buffer
instance allocated on the specifiedMemoryStack
.static VkClearColorValue
malloc
(MemoryStack stack) Returns a newVkClearColorValue
instance allocated on the specifiedMemoryStack
.static VkClearColorValue
Deprecated.static VkClearColorValue.Buffer
mallocStack
(int capacity) Deprecated.static VkClearColorValue.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkClearColorValue
mallocStack
(MemoryStack stack) Deprecated.static FloatBuffer
nfloat32
(long struct) Unsafe version offloat32()
.static float
nfloat32
(long struct, int index) Unsafe version offloat32
.static void
nfloat32
(long struct, int index, float value) Unsafe version offloat32
.static void
nfloat32
(long struct, FloatBuffer value) Unsafe version offloat32
.static IntBuffer
nint32
(long struct) Unsafe version ofint32()
.static int
nint32
(long struct, int index) Unsafe version ofint32
.static void
nint32
(long struct, int index, int value) Unsafe version ofint32
.static void
Unsafe version ofint32
.static IntBuffer
nuint32
(long struct) Unsafe version ofuint32()
.static int
nuint32
(long struct, int index) Unsafe version ofuint32
.static void
nuint32
(long struct, int index, int value) Unsafe version ofuint32
.static void
Unsafe version ofuint32
.set
(VkClearColorValue src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.uint32()
int
uint32
(int index) uint32
(int index, int value) Sets the specified value at the specified index of theuint32
field.Copies the specifiedIntBuffer
to theuint32
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FLOAT32
public static final int FLOAT32The struct member offsets. -
INT32
public static final int INT32The struct member offsets. -
UINT32
public static final int UINT32The struct member offsets.
-
-
Constructor Details
-
VkClearColorValue
Creates aVkClearColorValue
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkClearColorValue>
-
float32
- Returns:
- a
FloatBuffer
view of thefloat32
field.
-
float32
public float float32(int index) - Returns:
- the value at the specified index of the
float32
field.
-
int32
- Returns:
- a
IntBuffer
view of theint32
field.
-
int32
public int int32(int index) - Returns:
- the value at the specified index of the
int32
field.
-
uint32
- Returns:
- a
IntBuffer
view of theuint32
field.
-
uint32
public int uint32(int index) - Returns:
- the value at the specified index of the
uint32
field.
-
float32
Copies the specifiedFloatBuffer
to thefloat32
field. -
float32
Sets the specified value at the specified index of thefloat32
field. -
int32
Copies the specifiedIntBuffer
to theint32
field. -
int32
Sets the specified value at the specified index of theint32
field. -
uint32
Copies the specifiedIntBuffer
to theuint32
field. -
uint32
Sets the specified value at the specified index of theuint32
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkClearColorValue
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkClearColorValue
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkClearColorValue
instance allocated withBufferUtils
. -
create
Returns a newVkClearColorValue
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkClearColorValue.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkClearColorValue.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkClearColorValue.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkClearColorValue.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkClearColorValue
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkClearColorValue
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkClearColorValue.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkClearColorValue.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nfloat32
Unsafe version offloat32()
. -
nfloat32
public static float nfloat32(long struct, int index) Unsafe version offloat32
. -
nint32
Unsafe version ofint32()
. -
nint32
public static int nint32(long struct, int index) Unsafe version ofint32
. -
nuint32
Unsafe version ofuint32()
. -
nuint32
public static int nuint32(long struct, int index) Unsafe version ofuint32
. -
nfloat32
Unsafe version offloat32
. -
nfloat32
public static void nfloat32(long struct, int index, float value) Unsafe version offloat32
. -
nint32
Unsafe version ofint32
. -
nint32
public static void nint32(long struct, int index, int value) Unsafe version ofint32
. -
nuint32
Unsafe version ofuint32
. -
nuint32
public static void nuint32(long struct, int index, int value) Unsafe version ofuint32
.
-