Class VulkanClearValueColorIntegerUnsigned
java.lang.Object
com.io7m.jcoronado.api.VulkanClearValueColorIntegerUnsigned
- All Implemented Interfaces:
VulkanClearValueType, VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType, VulkanClearValueType.VulkanClearValueColorType
public final class VulkanClearValueColorIntegerUnsigned
extends Object
implements VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
A color consisting of unsigned integer components.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanClearValueColorIntegerUnsigned.Nested classes/interfaces inherited from interface VulkanClearValueType
VulkanClearValueType.VulkanClearValueColorFloatingPointType, VulkanClearValueType.VulkanClearValueColorIntegerSignedType, VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType, VulkanClearValueType.VulkanClearValueColorType, VulkanClearValueType.VulkanClearValueDepthStencilType -
Method Summary
Modifier and TypeMethodDescriptionintalpha()intblue()builder()Creates a builder forVulkanClearValueColorIntegerUnsigned.Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorIntegerUnsignedTypevalue.booleanThis instance is equal to all instances ofVulkanClearValueColorIntegerUnsignedthat have equal attribute values.intgreen()inthashCode()Computes a hash code from attributes:red,green,blue,alpha.intred()toString()Prints the immutable valueVulkanClearValueColorIntegerUnsignedwith attribute values.withAlpha(int value) Copy the current immutable object by setting a value for thealphaattribute.withBlue(int value) Copy the current immutable object by setting a value for theblueattribute.withGreen(int value) Copy the current immutable object by setting a value for thegreenattribute.withRed(int value) Copy the current immutable object by setting a value for theredattribute.Methods inherited from interface VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType
asFillBufferIntegerMethods inherited from interface VulkanClearValueType.VulkanClearValueColorType
asFillBufferInteger
-
Method Details
-
red
public int red()- Specified by:
redin interfaceVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType- Returns:
- The red channel
-
green
public int green()- Specified by:
greenin interfaceVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType- Returns:
- The green channel
-
blue
public int blue()- Specified by:
bluein interfaceVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType- Returns:
- The blue channel
-
alpha
public int alpha()- Specified by:
alphain interfaceVulkanClearValueType.VulkanClearValueColorIntegerUnsignedType- Returns:
- The alpha channel
-
withRed
Copy the current immutable object by setting a value for theredattribute. A value equality check is 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 equality check is 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 equality check is 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 equality check is 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 VulkanClearValueColorIntegerUnsigned copyOf(VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType instance) Creates an immutable copy of aVulkanClearValueType.VulkanClearValueColorIntegerUnsignedTypevalue. 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 VulkanClearValueColorIntegerUnsigned instance
-
builder
Creates a builder forVulkanClearValueColorIntegerUnsigned.VulkanClearValueColorIntegerUnsigned.builder() .setRed(int) // optional
red.setGreen(int) // optionalgreen.setBlue(int) // optionalblue.setAlpha(int) // optionalalpha.build();- Returns:
- A new VulkanClearValueColorIntegerUnsigned builder
-