Class VulkanStencilOpState
java.lang.Object
com.io7m.jcoronado.api.VulkanStencilOpState
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanStencilOpState. -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanStencilOpState.Builderbuilder()Creates a builder forVulkanStencilOpState.intstatic VulkanStencilOpStatecopyOf(VulkanStencilOpStateType instance) Creates an immutable copy of aVulkanStencilOpStateTypevalue.booleanThis instance is equal to all instances ofVulkanStencilOpStatethat have equal attribute values.failOp()inthashCode()Computes a hash code from attributes:failOp,passOp,depthFailOp,compareOp,compareMask,writeMask,reference.static VulkanStencilOpStateof(VulkanStencilOp failOp, VulkanStencilOp passOp, VulkanStencilOp depthFailOp, VulkanCompareOp compareOp, int compareMask, int writeMask, int reference) Construct a new immutableVulkanStencilOpStateinstance.passOp()inttoString()Prints the immutable valueVulkanStencilOpStatewith attribute values.final VulkanStencilOpStatewithCompareMask(int value) Copy the current immutable object by setting a value for thecompareMaskattribute.final VulkanStencilOpStatewithCompareOp(VulkanCompareOp value) Copy the current immutable object by setting a value for thecompareOpattribute.final VulkanStencilOpStatewithDepthFailOp(VulkanStencilOp value) Copy the current immutable object by setting a value for thedepthFailOpattribute.final VulkanStencilOpStatewithFailOp(VulkanStencilOp value) Copy the current immutable object by setting a value for thefailOpattribute.final VulkanStencilOpStatewithPassOp(VulkanStencilOp value) Copy the current immutable object by setting a value for thepassOpattribute.final VulkanStencilOpStatewithReference(int value) Copy the current immutable object by setting a value for thereferenceattribute.final VulkanStencilOpStatewithWriteMask(int value) Copy the current immutable object by setting a value for thewriteMaskattribute.int
-
Method Details
-
failOp
- Specified by:
failOpin interfaceVulkanStencilOpStateType- Returns:
- The action performed on samples that fail the stencil test.
-
passOp
- Specified by:
passOpin interfaceVulkanStencilOpStateType- Returns:
- The action performed on samples that pass both the depth and stencil tests.
-
depthFailOp
- Specified by:
depthFailOpin interfaceVulkanStencilOpStateType- Returns:
- The action performed on samples that pass the stencil test and fail the depth test.
-
compareOp
- Specified by:
compareOpin interfaceVulkanStencilOpStateType- Returns:
- The comparison operator used in the stencil test.
-
compareMask
public int compareMask()- Specified by:
compareMaskin interfaceVulkanStencilOpStateType- Returns:
- The bits of the unsigned integer stencil values participating in the stencil test.
-
writeMask
public int writeMask()- Specified by:
writeMaskin interfaceVulkanStencilOpStateType- Returns:
- The bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment.
-
reference
public int reference()- Specified by:
referencein interfaceVulkanStencilOpStateType- Returns:
- An integer reference value that is used in the unsigned stencil comparison.
-
withFailOp
Copy the current immutable object by setting a value for thefailOpattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for failOp- Returns:
- A modified copy of the
thisobject
-
withPassOp
Copy the current immutable object by setting a value for thepassOpattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for passOp- Returns:
- A modified copy of the
thisobject
-
withDepthFailOp
Copy the current immutable object by setting a value for thedepthFailOpattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for depthFailOp- Returns:
- A modified copy of the
thisobject
-
withCompareOp
Copy the current immutable object by setting a value for thecompareOpattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for compareOp- Returns:
- A modified copy of the
thisobject
-
withCompareMask
Copy the current immutable object by setting a value for thecompareMaskattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for compareMask- Returns:
- A modified copy of the
thisobject
-
withWriteMask
Copy the current immutable object by setting a value for thewriteMaskattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for writeMask- Returns:
- A modified copy of the
thisobject
-
withReference
Copy the current immutable object by setting a value for thereferenceattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for reference- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanStencilOpState of(VulkanStencilOp failOp, VulkanStencilOp passOp, VulkanStencilOp depthFailOp, VulkanCompareOp compareOp, int compareMask, int writeMask, int reference) Construct a new immutableVulkanStencilOpStateinstance.- Parameters:
failOp- The value for thefailOpattributepassOp- The value for thepassOpattributedepthFailOp- The value for thedepthFailOpattributecompareOp- The value for thecompareOpattributecompareMask- The value for thecompareMaskattributewriteMask- The value for thewriteMaskattributereference- The value for thereferenceattribute- Returns:
- An immutable VulkanStencilOpState instance
-
copyOf
Creates an immutable copy of aVulkanStencilOpStateTypevalue. 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 VulkanStencilOpState instance
-
builder
Creates a builder forVulkanStencilOpState.VulkanStencilOpState.builder() .setFailOp(com.io7m.jcoronado.api.VulkanStencilOp) // requiredfailOp.setPassOp(com.io7m.jcoronado.api.VulkanStencilOp) // requiredpassOp.setDepthFailOp(com.io7m.jcoronado.api.VulkanStencilOp) // requireddepthFailOp.setCompareOp(com.io7m.jcoronado.api.VulkanCompareOp) // requiredcompareOp.setCompareMask(int) // requiredcompareMask.setWriteMask(int) // requiredwriteMask.setReference(int) // requiredreference.build();- Returns:
- A new VulkanStencilOpState builder
-