Class VulkanClearValueDepthStencil
java.lang.Object
com.io7m.jcoronado.api.VulkanClearValueDepthStencil
- All Implemented Interfaces:
VulkanClearValueType,VulkanClearValueType.VulkanClearValueDepthStencilType
public final class VulkanClearValueDepthStencil
extends Object
implements VulkanClearValueType.VulkanClearValueDepthStencilType
A depth/stencil value.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds 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
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanClearValueDepthStencil.static VulkanClearValueDepthStencilCreates an immutable copy of aVulkanClearValueType.VulkanClearValueDepthStencilTypevalue.floatdepth()booleanThis instance is equal to all instances ofVulkanClearValueDepthStencilthat have equal attribute values.inthashCode()Computes a hash code from attributes:depth,stencil.static VulkanClearValueDepthStencilof(float depth, int stencil) Construct a new immutableVulkanClearValueDepthStencilinstance.intstencil()toString()Prints the immutable valueVulkanClearValueDepthStencilwith attribute values.withDepth(float value) Copy the current immutable object by setting a value for thedepthattribute.withStencil(int value) Copy the current immutable object by setting a value for thestencilattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.jcoronado.api.VulkanClearValueType.VulkanClearValueDepthStencilType
type
-
Method Details
-
depth
public float depth()- Specified by:
depthin interfaceVulkanClearValueType.VulkanClearValueDepthStencilType- Returns:
- The depth value
-
stencil
public int stencil()- Specified by:
stencilin interfaceVulkanClearValueType.VulkanClearValueDepthStencilType- Returns:
- The stencil value
-
withDepth
Copy the current immutable object by setting a value for thedepthattribute. 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
thisobject
-
withStencil
Copy the current immutable object by setting a value for thestencilattribute. 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
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanClearValueDepthStencilinstance.- Parameters:
depth- The value for thedepthattributestencil- The value for thestencilattribute- Returns:
- An immutable VulkanClearValueDepthStencil instance
-
copyOf
public static VulkanClearValueDepthStencil copyOf(VulkanClearValueType.VulkanClearValueDepthStencilType instance) Creates an immutable copy of aVulkanClearValueType.VulkanClearValueDepthStencilTypevalue. 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
Creates a builder forVulkanClearValueDepthStencil.VulkanClearValueDepthStencil.builder() .setDepth(float) // requireddepth.setStencil(int) // requiredstencil.build();- Returns:
- A new VulkanClearValueDepthStencil builder
-