- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanClearValueDepthStencil
-
- All Implemented Interfaces:
VulkanClearValueType
,VulkanClearValueType.VulkanClearValueDepthStencilType
public final class VulkanClearValueDepthStencil extends java.lang.Object implements VulkanClearValueType.VulkanClearValueDepthStencilType
A depth/stencil value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanClearValueDepthStencil.Builder
Builds instances of typeVulkanClearValueDepthStencil
.-
Nested classes/interfaces inherited from interface com.io7m.jcoronado.api.VulkanClearValueType
VulkanClearValueType.Type, VulkanClearValueType.VulkanClearValueColorFloatingPointType, VulkanClearValueType.VulkanClearValueColorIntegerSignedType, VulkanClearValueType.VulkanClearValueColorIntegerUnsignedType, VulkanClearValueType.VulkanClearValueColorType, VulkanClearValueType.VulkanClearValueDepthStencilType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanClearValueDepthStencil.Builder
builder()
Creates a builder forVulkanClearValueDepthStencil
.static VulkanClearValueDepthStencil
copyOf(VulkanClearValueType.VulkanClearValueDepthStencilType instance)
Creates an immutable copy of aVulkanClearValueType.VulkanClearValueDepthStencilType
value.float
depth()
boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanClearValueDepthStencil
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:depth
,stencil
.static VulkanClearValueDepthStencil
of(float depth, int stencil)
Construct a new immutableVulkanClearValueDepthStencil
instance.int
stencil()
java.lang.String
toString()
Prints the immutable valueVulkanClearValueDepthStencil
with attribute values.VulkanClearValueDepthStencil
withDepth(float value)
Copy the current immutable object by setting a value for thedepth
attribute.VulkanClearValueDepthStencil
withStencil(int value)
Copy the current immutable object by setting a value for thestencil
attribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanClearValueType.VulkanClearValueDepthStencilType
type
-
-
-
-
Method Detail
-
depth
public float depth()
- Specified by:
depth
in interfaceVulkanClearValueType.VulkanClearValueDepthStencilType
- Returns:
- The depth value
-
stencil
public int stencil()
- Specified by:
stencil
in interfaceVulkanClearValueType.VulkanClearValueDepthStencilType
- Returns:
- The stencil value
-
withDepth
public final VulkanClearValueDepthStencil withDepth(float value)
Copy the current immutable object by setting a value for thedepth
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for depth- Returns:
- A modified copy of the
this
object
-
withStencil
public final VulkanClearValueDepthStencil withStencil(int value)
Copy the current immutable object by setting a value for thestencil
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for stencil- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanClearValueDepthStencil
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:depth
,stencil
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanClearValueDepthStencil
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanClearValueDepthStencil of(float depth, int stencil)
Construct a new immutableVulkanClearValueDepthStencil
instance.- Parameters:
depth
- The value for thedepth
attributestencil
- The value for thestencil
attribute- Returns:
- An immutable VulkanClearValueDepthStencil instance
-
copyOf
public static VulkanClearValueDepthStencil copyOf(VulkanClearValueType.VulkanClearValueDepthStencilType instance)
Creates an immutable copy of aVulkanClearValueType.VulkanClearValueDepthStencilType
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 VulkanClearValueDepthStencil instance
-
builder
public static VulkanClearValueDepthStencil.Builder builder()
Creates a builder forVulkanClearValueDepthStencil
.- Returns:
- A new VulkanClearValueDepthStencil builder
-
-