Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPipelineColorBlendStateCreateInfo
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineColorBlendStateCreateInfo
-
- All Implemented Interfaces:
VulkanPipelineColorBlendStateCreateInfoType
public final class VulkanPipelineColorBlendStateCreateInfo extends java.lang.Object implements VulkanPipelineColorBlendStateCreateInfoType
Structure specifying parameters of a newly created pipeline color blend state.- See Also:
- "VkPipelineColorBlendStateCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanPipelineColorBlendStateCreateInfo.Builder
Builds instances of typeVulkanPipelineColorBlendStateCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<VulkanPipelineColorBlendAttachmentState>
attachments()
VulkanBlendConstants
blendConstants()
static VulkanPipelineColorBlendStateCreateInfo.Builder
builder()
Creates a builder forVulkanPipelineColorBlendStateCreateInfo
.static VulkanPipelineColorBlendStateCreateInfo
copyOf(VulkanPipelineColorBlendStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineColorBlendStateCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineColorBlendStateCreateInfo
that have equal attribute values.java.util.Set<VulkanPipelineColorBlendStateCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:logicOp
,flags
,attachments
,blendConstants
.java.util.Optional<VulkanLogicOp>
logicOp()
static VulkanPipelineColorBlendStateCreateInfo
of(java.util.Optional<? extends VulkanLogicOp> logicOp, java.lang.Iterable<VulkanPipelineColorBlendStateCreateFlag> flags, java.lang.Iterable<? extends VulkanPipelineColorBlendAttachmentState> attachments, VulkanBlendConstants blendConstants)
Construct a new immutableVulkanPipelineColorBlendStateCreateInfo
instance.static VulkanPipelineColorBlendStateCreateInfo
of(java.util.Optional<VulkanLogicOp> logicOp, java.util.Set<VulkanPipelineColorBlendStateCreateFlag> flags, java.util.List<VulkanPipelineColorBlendAttachmentState> attachments, VulkanBlendConstants blendConstants)
Construct a new immutableVulkanPipelineColorBlendStateCreateInfo
instance.java.lang.String
toString()
Prints the immutable valueVulkanPipelineColorBlendStateCreateInfo
with attribute values.VulkanPipelineColorBlendStateCreateInfo
withAttachments(VulkanPipelineColorBlendAttachmentState... elements)
Copy the current immutable object with elements that replace the content ofattachments
.VulkanPipelineColorBlendStateCreateInfo
withAttachments(java.lang.Iterable<? extends VulkanPipelineColorBlendAttachmentState> elements)
Copy the current immutable object with elements that replace the content ofattachments
.VulkanPipelineColorBlendStateCreateInfo
withBlendConstants(VulkanBlendConstants value)
Copy the current immutable object by setting a value for theblendConstants
attribute.VulkanPipelineColorBlendStateCreateInfo
withFlags(VulkanPipelineColorBlendStateCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineColorBlendStateCreateInfo
withFlags(java.lang.Iterable<VulkanPipelineColorBlendStateCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineColorBlendStateCreateInfo
withLogicOp(VulkanLogicOp value)
Copy the current immutable object by setting a present value for the optionallogicOp
attribute.VulkanPipelineColorBlendStateCreateInfo
withLogicOp(java.util.Optional<? extends VulkanLogicOp> optional)
Copy the current immutable object by setting an optional value for thelogicOp
attribute.
-
-
-
Method Detail
-
logicOp
public java.util.Optional<VulkanLogicOp> logicOp()
- Specified by:
logicOp
in interfaceVulkanPipelineColorBlendStateCreateInfoType
- Returns:
- The logical operation to apply (if any)
-
flags
public java.util.Set<VulkanPipelineColorBlendStateCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanPipelineColorBlendStateCreateInfoType
- Returns:
- The creation flags
-
attachments
public java.util.List<VulkanPipelineColorBlendAttachmentState> attachments()
- Specified by:
attachments
in interfaceVulkanPipelineColorBlendStateCreateInfoType
- Returns:
- The per-target attachment states.
-
blendConstants
public VulkanBlendConstants blendConstants()
- Specified by:
blendConstants
in interfaceVulkanPipelineColorBlendStateCreateInfoType
- Returns:
- The constants used for blending
-
withLogicOp
public final VulkanPipelineColorBlendStateCreateInfo withLogicOp(VulkanLogicOp value)
Copy the current immutable object by setting a present value for the optionallogicOp
attribute.- Parameters:
value
- The value for logicOp- Returns:
- A modified copy of
this
object
-
withLogicOp
public final VulkanPipelineColorBlendStateCreateInfo withLogicOp(java.util.Optional<? extends VulkanLogicOp> optional)
Copy the current immutable object by setting an optional value for thelogicOp
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for logicOp- Returns:
- A modified copy of
this
object
-
withFlags
public final VulkanPipelineColorBlendStateCreateInfo withFlags(VulkanPipelineColorBlendStateCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withFlags
public final VulkanPipelineColorBlendStateCreateInfo withFlags(java.lang.Iterable<VulkanPipelineColorBlendStateCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of flags elements to set- Returns:
- A modified copy of
this
object
-
withAttachments
public final VulkanPipelineColorBlendStateCreateInfo withAttachments(VulkanPipelineColorBlendAttachmentState... elements)
Copy the current immutable object with elements that replace the content ofattachments
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withAttachments
public final VulkanPipelineColorBlendStateCreateInfo withAttachments(java.lang.Iterable<? extends VulkanPipelineColorBlendAttachmentState> elements)
Copy the current immutable object with elements that replace the content ofattachments
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of attachments elements to set- Returns:
- A modified copy of
this
object
-
withBlendConstants
public final VulkanPipelineColorBlendStateCreateInfo withBlendConstants(VulkanBlendConstants value)
Copy the current immutable object by setting a value for theblendConstants
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for blendConstants- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineColorBlendStateCreateInfo
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:logicOp
,flags
,attachments
,blendConstants
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanPipelineColorBlendStateCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanPipelineColorBlendStateCreateInfo of(java.util.Optional<VulkanLogicOp> logicOp, java.util.Set<VulkanPipelineColorBlendStateCreateFlag> flags, java.util.List<VulkanPipelineColorBlendAttachmentState> attachments, VulkanBlendConstants blendConstants)
Construct a new immutableVulkanPipelineColorBlendStateCreateInfo
instance.- Parameters:
logicOp
- The value for thelogicOp
attributeflags
- The value for theflags
attributeattachments
- The value for theattachments
attributeblendConstants
- The value for theblendConstants
attribute- Returns:
- An immutable VulkanPipelineColorBlendStateCreateInfo instance
-
of
public static VulkanPipelineColorBlendStateCreateInfo of(java.util.Optional<? extends VulkanLogicOp> logicOp, java.lang.Iterable<VulkanPipelineColorBlendStateCreateFlag> flags, java.lang.Iterable<? extends VulkanPipelineColorBlendAttachmentState> attachments, VulkanBlendConstants blendConstants)
Construct a new immutableVulkanPipelineColorBlendStateCreateInfo
instance.- Parameters:
logicOp
- The value for thelogicOp
attributeflags
- The value for theflags
attributeattachments
- The value for theattachments
attributeblendConstants
- The value for theblendConstants
attribute- Returns:
- An immutable VulkanPipelineColorBlendStateCreateInfo instance
-
copyOf
public static VulkanPipelineColorBlendStateCreateInfo copyOf(VulkanPipelineColorBlendStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineColorBlendStateCreateInfoType
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable VulkanPipelineColorBlendStateCreateInfo instance
-
builder
public static VulkanPipelineColorBlendStateCreateInfo.Builder builder()
Creates a builder forVulkanPipelineColorBlendStateCreateInfo
.- Returns:
- A new VulkanPipelineColorBlendStateCreateInfo builder
-
-