public class VkComponentMapping
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
r must be a valid VkComponentSwizzle valueg must be a valid VkComponentSwizzle valueb must be a valid VkComponentSwizzle valuea must be a valid VkComponentSwizzle valueVkImageViewCreateInfo, VkSamplerYcbcrConversionCreateInfo
r – a VkComponentSwizzle specifying the component value placed in the R component of the output vector.g – a VkComponentSwizzle specifying the component value placed in the G component of the output vector.b – a VkComponentSwizzle specifying the component value placed in the B component of the output vector.a – a VkComponentSwizzle specifying the component value placed in the A component of the output vector.
struct VkComponentMapping {
VkComponentSwizzle r;
VkComponentSwizzle g;
VkComponentSwizzle b;
VkComponentSwizzle a;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkComponentMapping.Buffer
An array of
VkComponentMapping structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
A
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
B
The struct member offsets.
|
static int |
G
The struct member offsets.
|
static int |
R
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkComponentMapping(java.nio.ByteBuffer container)
Creates a
VkComponentMapping instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
a()
Returns the value of the
a field. |
VkComponentMapping |
a(int value)
Sets the specified value to the
a field. |
int |
b()
Returns the value of the
b field. |
VkComponentMapping |
b(int value)
Sets the specified value to the
b field. |
static VkComponentMapping |
calloc()
Returns a new
VkComponentMapping instance allocated with memCalloc. |
static VkComponentMapping.Buffer |
calloc(int capacity)
Returns a new
VkComponentMapping.Buffer instance allocated with memCalloc. |
static VkComponentMapping |
callocStack()
Returns a new
VkComponentMapping instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkComponentMapping.Buffer |
callocStack(int capacity)
Returns a new
VkComponentMapping.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkComponentMapping.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkComponentMapping.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkComponentMapping |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkComponentMapping instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkComponentMapping |
create()
Returns a new
VkComponentMapping instance allocated with BufferUtils. |
static VkComponentMapping.Buffer |
create(int capacity)
Returns a new
VkComponentMapping.Buffer instance allocated with BufferUtils. |
static VkComponentMapping |
create(long address)
Returns a new
VkComponentMapping instance for the specified memory address. |
static VkComponentMapping.Buffer |
create(long address,
int capacity)
Create a
VkComponentMapping.Buffer instance at the specified memory. |
static VkComponentMapping |
createSafe(long address)
|
static VkComponentMapping.Buffer |
createSafe(long address,
int capacity)
|
int |
g()
Returns the value of the
g field. |
VkComponentMapping |
g(int value)
Sets the specified value to the
g field. |
static VkComponentMapping |
malloc()
Returns a new
VkComponentMapping instance allocated with memAlloc. |
static VkComponentMapping.Buffer |
malloc(int capacity)
Returns a new
VkComponentMapping.Buffer instance allocated with memAlloc. |
static VkComponentMapping |
mallocStack()
Returns a new
VkComponentMapping instance allocated on the thread-local MemoryStack. |
static VkComponentMapping.Buffer |
mallocStack(int capacity)
Returns a new
VkComponentMapping.Buffer instance allocated on the thread-local MemoryStack. |
static VkComponentMapping.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkComponentMapping.Buffer instance allocated on the specified MemoryStack. |
static VkComponentMapping |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkComponentMapping instance allocated on the specified MemoryStack. |
static int |
na(long struct)
Unsafe version of
a(). |
static void |
na(long struct,
int value)
Unsafe version of
a. |
static int |
nb(long struct)
Unsafe version of
b(). |
static void |
nb(long struct,
int value)
Unsafe version of
b. |
static int |
ng(long struct)
Unsafe version of
g(). |
static void |
ng(long struct,
int value)
Unsafe version of
g. |
static int |
nr(long struct)
Unsafe version of
r(). |
static void |
nr(long struct,
int value)
Unsafe version of
r. |
int |
r()
Returns the value of the
r field. |
VkComponentMapping |
r(int value)
Sets the specified value to the
r field. |
VkComponentMapping |
set(int r,
int g,
int b,
int a)
Initializes this struct with the specified values.
|
VkComponentMapping |
set(VkComponentMapping src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int R
public static final int G
public static final int B
public static final int A
public VkComponentMapping(java.nio.ByteBuffer container)
VkComponentMapping instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int r()
r field.public int g()
g field.public int b()
b field.public int a()
a field.public VkComponentMapping r(int value)
r field.public VkComponentMapping g(int value)
g field.public VkComponentMapping b(int value)
b field.public VkComponentMapping a(int value)
a field.public VkComponentMapping set(int r, int g, int b, int a)
public VkComponentMapping set(VkComponentMapping src)
src - the source structpublic static VkComponentMapping malloc()
VkComponentMapping instance allocated with memAlloc. The instance must be explicitly freed.public static VkComponentMapping calloc()
VkComponentMapping instance allocated with memCalloc. The instance must be explicitly freed.public static VkComponentMapping create()
VkComponentMapping instance allocated with BufferUtils.public static VkComponentMapping create(long address)
VkComponentMapping instance for the specified memory address.@Nullable public static VkComponentMapping createSafe(long address)
public static VkComponentMapping.Buffer malloc(int capacity)
VkComponentMapping.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkComponentMapping.Buffer calloc(int capacity)
VkComponentMapping.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkComponentMapping.Buffer create(int capacity)
VkComponentMapping.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkComponentMapping.Buffer create(long address, int capacity)
VkComponentMapping.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkComponentMapping.Buffer createSafe(long address, int capacity)
public static VkComponentMapping mallocStack()
VkComponentMapping instance allocated on the thread-local MemoryStack.public static VkComponentMapping callocStack()
VkComponentMapping instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkComponentMapping mallocStack(org.lwjgl.system.MemoryStack stack)
VkComponentMapping instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkComponentMapping callocStack(org.lwjgl.system.MemoryStack stack)
VkComponentMapping instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkComponentMapping.Buffer mallocStack(int capacity)
VkComponentMapping.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkComponentMapping.Buffer callocStack(int capacity)
VkComponentMapping.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkComponentMapping.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkComponentMapping.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkComponentMapping.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkComponentMapping.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nr(long struct)
r().public static int ng(long struct)
g().public static int nb(long struct)
b().public static int na(long struct)
a().public static void nr(long struct,
int value)
r.public static void ng(long struct,
int value)
g.public static void nb(long struct,
int value)
b.public static void na(long struct,
int value)
a.Copyright LWJGL. All Rights Reserved. License terms.