Class VulkanPipelineColorBlendStateCreateInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanPipelineColorBlendStateCreateInfo.Builder
- Enclosing class:
VulkanPipelineColorBlendStateCreateInfo
Builds instances of type
VulkanPipelineColorBlendStateCreateInfo.
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 TypeMethodDescriptionaddAllAttachments(Iterable<? extends VulkanPipelineColorBlendAttachmentState> elements) Adds elements toattachmentslist.Adds elements toflagsset.Adds one element toattachmentslist.addAttachments(VulkanPipelineColorBlendAttachmentState... elements) Adds elements toattachmentslist.Adds one element toflagsset.addFlags(VulkanPipelineColorBlendStateCreateFlag... elements) Adds elements toflagsset.build()Builds a newVulkanPipelineColorBlendStateCreateInfo.Fill a builder with attribute values from the providedVulkanPipelineColorBlendStateCreateInfoTypeinstance.setAttachments(Iterable<? extends VulkanPipelineColorBlendAttachmentState> elements) Sets or replaces all elements forattachmentslist.setBlendConstants(VulkanBlendConstants blendConstants) Initializes the value for theblendConstantsattribute.Sets or replaces all elements forflagsset.setLogicOp(VulkanLogicOp logicOp) Initializes the optional valuelogicOpto logicOp.setLogicOp(Optional<? extends VulkanLogicOp> logicOp) Initializes the optional valuelogicOpto logicOp.
-
Method Details
-
from
public final VulkanPipelineColorBlendStateCreateInfo.Builder from(VulkanPipelineColorBlendStateCreateInfoType instance) Fill a builder with attribute values from the providedVulkanPipelineColorBlendStateCreateInfoTypeinstance. 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
-
setLogicOp
Initializes the optional valuelogicOpto logicOp.- Parameters:
logicOp- The value for logicOp- Returns:
thisbuilder for chained invocation
-
setLogicOp
public final VulkanPipelineColorBlendStateCreateInfo.Builder setLogicOp(Optional<? extends VulkanLogicOp> logicOp) Initializes the optional valuelogicOpto logicOp.- Parameters:
logicOp- The value for logicOp- Returns:
thisbuilder for use in a chained invocation
-
addFlags
public final VulkanPipelineColorBlendStateCreateInfo.Builder addFlags(VulkanPipelineColorBlendStateCreateFlag element) Adds one element toflagsset.- Parameters:
element- A flags element- Returns:
thisbuilder for use in a chained invocation
-
addFlags
public final VulkanPipelineColorBlendStateCreateInfo.Builder addFlags(VulkanPipelineColorBlendStateCreateFlag... elements) Adds elements toflagsset.- Parameters:
elements- An array of flags elements- Returns:
thisbuilder for use in a chained invocation
-
setFlags
public final VulkanPipelineColorBlendStateCreateInfo.Builder setFlags(Iterable<VulkanPipelineColorBlendStateCreateFlag> elements) Sets or replaces all elements forflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFlags
public final VulkanPipelineColorBlendStateCreateInfo.Builder addAllFlags(Iterable<VulkanPipelineColorBlendStateCreateFlag> elements) Adds elements toflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
addAttachments
public final VulkanPipelineColorBlendStateCreateInfo.Builder addAttachments(VulkanPipelineColorBlendAttachmentState element) Adds one element toattachmentslist.- Parameters:
element- A attachments element- Returns:
thisbuilder for use in a chained invocation
-
addAttachments
public final VulkanPipelineColorBlendStateCreateInfo.Builder addAttachments(VulkanPipelineColorBlendAttachmentState... elements) Adds elements toattachmentslist.- Parameters:
elements- An array of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
setAttachments
public final VulkanPipelineColorBlendStateCreateInfo.Builder setAttachments(Iterable<? extends VulkanPipelineColorBlendAttachmentState> elements) Sets or replaces all elements forattachmentslist.- Parameters:
elements- An iterable of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
addAllAttachments
public final VulkanPipelineColorBlendStateCreateInfo.Builder addAllAttachments(Iterable<? extends VulkanPipelineColorBlendAttachmentState> elements) Adds elements toattachmentslist.- Parameters:
elements- An iterable of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
setBlendConstants
public final VulkanPipelineColorBlendStateCreateInfo.Builder setBlendConstants(VulkanBlendConstants blendConstants) Initializes the value for theblendConstantsattribute.If not set, this attribute will have a default value as returned by the initializer of
blendConstants.- Parameters:
blendConstants- The value for blendConstants- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanPipelineColorBlendStateCreateInfo.- Returns:
- An immutable instance of VulkanPipelineColorBlendStateCreateInfo
- Throws:
IllegalStateException- if any required attributes are missing
-