Class VulkanBlendConstants
java.lang.Object
com.io7m.jcoronado.api.VulkanBlendConstants
- All Implemented Interfaces:
VulkanBlendConstantsType
The R, G, B, and A components of the blend constant that are used in blending.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanBlendConstants. -
Field Summary
Fields inherited from interface VulkanBlendConstantsType
ZERO -
Method Summary
Modifier and TypeMethodDescriptionfloata()floatb()static VulkanBlendConstants.Builderbuilder()Creates a builder forVulkanBlendConstants.static VulkanBlendConstantscopyOf(VulkanBlendConstantsType instance) Creates an immutable copy of aVulkanBlendConstantsTypevalue.booleanThis instance is equal to all instances ofVulkanBlendConstantsthat have equal attribute values.floatg()inthashCode()Computes a hash code from attributes:r,g,b,a.floatr()toString()Prints the immutable valueVulkanBlendConstantswith attribute values.final VulkanBlendConstantswithA(float value) Copy the current immutable object by setting a value for theaattribute.final VulkanBlendConstantswithB(float value) Copy the current immutable object by setting a value for thebattribute.final VulkanBlendConstantswithG(float value) Copy the current immutable object by setting a value for thegattribute.final VulkanBlendConstantswithR(float value) Copy the current immutable object by setting a value for therattribute.
-
Method Details
-
r
public float r()- Specified by:
rin interfaceVulkanBlendConstantsType- Returns:
- The red component
-
g
public float g()- Specified by:
gin interfaceVulkanBlendConstantsType- Returns:
- The green component
-
b
public float b()- Specified by:
bin interfaceVulkanBlendConstantsType- Returns:
- The blue component
-
a
public float a()- Specified by:
ain interfaceVulkanBlendConstantsType- Returns:
- The alpha component
-
withR
Copy the current immutable object by setting a value for therattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r- Returns:
- A modified copy or the
thisobject
-
withG
Copy the current immutable object by setting a value for thegattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for g- Returns:
- A modified copy or the
thisobject
-
withB
Copy the current immutable object by setting a value for thebattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for b- Returns:
- A modified copy or the
thisobject
-
withA
Copy the current immutable object by setting a value for theaattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for a- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanBlendConstantsTypevalue. 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 VulkanBlendConstants instance
-
builder
Creates a builder forVulkanBlendConstants.VulkanBlendConstants.builder() .setR(float) // optional
r.setG(float) // optionalg.setB(float) // optionalb.setA(float) // optionala.build();- Returns:
- A new VulkanBlendConstants builder
-