Package org.lwjgl.vulkan
Class VkColorBlendEquationEXT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkColorBlendEquationEXT
extends Struct<VkColorBlendEquationEXT>
implements NativeResource
struct VkColorBlendEquationEXT {
VkBlendFactor srcColorBlendFactor;
VkBlendFactor dstColorBlendFactor;
VkBlendOp colorBlendOp;
VkBlendFactor srcAlphaBlendFactor;
VkBlendFactor dstAlphaBlendFactor;
VkBlendOp alphaBlendOp;
}
-
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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.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
ConstructorsConstructorDescriptionVkColorBlendEquationEXT
(ByteBuffer container) Creates aVkColorBlendEquationEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
alphaBlendOp
(int value) Sets the specified value to thealphaBlendOp
field.static VkColorBlendEquationEXT
calloc()
Returns a newVkColorBlendEquationEXT
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkColorBlendEquationEXT.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkColorBlendEquationEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkColorBlendEquationEXT
calloc
(MemoryStack stack) Returns a newVkColorBlendEquationEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
colorBlendOp
(int value) Sets the specified value to thecolorBlendOp
field.static VkColorBlendEquationEXT
create()
Returns a newVkColorBlendEquationEXT
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkColorBlendEquationEXT.Buffer
instance allocated withBufferUtils
.static VkColorBlendEquationEXT
create
(long address) Returns a newVkColorBlendEquationEXT
instance for the specified memory address.create
(long address, int capacity) Create aVkColorBlendEquationEXT.Buffer
instance at the specified memory.static @Nullable VkColorBlendEquationEXT
createSafe
(long address) static @Nullable VkColorBlendEquationEXT.Buffer
createSafe
(long address, int capacity) int
dstAlphaBlendFactor
(int value) Sets the specified value to thedstAlphaBlendFactor
field.int
dstColorBlendFactor
(int value) Sets the specified value to thedstColorBlendFactor
field.static VkColorBlendEquationEXT
malloc()
Returns a newVkColorBlendEquationEXT
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkColorBlendEquationEXT.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkColorBlendEquationEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkColorBlendEquationEXT
malloc
(MemoryStack stack) Returns a newVkColorBlendEquationEXT
instance allocated on the specifiedMemoryStack
.static int
nalphaBlendOp
(long struct) Unsafe version ofalphaBlendOp()
.static void
nalphaBlendOp
(long struct, int value) Unsafe version ofalphaBlendOp
.static int
ncolorBlendOp
(long struct) Unsafe version ofcolorBlendOp()
.static void
ncolorBlendOp
(long struct, int value) Unsafe version ofcolorBlendOp
.static int
ndstAlphaBlendFactor
(long struct) Unsafe version ofdstAlphaBlendFactor()
.static void
ndstAlphaBlendFactor
(long struct, int value) Unsafe version ofdstAlphaBlendFactor
.static int
ndstColorBlendFactor
(long struct) Unsafe version ofdstColorBlendFactor()
.static void
ndstColorBlendFactor
(long struct, int value) Unsafe version ofdstColorBlendFactor
.static int
nsrcAlphaBlendFactor
(long struct) Unsafe version ofsrcAlphaBlendFactor()
.static void
nsrcAlphaBlendFactor
(long struct, int value) Unsafe version ofsrcAlphaBlendFactor
.static int
nsrcColorBlendFactor
(long struct) Unsafe version ofsrcColorBlendFactor()
.static void
nsrcColorBlendFactor
(long struct, int value) Unsafe version ofsrcColorBlendFactor
.set
(int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
srcAlphaBlendFactor
(int value) Sets the specified value to thesrcAlphaBlendFactor
field.int
srcColorBlendFactor
(int value) Sets the specified value to thesrcColorBlendFactor
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. -
SRCCOLORBLENDFACTOR
public static final int SRCCOLORBLENDFACTORThe struct member offsets. -
DSTCOLORBLENDFACTOR
public static final int DSTCOLORBLENDFACTORThe struct member offsets. -
COLORBLENDOP
public static final int COLORBLENDOPThe struct member offsets. -
SRCALPHABLENDFACTOR
public static final int SRCALPHABLENDFACTORThe struct member offsets. -
DSTALPHABLENDFACTOR
public static final int DSTALPHABLENDFACTORThe struct member offsets. -
ALPHABLENDOP
public static final int ALPHABLENDOPThe struct member offsets.
-
-
Constructor Details
-
VkColorBlendEquationEXT
Creates aVkColorBlendEquationEXT
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<VkColorBlendEquationEXT>
-
srcColorBlendFactor
public int srcColorBlendFactor()- Returns:
- the value of the
srcColorBlendFactor
field.
-
dstColorBlendFactor
public int dstColorBlendFactor()- Returns:
- the value of the
dstColorBlendFactor
field.
-
colorBlendOp
public int colorBlendOp()- Returns:
- the value of the
colorBlendOp
field.
-
srcAlphaBlendFactor
public int srcAlphaBlendFactor()- Returns:
- the value of the
srcAlphaBlendFactor
field.
-
dstAlphaBlendFactor
public int dstAlphaBlendFactor()- Returns:
- the value of the
dstAlphaBlendFactor
field.
-
alphaBlendOp
public int alphaBlendOp()- Returns:
- the value of the
alphaBlendOp
field.
-
srcColorBlendFactor
Sets the specified value to thesrcColorBlendFactor
field. -
dstColorBlendFactor
Sets the specified value to thedstColorBlendFactor
field. -
colorBlendOp
Sets the specified value to thecolorBlendOp
field. -
srcAlphaBlendFactor
Sets the specified value to thesrcAlphaBlendFactor
field. -
dstAlphaBlendFactor
Sets the specified value to thedstAlphaBlendFactor
field. -
alphaBlendOp
Sets the specified value to thealphaBlendOp
field. -
set
public VkColorBlendEquationEXT set(int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkColorBlendEquationEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkColorBlendEquationEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkColorBlendEquationEXT
instance allocated withBufferUtils
. -
create
Returns a newVkColorBlendEquationEXT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkColorBlendEquationEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkColorBlendEquationEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkColorBlendEquationEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkColorBlendEquationEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkColorBlendEquationEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkColorBlendEquationEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkColorBlendEquationEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkColorBlendEquationEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsrcColorBlendFactor
public static int nsrcColorBlendFactor(long struct) Unsafe version ofsrcColorBlendFactor()
. -
ndstColorBlendFactor
public static int ndstColorBlendFactor(long struct) Unsafe version ofdstColorBlendFactor()
. -
ncolorBlendOp
public static int ncolorBlendOp(long struct) Unsafe version ofcolorBlendOp()
. -
nsrcAlphaBlendFactor
public static int nsrcAlphaBlendFactor(long struct) Unsafe version ofsrcAlphaBlendFactor()
. -
ndstAlphaBlendFactor
public static int ndstAlphaBlendFactor(long struct) Unsafe version ofdstAlphaBlendFactor()
. -
nalphaBlendOp
public static int nalphaBlendOp(long struct) Unsafe version ofalphaBlendOp()
. -
nsrcColorBlendFactor
public static void nsrcColorBlendFactor(long struct, int value) Unsafe version ofsrcColorBlendFactor
. -
ndstColorBlendFactor
public static void ndstColorBlendFactor(long struct, int value) Unsafe version ofdstColorBlendFactor
. -
ncolorBlendOp
public static void ncolorBlendOp(long struct, int value) Unsafe version ofcolorBlendOp
. -
nsrcAlphaBlendFactor
public static void nsrcAlphaBlendFactor(long struct, int value) Unsafe version ofsrcAlphaBlendFactor
. -
ndstAlphaBlendFactor
public static void ndstAlphaBlendFactor(long struct, int value) Unsafe version ofdstAlphaBlendFactor
. -
nalphaBlendOp
public static void nalphaBlendOp(long struct, int value) Unsafe version ofalphaBlendOp
.
-