Class VulkanClearValueColorFloatingPoint
java.lang.Object
com.io7m.jcoronado.api.VulkanClearValueColorFloatingPoint
- All Implemented Interfaces:
VulkanClearValueType, VulkanClearValueType.VulkanClearValueColorFloatingPointType, VulkanClearValueType.VulkanClearValueColorType
public final class VulkanClearValueColorFloatingPoint
extends Object
implements VulkanClearValueType.VulkanClearValueColorFloatingPointType
A color consisting of floating-point components.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanClearValueColorFloatingPoint.Nested classes/interfaces inherited from interface VulkanClearValueType
VulkanClearValueType.VulkanClearValueColorFloatingPointType, VulkanClearValueType.VulkanClearValueColorIntegerSignedType, VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType, VulkanClearValueType.VulkanClearValueColorType, VulkanClearValueType.VulkanClearValueDepthStencilType -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()floatblue()builder()Creates a builder forVulkanClearValueColorFloatingPoint.Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorFloatingPointTypevalue.booleanThis instance is equal to all instances ofVulkanClearValueColorFloatingPointthat have equal attribute values.floatgreen()inthashCode()Computes a hash code from attributes:red,green,blue,alpha.floatred()toString()Prints the immutable valueVulkanClearValueColorFloatingPointwith attribute values.withAlpha(float value) Copy the current immutable object by setting a value for thealphaattribute.withBlue(float value) Copy the current immutable object by setting a value for theblueattribute.withGreen(float value) Copy the current immutable object by setting a value for thegreenattribute.withRed(float value) Copy the current immutable object by setting a value for theredattribute.Methods inherited from interface VulkanClearValueType.VulkanClearValueColorFloatingPointType
asFillBufferIntegerMethods inherited from interface VulkanClearValueType.VulkanClearValueColorType
asFillBufferInteger
-
Method Details
-
red
public float red()- Specified by:
redin interfaceVulkanClearValueType.VulkanClearValueColorFloatingPointType- Returns:
- The red channel
-
green
public float green()- Specified by:
greenin interfaceVulkanClearValueType.VulkanClearValueColorFloatingPointType- Returns:
- The green channel
-
blue
public float blue()- Specified by:
bluein interfaceVulkanClearValueType.VulkanClearValueColorFloatingPointType- Returns:
- The blue channel
-
alpha
public float alpha()- Specified by:
alphain interfaceVulkanClearValueType.VulkanClearValueColorFloatingPointType- Returns:
- The alpha channel
-
withRed
Copy the current immutable object by setting a value for theredattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for red- Returns:
- A modified copy or the
thisobject
-
withGreen
Copy the current immutable object by setting a value for thegreenattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for green- Returns:
- A modified copy or the
thisobject
-
withBlue
Copy the current immutable object by setting a value for theblueattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for blue- Returns:
- A modified copy or the
thisobject
-
withAlpha
Copy the current immutable object by setting a value for thealphaattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for alpha- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
public static VulkanClearValueColorFloatingPoint copyOf(VulkanClearValueType.VulkanClearValueColorFloatingPointType instance) Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorFloatingPointTypevalue. 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 VulkanClearValueColorFloatingPoint instance
-
builder
Creates a builder forVulkanClearValueColorFloatingPoint.VulkanClearValueColorFloatingPoint.builder() .setRed(float) // optional
red.setGreen(float) // optionalgreen.setBlue(float) // optionalblue.setAlpha(float) // optionalalpha.build();- Returns:
- A new VulkanClearValueColorFloatingPoint builder
-