Class VulkanPipelineColorBlendAttachmentState.Builder
- Enclosing class:
VulkanPipelineColorBlendAttachmentState
VulkanPipelineColorBlendAttachmentState.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllColorWriteMask(Iterable<VulkanColorComponentFlag> elements) Adds elements tocolorWriteMaskset.Adds one element tocolorWriteMaskset.addColorWriteMask(VulkanColorComponentFlag... elements) Adds elements tocolorWriteMaskset.build()Builds a newVulkanPipelineColorBlendAttachmentState.Fill a builder with attribute values from the providedVulkanPipelineColorBlendAttachmentStateTypeinstance.setAlphaBlendOp(VulkanBlendOp alphaBlendOp) Initializes the value for thealphaBlendOpattribute.setColorBlendOp(VulkanBlendOp colorBlendOp) Initializes the value for thecolorBlendOpattribute.setColorWriteMask(Iterable<VulkanColorComponentFlag> elements) Sets or replaces all elements forcolorWriteMaskset.setDstAlphaBlendFactor(VulkanBlendFactor dstAlphaBlendFactor) Initializes the value for thedstAlphaBlendFactorattribute.setDstColorBlendFactor(VulkanBlendFactor dstColorBlendFactor) Initializes the value for thedstColorBlendFactorattribute.setEnable(boolean enable) Initializes the value for theenableattribute.setSrcAlphaBlendFactor(VulkanBlendFactor srcAlphaBlendFactor) Initializes the value for thesrcAlphaBlendFactorattribute.setSrcColorBlendFactor(VulkanBlendFactor srcColorBlendFactor) Initializes the value for thesrcColorBlendFactorattribute.
-
Method Details
-
from
public final VulkanPipelineColorBlendAttachmentState.Builder from(VulkanPipelineColorBlendAttachmentStateType instance) Fill a builder with attribute values from the providedVulkanPipelineColorBlendAttachmentStateTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setEnable
Initializes the value for theenableattribute.- Parameters:
enable- The value for enable- Returns:
thisbuilder for use in a chained invocation
-
setSrcColorBlendFactor
public final VulkanPipelineColorBlendAttachmentState.Builder setSrcColorBlendFactor(VulkanBlendFactor srcColorBlendFactor) Initializes the value for thesrcColorBlendFactorattribute.If not set, this attribute will have a default value as returned by the initializer of
srcColorBlendFactor.- Parameters:
srcColorBlendFactor- The value for srcColorBlendFactor- Returns:
thisbuilder for use in a chained invocation
-
setDstColorBlendFactor
public final VulkanPipelineColorBlendAttachmentState.Builder setDstColorBlendFactor(VulkanBlendFactor dstColorBlendFactor) Initializes the value for thedstColorBlendFactorattribute.If not set, this attribute will have a default value as returned by the initializer of
dstColorBlendFactor.- Parameters:
dstColorBlendFactor- The value for dstColorBlendFactor- Returns:
thisbuilder for use in a chained invocation
-
setColorBlendOp
public final VulkanPipelineColorBlendAttachmentState.Builder setColorBlendOp(VulkanBlendOp colorBlendOp) Initializes the value for thecolorBlendOpattribute.If not set, this attribute will have a default value as returned by the initializer of
colorBlendOp.- Parameters:
colorBlendOp- The value for colorBlendOp- Returns:
thisbuilder for use in a chained invocation
-
setSrcAlphaBlendFactor
public final VulkanPipelineColorBlendAttachmentState.Builder setSrcAlphaBlendFactor(VulkanBlendFactor srcAlphaBlendFactor) Initializes the value for thesrcAlphaBlendFactorattribute.If not set, this attribute will have a default value as returned by the initializer of
srcAlphaBlendFactor.- Parameters:
srcAlphaBlendFactor- The value for srcAlphaBlendFactor- Returns:
thisbuilder for use in a chained invocation
-
setDstAlphaBlendFactor
public final VulkanPipelineColorBlendAttachmentState.Builder setDstAlphaBlendFactor(VulkanBlendFactor dstAlphaBlendFactor) Initializes the value for thedstAlphaBlendFactorattribute.If not set, this attribute will have a default value as returned by the initializer of
dstAlphaBlendFactor.- Parameters:
dstAlphaBlendFactor- The value for dstAlphaBlendFactor- Returns:
thisbuilder for use in a chained invocation
-
setAlphaBlendOp
public final VulkanPipelineColorBlendAttachmentState.Builder setAlphaBlendOp(VulkanBlendOp alphaBlendOp) Initializes the value for thealphaBlendOpattribute.If not set, this attribute will have a default value as returned by the initializer of
alphaBlendOp.- Parameters:
alphaBlendOp- The value for alphaBlendOp- Returns:
thisbuilder for use in a chained invocation
-
addColorWriteMask
public final VulkanPipelineColorBlendAttachmentState.Builder addColorWriteMask(VulkanColorComponentFlag element) Adds one element tocolorWriteMaskset.- Parameters:
element- A colorWriteMask element- Returns:
thisbuilder for use in a chained invocation
-
addColorWriteMask
public final VulkanPipelineColorBlendAttachmentState.Builder addColorWriteMask(VulkanColorComponentFlag... elements) Adds elements tocolorWriteMaskset.- Parameters:
elements- An array of colorWriteMask elements- Returns:
thisbuilder for use in a chained invocation
-
setColorWriteMask
public final VulkanPipelineColorBlendAttachmentState.Builder setColorWriteMask(Iterable<VulkanColorComponentFlag> elements) Sets or replaces all elements forcolorWriteMaskset.- Parameters:
elements- An iterable of colorWriteMask elements- Returns:
thisbuilder for use in a chained invocation
-
addAllColorWriteMask
public final VulkanPipelineColorBlendAttachmentState.Builder addAllColorWriteMask(Iterable<VulkanColorComponentFlag> elements) Adds elements tocolorWriteMaskset.- Parameters:
elements- An iterable of colorWriteMask elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanPipelineColorBlendAttachmentState.- Returns:
- An immutable instance of VulkanPipelineColorBlendAttachmentState
- Throws:
IllegalStateException- if any required attributes are missing
-