Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkPipelineColorBlendAttachmentState

extends Struct<VkPipelineColorBlendAttachmentState>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying a pipeline color blend attachment state.
Valid Usage
Valid Usage (Implicit)
See Also

VkPipelineColorBlendStateCreateInfo

Layout


struct VkPipelineColorBlendAttachmentState {
    VkBool32 blendEnable;
    VkBlendFactor srcColorBlendFactor;
    VkBlendFactor dstColorBlendFactor;
    VkBlendOp colorBlendOp;
    VkBlendFactor srcAlphaBlendFactor;
    VkBlendFactor dstAlphaBlendFactor;
    VkBlendOp alphaBlendOp;
    VkColorComponentFlags colorWriteMask;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ALPHABLENDOP

The struct member offsets.

public static final int
BLENDENABLE

The struct member offsets.

public static final int
COLORBLENDOP

The struct member offsets.

public static final int
COLORWRITEMASK

The struct member offsets.

public static final int
DSTALPHABLENDFACTOR

The struct member offsets.

public static final int
DSTCOLORBLENDFACTOR

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SRCALPHABLENDFACTOR

The struct member offsets.

public static final int
SRCCOLORBLENDFACTOR

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkPipelineColorBlendAttachmentState(ByteBuffer container)

Creates a VkPipelineColorBlendAttachmentState instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
alphaBlendOp()

selects which blend operation is used to calculate the alpha values to write to the color attachment.

public VkPipelineColorBlendAttachmentState
alphaBlendOp(int value)

Sets the specified value to the alphaBlendOp field.

public boolean
blendEnable()

controls whether blending is enabled for the corresponding color attachment.

public VkPipelineColorBlendAttachmentState
blendEnable(boolean value)

Sets the specified value to the blendEnable field.

public static VkPipelineColorBlendAttachmentState
calloc()

Returns a new VkPipelineColorBlendAttachmentState instance allocated with memCalloc.

public static VkPipelineColorBlendAttachmentState.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkPipelineColorBlendAttachmentState.Buffer instance allocated with memCalloc.

public static VkPipelineColorBlendAttachmentState
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPipelineColorBlendAttachmentState instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkPipelineColorBlendAttachmentState.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPipelineColorBlendAttachmentState.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkPipelineColorBlendAttachmentState
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineColorBlendAttachmentState
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineColorBlendAttachmentState.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineColorBlendAttachmentState.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
colorBlendOp()

selects which blend operation is used to calculate the RGB values to write to the color attachment.

public VkPipelineColorBlendAttachmentState
colorBlendOp(int value)

Sets the specified value to the colorBlendOp field.

public int
colorWriteMask()

a bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask.

public VkPipelineColorBlendAttachmentState
colorWriteMask(int value)

Sets the specified value to the colorWriteMask field.

protected VkPipelineColorBlendAttachmentState
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkPipelineColorBlendAttachmentState
create()

Returns a new VkPipelineColorBlendAttachmentState instance allocated with BufferUtils.

public static VkPipelineColorBlendAttachmentState
create(long address)

Returns a new VkPipelineColorBlendAttachmentState instance for the specified memory address.

public static VkPipelineColorBlendAttachmentState.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkPipelineColorBlendAttachmentState.Buffer instance allocated with BufferUtils.

public static VkPipelineColorBlendAttachmentState.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkPipelineColorBlendAttachmentState.Buffer instance at the specified memory.

public static VkPipelineColorBlendAttachmentState
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkPipelineColorBlendAttachmentState.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
dstAlphaBlendFactor()

selects which blend factor is used to determine the destination factor Da.

public VkPipelineColorBlendAttachmentState
dstAlphaBlendFactor(int value)

Sets the specified value to the dstAlphaBlendFactor field.

public int
dstColorBlendFactor()

selects which blend factor is used to determine the destination factors (Dr,Dg,Db).

public VkPipelineColorBlendAttachmentState
dstColorBlendFactor(int value)

Sets the specified value to the dstColorBlendFactor field.

public static VkPipelineColorBlendAttachmentState
malloc()

Returns a new VkPipelineColorBlendAttachmentState instance allocated with memAlloc.

public static VkPipelineColorBlendAttachmentState.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkPipelineColorBlendAttachmentState.Buffer instance allocated with memAlloc.

public static VkPipelineColorBlendAttachmentState
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPipelineColorBlendAttachmentState instance allocated on the specified MemoryStack.

public static VkPipelineColorBlendAttachmentState.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPipelineColorBlendAttachmentState.Buffer instance allocated on the specified MemoryStack.

public static VkPipelineColorBlendAttachmentState
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineColorBlendAttachmentState
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineColorBlendAttachmentState.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPipelineColorBlendAttachmentState.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nalphaBlendOp(long struct)

Unsafe version of alphaBlendOp.

public static void
nalphaBlendOp(long struct, int value)

Unsafe version of alphaBlendOp.

public static int
nblendEnable(long struct)

Unsafe version of blendEnable.

public static void
nblendEnable(long struct, int value)

Unsafe version of blendEnable.

public static int
ncolorBlendOp(long struct)

Unsafe version of colorBlendOp.

public static void
ncolorBlendOp(long struct, int value)

Unsafe version of colorBlendOp.

public static int
ncolorWriteMask(long struct)

Unsafe version of colorWriteMask.

public static void
ncolorWriteMask(long struct, int value)

Unsafe version of colorWriteMask.

public static int
ndstAlphaBlendFactor(long struct)

Unsafe version of dstAlphaBlendFactor.

public static void
ndstAlphaBlendFactor(long struct, int value)

Unsafe version of dstAlphaBlendFactor.

public static int
ndstColorBlendFactor(long struct)

Unsafe version of dstColorBlendFactor.

public static void
ndstColorBlendFactor(long struct, int value)

Unsafe version of dstColorBlendFactor.

public static int
nsrcAlphaBlendFactor(long struct)

Unsafe version of srcAlphaBlendFactor.

public static void
nsrcAlphaBlendFactor(long struct, int value)

Unsafe version of srcAlphaBlendFactor.

public static int
nsrcColorBlendFactor(long struct)

Unsafe version of srcColorBlendFactor.

public static void
nsrcColorBlendFactor(long struct, int value)

Unsafe version of srcColorBlendFactor.

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.

public VkPipelineColorBlendAttachmentState

Returns:

this struct
set
(VkPipelineColorBlendAttachmentState
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
srcAlphaBlendFactor()

selects which blend factor is used to determine the source factor Sa.

public VkPipelineColorBlendAttachmentState
srcAlphaBlendFactor(int value)

Sets the specified value to the srcAlphaBlendFactor field.

public int
srcColorBlendFactor()

selects which blend factor is used to determine the source factors (Sr,Sg,Sb).

public VkPipelineColorBlendAttachmentState
srcColorBlendFactor(int value)

Sets the specified value to the srcColorBlendFactor field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate