Package org.lwjgl.vulkan
Class VkPipelineColorBlendAttachmentState
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPipelineColorBlendAttachmentState>
org.lwjgl.vulkan.VkPipelineColorBlendAttachmentState
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkPipelineColorBlendAttachmentState
extends Struct<VkPipelineColorBlendAttachmentState>
implements NativeResource
struct VkPipelineColorBlendAttachmentState {
VkBool32 blendEnable;
VkBlendFactor srcColorBlendFactor;
VkBlendFactor dstColorBlendFactor;
VkBlendOp colorBlendOp;
VkBlendFactor srcAlphaBlendFactor;
VkBlendFactor dstAlphaBlendFactor;
VkBlendOp alphaBlendOp;
VkColorComponentFlags colorWriteMask;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkPipelineColorBlendAttachmentStatestructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineColorBlendAttachmentState(ByteBuffer container) Creates aVkPipelineColorBlendAttachmentStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintalphaBlendOp(int value) Sets the specified value to thealphaBlendOpfield.booleanblendEnable(boolean value) Sets the specified value to theblendEnablefield.calloc()Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.Deprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.callocStack(MemoryStack stack) Deprecated.intcolorBlendOp(int value) Sets the specified value to thecolorBlendOpfield.intcolorWriteMask(int value) Sets the specified value to thecolorWriteMaskfield.create()Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withBufferUtils.create(int capacity) Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkPipelineColorBlendAttachmentStateinstance for the specified memory address.create(long address, int capacity) Create aVkPipelineColorBlendAttachmentState.Bufferinstance at the specified memory.static @Nullable VkPipelineColorBlendAttachmentStatecreateSafe(long address) static @Nullable VkPipelineColorBlendAttachmentState.BuffercreateSafe(long address, int capacity) intdstAlphaBlendFactor(int value) Sets the specified value to thedstAlphaBlendFactorfield.intdstColorBlendFactor(int value) Sets the specified value to thedstColorBlendFactorfield.malloc()Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the specifiedMemoryStack.Deprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.mallocStack(MemoryStack stack) Deprecated.static intnalphaBlendOp(long struct) Unsafe version ofalphaBlendOp().static voidnalphaBlendOp(long struct, int value) Unsafe version ofalphaBlendOp.static intnblendEnable(long struct) Unsafe version ofblendEnable().static voidnblendEnable(long struct, int value) Unsafe version ofblendEnable.static intncolorBlendOp(long struct) Unsafe version ofcolorBlendOp().static voidncolorBlendOp(long struct, int value) Unsafe version ofcolorBlendOp.static intncolorWriteMask(long struct) Unsafe version ofcolorWriteMask().static voidncolorWriteMask(long struct, int value) Unsafe version ofcolorWriteMask.static intndstAlphaBlendFactor(long struct) Unsafe version ofdstAlphaBlendFactor().static voidndstAlphaBlendFactor(long struct, int value) Unsafe version ofdstAlphaBlendFactor.static intndstColorBlendFactor(long struct) Unsafe version ofdstColorBlendFactor().static voidndstColorBlendFactor(long struct, int value) Unsafe version ofdstColorBlendFactor.static intnsrcAlphaBlendFactor(long struct) Unsafe version ofsrcAlphaBlendFactor().static voidnsrcAlphaBlendFactor(long struct, int value) Unsafe version ofsrcAlphaBlendFactor.static intnsrcColorBlendFactor(long struct) Unsafe version ofsrcColorBlendFactor().static voidnsrcColorBlendFactor(long struct, int value) Unsafe version ofsrcColorBlendFactor.set(boolean blendEnable, int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp, int colorWriteMask) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsrcAlphaBlendFactor(int value) Sets the specified value to thesrcAlphaBlendFactorfield.intsrcColorBlendFactor(int value) Sets the specified value to thesrcColorBlendFactorfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
BLENDENABLE
public static final int BLENDENABLEThe struct member offsets. -
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. -
COLORWRITEMASK
public static final int COLORWRITEMASKThe struct member offsets.
-
-
Constructor Details
-
VkPipelineColorBlendAttachmentState
Creates aVkPipelineColorBlendAttachmentStateinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkPipelineColorBlendAttachmentState>
-
blendEnable
public boolean blendEnable()- Returns:
- the value of the
blendEnablefield.
-
srcColorBlendFactor
public int srcColorBlendFactor()- Returns:
- the value of the
srcColorBlendFactorfield.
-
dstColorBlendFactor
public int dstColorBlendFactor()- Returns:
- the value of the
dstColorBlendFactorfield.
-
colorBlendOp
public int colorBlendOp()- Returns:
- the value of the
colorBlendOpfield.
-
srcAlphaBlendFactor
public int srcAlphaBlendFactor()- Returns:
- the value of the
srcAlphaBlendFactorfield.
-
dstAlphaBlendFactor
public int dstAlphaBlendFactor()- Returns:
- the value of the
dstAlphaBlendFactorfield.
-
alphaBlendOp
public int alphaBlendOp()- Returns:
- the value of the
alphaBlendOpfield.
-
colorWriteMask
public int colorWriteMask()- Returns:
- the value of the
colorWriteMaskfield.
-
blendEnable
Sets the specified value to theblendEnablefield. -
srcColorBlendFactor
Sets the specified value to thesrcColorBlendFactorfield. -
dstColorBlendFactor
Sets the specified value to thedstColorBlendFactorfield. -
colorBlendOp
Sets the specified value to thecolorBlendOpfield. -
srcAlphaBlendFactor
Sets the specified value to thesrcAlphaBlendFactorfield. -
dstAlphaBlendFactor
Sets the specified value to thedstAlphaBlendFactorfield. -
alphaBlendOp
Sets the specified value to thealphaBlendOpfield. -
colorWriteMask
Sets the specified value to thecolorWriteMaskfield. -
set
public VkPipelineColorBlendAttachmentState set(boolean blendEnable, int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp, int colorWriteMask) 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 newVkPipelineColorBlendAttachmentStateinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withBufferUtils. -
create
Returns a newVkPipelineColorBlendAttachmentStateinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPipelineColorBlendAttachmentState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkPipelineColorBlendAttachmentState.Buffer createSafe(long address, int capacity) -
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 public static VkPipelineColorBlendAttachmentState.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VkPipelineColorBlendAttachmentState.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nblendEnable
public static int nblendEnable(long struct) Unsafe version ofblendEnable(). -
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(). -
ncolorWriteMask
public static int ncolorWriteMask(long struct) Unsafe version ofcolorWriteMask(). -
nblendEnable
public static void nblendEnable(long struct, int value) Unsafe version ofblendEnable. -
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. -
ncolorWriteMask
public static void ncolorWriteMask(long struct, int value) Unsafe version ofcolorWriteMask.
-