Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPipelineDepthStencilStateCreateInfo
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineDepthStencilStateCreateInfo
-
- All Implemented Interfaces:
VulkanPipelineDepthStencilStateCreateInfoType
public final class VulkanPipelineDepthStencilStateCreateInfo extends java.lang.Object implements VulkanPipelineDepthStencilStateCreateInfoType
Structure specifying parameters of a newly created pipeline depth stencil state.- See Also:
- "VkPipelineDepthStencilStateCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanPipelineDepthStencilStateCreateInfo.Builder
Builds instances of typeVulkanPipelineDepthStencilStateCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VulkanStencilOpState
back()
static VulkanPipelineDepthStencilStateCreateInfo.Builder
builder()
Creates a builder forVulkanPipelineDepthStencilStateCreateInfo
.static VulkanPipelineDepthStencilStateCreateInfo
copyOf(VulkanPipelineDepthStencilStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineDepthStencilStateCreateInfoType
value.boolean
depthBoundsTestEnable()
VulkanCompareOp
depthCompareOp()
boolean
depthTestEnable()
boolean
depthWriteEnable()
boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineDepthStencilStateCreateInfo
that have equal attribute values.java.util.Set<VulkanPipelineDepthStencilStateCreateFlag>
flags()
VulkanStencilOpState
front()
int
hashCode()
Computes a hash code from attributes:flags
,depthTestEnable
,depthWriteEnable
,depthCompareOp
,depthBoundsTestEnable
,stencilTestEnable
,front
,back
,minDepthBounds
,maxDepthBounds
.float
maxDepthBounds()
float
minDepthBounds()
static VulkanPipelineDepthStencilStateCreateInfo
of(java.lang.Iterable<VulkanPipelineDepthStencilStateCreateFlag> flags, boolean depthTestEnable, boolean depthWriteEnable, VulkanCompareOp depthCompareOp, boolean depthBoundsTestEnable, boolean stencilTestEnable, VulkanStencilOpState front, VulkanStencilOpState back, float minDepthBounds, float maxDepthBounds)
Construct a new immutableVulkanPipelineDepthStencilStateCreateInfo
instance.static VulkanPipelineDepthStencilStateCreateInfo
of(java.util.Set<VulkanPipelineDepthStencilStateCreateFlag> flags, boolean depthTestEnable, boolean depthWriteEnable, VulkanCompareOp depthCompareOp, boolean depthBoundsTestEnable, boolean stencilTestEnable, VulkanStencilOpState front, VulkanStencilOpState back, float minDepthBounds, float maxDepthBounds)
Construct a new immutableVulkanPipelineDepthStencilStateCreateInfo
instance.boolean
stencilTestEnable()
java.lang.String
toString()
Prints the immutable valueVulkanPipelineDepthStencilStateCreateInfo
with attribute values.VulkanPipelineDepthStencilStateCreateInfo
withBack(VulkanStencilOpState value)
Copy the current immutable object by setting a value for theback
attribute.VulkanPipelineDepthStencilStateCreateInfo
withDepthBoundsTestEnable(boolean value)
Copy the current immutable object by setting a value for thedepthBoundsTestEnable
attribute.VulkanPipelineDepthStencilStateCreateInfo
withDepthCompareOp(VulkanCompareOp value)
Copy the current immutable object by setting a value for thedepthCompareOp
attribute.VulkanPipelineDepthStencilStateCreateInfo
withDepthTestEnable(boolean value)
Copy the current immutable object by setting a value for thedepthTestEnable
attribute.VulkanPipelineDepthStencilStateCreateInfo
withDepthWriteEnable(boolean value)
Copy the current immutable object by setting a value for thedepthWriteEnable
attribute.VulkanPipelineDepthStencilStateCreateInfo
withFlags(VulkanPipelineDepthStencilStateCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineDepthStencilStateCreateInfo
withFlags(java.lang.Iterable<VulkanPipelineDepthStencilStateCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineDepthStencilStateCreateInfo
withFront(VulkanStencilOpState value)
Copy the current immutable object by setting a value for thefront
attribute.VulkanPipelineDepthStencilStateCreateInfo
withMaxDepthBounds(float value)
Copy the current immutable object by setting a value for themaxDepthBounds
attribute.VulkanPipelineDepthStencilStateCreateInfo
withMinDepthBounds(float value)
Copy the current immutable object by setting a value for theminDepthBounds
attribute.VulkanPipelineDepthStencilStateCreateInfo
withStencilTestEnable(boolean value)
Copy the current immutable object by setting a value for thestencilTestEnable
attribute.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanPipelineDepthStencilStateCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
- Creation flags
-
depthTestEnable
public boolean depthTestEnable()
- Specified by:
depthTestEnable
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
true
if depth testing is enabled.
-
depthWriteEnable
public boolean depthWriteEnable()
- Specified by:
depthWriteEnable
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
true
if depth writing is enabled.
-
depthCompareOp
public VulkanCompareOp depthCompareOp()
- Specified by:
depthCompareOp
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
- The comparison operator used in the depth test.
-
depthBoundsTestEnable
public boolean depthBoundsTestEnable()
- Specified by:
depthBoundsTestEnable
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
true
if depth bounds testing is enabled.
-
stencilTestEnable
public boolean stencilTestEnable()
- Specified by:
stencilTestEnable
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
true
if stencil testing is enabled.
-
front
public VulkanStencilOpState front()
- Specified by:
front
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
- The stencil op state for front faces.
-
back
public VulkanStencilOpState back()
- Specified by:
back
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
- The stencil op state for back faces.
-
minDepthBounds
public float minDepthBounds()
- Specified by:
minDepthBounds
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
- The minimum depth for bounds testing
-
maxDepthBounds
public float maxDepthBounds()
- Specified by:
maxDepthBounds
in interfaceVulkanPipelineDepthStencilStateCreateInfoType
- Returns:
- The maximum depth for bounds testing
-
withFlags
public final VulkanPipelineDepthStencilStateCreateInfo withFlags(VulkanPipelineDepthStencilStateCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withFlags
public final VulkanPipelineDepthStencilStateCreateInfo withFlags(java.lang.Iterable<VulkanPipelineDepthStencilStateCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of flags elements to set- Returns:
- A modified copy of
this
object
-
withDepthTestEnable
public final VulkanPipelineDepthStencilStateCreateInfo withDepthTestEnable(boolean value)
Copy the current immutable object by setting a value for thedepthTestEnable
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for depthTestEnable- Returns:
- A modified copy of the
this
object
-
withDepthWriteEnable
public final VulkanPipelineDepthStencilStateCreateInfo withDepthWriteEnable(boolean value)
Copy the current immutable object by setting a value for thedepthWriteEnable
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for depthWriteEnable- Returns:
- A modified copy of the
this
object
-
withDepthCompareOp
public final VulkanPipelineDepthStencilStateCreateInfo withDepthCompareOp(VulkanCompareOp value)
Copy the current immutable object by setting a value for thedepthCompareOp
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for depthCompareOp- Returns:
- A modified copy of the
this
object
-
withDepthBoundsTestEnable
public final VulkanPipelineDepthStencilStateCreateInfo withDepthBoundsTestEnable(boolean value)
Copy the current immutable object by setting a value for thedepthBoundsTestEnable
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for depthBoundsTestEnable- Returns:
- A modified copy of the
this
object
-
withStencilTestEnable
public final VulkanPipelineDepthStencilStateCreateInfo withStencilTestEnable(boolean value)
Copy the current immutable object by setting a value for thestencilTestEnable
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for stencilTestEnable- Returns:
- A modified copy of the
this
object
-
withFront
public final VulkanPipelineDepthStencilStateCreateInfo withFront(VulkanStencilOpState value)
Copy the current immutable object by setting a value for thefront
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for front- Returns:
- A modified copy of the
this
object
-
withBack
public final VulkanPipelineDepthStencilStateCreateInfo withBack(VulkanStencilOpState value)
Copy the current immutable object by setting a value for theback
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for back- Returns:
- A modified copy of the
this
object
-
withMinDepthBounds
public final VulkanPipelineDepthStencilStateCreateInfo withMinDepthBounds(float value)
Copy the current immutable object by setting a value for theminDepthBounds
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for minDepthBounds- Returns:
- A modified copy of the
this
object
-
withMaxDepthBounds
public final VulkanPipelineDepthStencilStateCreateInfo withMaxDepthBounds(float value)
Copy the current immutable object by setting a value for themaxDepthBounds
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maxDepthBounds- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineDepthStencilStateCreateInfo
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:flags
,depthTestEnable
,depthWriteEnable
,depthCompareOp
,depthBoundsTestEnable
,stencilTestEnable
,front
,back
,minDepthBounds
,maxDepthBounds
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanPipelineDepthStencilStateCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanPipelineDepthStencilStateCreateInfo of(java.util.Set<VulkanPipelineDepthStencilStateCreateFlag> flags, boolean depthTestEnable, boolean depthWriteEnable, VulkanCompareOp depthCompareOp, boolean depthBoundsTestEnable, boolean stencilTestEnable, VulkanStencilOpState front, VulkanStencilOpState back, float minDepthBounds, float maxDepthBounds)
Construct a new immutableVulkanPipelineDepthStencilStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributedepthTestEnable
- The value for thedepthTestEnable
attributedepthWriteEnable
- The value for thedepthWriteEnable
attributedepthCompareOp
- The value for thedepthCompareOp
attributedepthBoundsTestEnable
- The value for thedepthBoundsTestEnable
attributestencilTestEnable
- The value for thestencilTestEnable
attributefront
- The value for thefront
attributeback
- The value for theback
attributeminDepthBounds
- The value for theminDepthBounds
attributemaxDepthBounds
- The value for themaxDepthBounds
attribute- Returns:
- An immutable VulkanPipelineDepthStencilStateCreateInfo instance
-
of
public static VulkanPipelineDepthStencilStateCreateInfo of(java.lang.Iterable<VulkanPipelineDepthStencilStateCreateFlag> flags, boolean depthTestEnable, boolean depthWriteEnable, VulkanCompareOp depthCompareOp, boolean depthBoundsTestEnable, boolean stencilTestEnable, VulkanStencilOpState front, VulkanStencilOpState back, float minDepthBounds, float maxDepthBounds)
Construct a new immutableVulkanPipelineDepthStencilStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributedepthTestEnable
- The value for thedepthTestEnable
attributedepthWriteEnable
- The value for thedepthWriteEnable
attributedepthCompareOp
- The value for thedepthCompareOp
attributedepthBoundsTestEnable
- The value for thedepthBoundsTestEnable
attributestencilTestEnable
- The value for thestencilTestEnable
attributefront
- The value for thefront
attributeback
- The value for theback
attributeminDepthBounds
- The value for theminDepthBounds
attributemaxDepthBounds
- The value for themaxDepthBounds
attribute- Returns:
- An immutable VulkanPipelineDepthStencilStateCreateInfo instance
-
copyOf
public static VulkanPipelineDepthStencilStateCreateInfo copyOf(VulkanPipelineDepthStencilStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineDepthStencilStateCreateInfoType
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 VulkanPipelineDepthStencilStateCreateInfo instance
-
builder
public static VulkanPipelineDepthStencilStateCreateInfo.Builder builder()
Creates a builder forVulkanPipelineDepthStencilStateCreateInfo
.- Returns:
- A new VulkanPipelineDepthStencilStateCreateInfo builder
-
-