Package org.lwjgl.vulkan
Class VkPipelineColorBlendAttachmentState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineColorBlendAttachmentState
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkPipelineColorBlendAttachmentState extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about per-target blending state as part of graphics pipeline creation.
Valid Usage
srcColorBlendFactormust be a validVkBlendFactorvaluedstColorBlendFactormust be a validVkBlendFactorvaluecolorBlendOpmust be a validVkBlendOpvaluesrcAlphaBlendFactormust be a validVkBlendFactorvaluedstAlphaBlendFactormust be a validVkBlendFactorvaluealphaBlendOpmust be a validVkBlendOpvaluecolorWriteMaskmust be a valid combination ofVkColorComponentFlagBitsvalues- If the dual source blending feature is not enabled,
srcColorBlendFactormust not beBLEND_FACTOR_SRC1_COLOR,BLEND_FACTOR_ONE_MINUS_SRC1_COLOR,BLEND_FACTOR_SRC1_ALPHA, orBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA - If the dual source blending feature is not enabled,
dstColorBlendFactormust not beBLEND_FACTOR_SRC1_COLOR,BLEND_FACTOR_ONE_MINUS_SRC1_COLOR,BLEND_FACTOR_SRC1_ALPHA, orBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA - If the dual source blending feature is not enabled,
srcAlphaBlendFactormust not beBLEND_FACTOR_SRC1_COLOR,BLEND_FACTOR_ONE_MINUS_SRC1_COLOR,BLEND_FACTOR_SRC1_ALPHA, orBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA - If the dual source blending feature is not enabled,
dstAlphaBlendFactormust not beBLEND_FACTOR_SRC1_COLOR,BLEND_FACTOR_ONE_MINUS_SRC1_COLOR,BLEND_FACTOR_SRC1_ALPHA, orBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA
Member documentation
blendEnable– controls whether blending is enabled for the corresponding color attachmentsrcColorBlendFactor– selects which blend factor is used to determine the source factors Sr,Sg,Sb. One of:dstColorBlendFactor– selects which blend factor is used to determine the destination factors Dr,Dg,DbcolorBlendOp– selects which blend operation is used to calculate the RGB values to write to the color attachment. One of:BLEND_OP_ADDBLEND_OP_MAXBLEND_OP_MINBLEND_OP_REVERSE_SUBTRACTBLEND_OP_SUBTRACTsrcAlphaBlendFactor– selects which blend factor is used to determine the source factor SadstAlphaBlendFactor– selects which blend factor is used to determine the destination factor DaalphaBlendOp– selects which blend operation is use to calculate the alpha values to write to the color attachmentcolorWriteMask– a bitmask selecting which of the R, G, B, and/or A components are enabled for writing. One or more of:COLOR_COMPONENT_A_BITCOLOR_COMPONENT_B_BITCOLOR_COMPONENT_G_BITCOLOR_COMPONENT_R_BIT
Layout
struct VkPipelineColorBlendAttachmentState { VkBool32 blendEnable; VkBlendFactor srcColorBlendFactor; VkBlendFactor dstColorBlendFactor; VkBlendOp colorBlendOp; VkBlendFactor srcAlphaBlendFactor; VkBlendFactor dstAlphaBlendFactor; VkBlendOp alphaBlendOp; VkColorComponentFlags colorWriteMask; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkPipelineColorBlendAttachmentState.BufferAn array ofVkPipelineColorBlendAttachmentStatestructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkPipelineColorBlendAttachmentState(java.nio.ByteBuffer container)Creates aVkPipelineColorBlendAttachmentStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intalphaBlendOp()Returns the value of thealphaBlendOpfield.VkPipelineColorBlendAttachmentStatealphaBlendOp(int value)Sets the specified value to thealphaBlendOpfield.intblendEnable()Returns the value of theblendEnablefield.VkPipelineColorBlendAttachmentStateblendEnable(int value)Sets the specified value to theblendEnablefield.static VkPipelineColorBlendAttachmentStatecalloc()Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withmemCalloc.static VkPipelineColorBlendAttachmentState.Buffercalloc(int capacity)Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withmemCalloc.static VkPipelineColorBlendAttachmentStatecallocStack()Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendAttachmentState.BuffercallocStack(int capacity)Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendAttachmentState.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendAttachmentStatecallocStack(MemoryStack stack)Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorBlendOp()Returns the value of thecolorBlendOpfield.VkPipelineColorBlendAttachmentStatecolorBlendOp(int value)Sets the specified value to thecolorBlendOpfield.intcolorWriteMask()Returns the value of thecolorWriteMaskfield.VkPipelineColorBlendAttachmentStatecolorWriteMask(int value)Sets the specified value to thecolorWriteMaskfield.static VkPipelineColorBlendAttachmentStatecreate()Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withBufferUtils.static VkPipelineColorBlendAttachmentState.Buffercreate(int capacity)Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withBufferUtils.static VkPipelineColorBlendAttachmentStatecreate(long address)Returns a newVkPipelineColorBlendAttachmentStateinstance for the specified memory address ornullif the address isNULL.static VkPipelineColorBlendAttachmentState.Buffercreate(long address, int capacity)Create aVkPipelineColorBlendAttachmentState.Bufferinstance at the specified memory.intdstAlphaBlendFactor()Returns the value of thedstAlphaBlendFactorfield.VkPipelineColorBlendAttachmentStatedstAlphaBlendFactor(int value)Sets the specified value to thedstAlphaBlendFactorfield.intdstColorBlendFactor()Returns the value of thedstColorBlendFactorfield.VkPipelineColorBlendAttachmentStatedstColorBlendFactor(int value)Sets the specified value to thedstColorBlendFactorfield.static VkPipelineColorBlendAttachmentStatemalloc()Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withmemAlloc.static VkPipelineColorBlendAttachmentState.Buffermalloc(int capacity)Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withmemAlloc.static VkPipelineColorBlendAttachmentStatemallocStack()Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the thread-localMemoryStack.static VkPipelineColorBlendAttachmentState.BuffermallocStack(int capacity)Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineColorBlendAttachmentState.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineColorBlendAttachmentStatemallocStack(MemoryStack stack)Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the specifiedMemoryStack.VkPipelineColorBlendAttachmentStatenset(long struct)Unsafe version ofset.VkPipelineColorBlendAttachmentStateset(int blendEnable, int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp, int colorWriteMask)Initializes this struct with the specified values.VkPipelineColorBlendAttachmentStateset(VkPipelineColorBlendAttachmentState src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsrcAlphaBlendFactor()Returns the value of thesrcAlphaBlendFactorfield.VkPipelineColorBlendAttachmentStatesrcAlphaBlendFactor(int value)Sets the specified value to thesrcAlphaBlendFactorfield.intsrcColorBlendFactor()Returns the value of thesrcColorBlendFactorfield.VkPipelineColorBlendAttachmentStatesrcColorBlendFactor(int value)Sets the specified value to thesrcColorBlendFactorfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkPipelineColorBlendAttachmentState
public VkPipelineColorBlendAttachmentState(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
blendEnable
public int blendEnable()
Returns the value of theblendEnablefield.
-
srcColorBlendFactor
public int srcColorBlendFactor()
Returns the value of thesrcColorBlendFactorfield.
-
dstColorBlendFactor
public int dstColorBlendFactor()
Returns the value of thedstColorBlendFactorfield.
-
colorBlendOp
public int colorBlendOp()
Returns the value of thecolorBlendOpfield.
-
srcAlphaBlendFactor
public int srcAlphaBlendFactor()
Returns the value of thesrcAlphaBlendFactorfield.
-
dstAlphaBlendFactor
public int dstAlphaBlendFactor()
Returns the value of thedstAlphaBlendFactorfield.
-
alphaBlendOp
public int alphaBlendOp()
Returns the value of thealphaBlendOpfield.
-
colorWriteMask
public int colorWriteMask()
Returns the value of thecolorWriteMaskfield.
-
blendEnable
public VkPipelineColorBlendAttachmentState blendEnable(int value)
Sets the specified value to theblendEnablefield.
-
srcColorBlendFactor
public VkPipelineColorBlendAttachmentState srcColorBlendFactor(int value)
Sets the specified value to thesrcColorBlendFactorfield.
-
dstColorBlendFactor
public VkPipelineColorBlendAttachmentState dstColorBlendFactor(int value)
Sets the specified value to thedstColorBlendFactorfield.
-
colorBlendOp
public VkPipelineColorBlendAttachmentState colorBlendOp(int value)
Sets the specified value to thecolorBlendOpfield.
-
srcAlphaBlendFactor
public VkPipelineColorBlendAttachmentState srcAlphaBlendFactor(int value)
Sets the specified value to thesrcAlphaBlendFactorfield.
-
dstAlphaBlendFactor
public VkPipelineColorBlendAttachmentState dstAlphaBlendFactor(int value)
Sets the specified value to thedstAlphaBlendFactorfield.
-
alphaBlendOp
public VkPipelineColorBlendAttachmentState alphaBlendOp(int value)
Sets the specified value to thealphaBlendOpfield.
-
colorWriteMask
public VkPipelineColorBlendAttachmentState colorWriteMask(int value)
Sets the specified value to thecolorWriteMaskfield.
-
set
public VkPipelineColorBlendAttachmentState set(int blendEnable, int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp, int colorWriteMask)
Initializes this struct with the specified values.
-
nset
public VkPipelineColorBlendAttachmentState nset(long struct)
Unsafe version ofset.
-
set
public VkPipelineColorBlendAttachmentState set(VkPipelineColorBlendAttachmentState src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineColorBlendAttachmentState malloc()
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineColorBlendAttachmentState calloc()
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineColorBlendAttachmentState create()
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated withBufferUtils.
-
create
public static VkPipelineColorBlendAttachmentState create(long address)
Returns a newVkPipelineColorBlendAttachmentStateinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkPipelineColorBlendAttachmentState.Buffer malloc(int capacity)
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineColorBlendAttachmentState.Buffer calloc(int capacity)
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineColorBlendAttachmentState.Buffer create(int capacity)
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineColorBlendAttachmentState.Buffer create(long address, int capacity)
Create aVkPipelineColorBlendAttachmentState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkPipelineColorBlendAttachmentState mallocStack()
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineColorBlendAttachmentState callocStack()
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineColorBlendAttachmentState mallocStack(MemoryStack stack)
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineColorBlendAttachmentState callocStack(MemoryStack stack)
Returns a newVkPipelineColorBlendAttachmentStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPipelineColorBlendAttachmentState.Buffer mallocStack(int capacity)
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineColorBlendAttachmentState.Buffer callocStack(int capacity)
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineColorBlendAttachmentState.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPipelineColorBlendAttachmentState.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineColorBlendAttachmentState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-