Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPipelineDepthStencilStateCreateInfo.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineDepthStencilStateCreateInfo.Builder
-
- Enclosing class:
- VulkanPipelineDepthStencilStateCreateInfo
public static final class VulkanPipelineDepthStencilStateCreateInfo.Builder extends java.lang.Object
Builds instances of typeVulkanPipelineDepthStencilStateCreateInfo
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.Builder
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
from
public final VulkanPipelineDepthStencilStateCreateInfo.Builder from(VulkanPipelineDepthStencilStateCreateInfoType instance)
Fill a builder with attribute values from the providedVulkanPipelineDepthStencilStateCreateInfoType
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanPipelineDepthStencilStateCreateInfo.Builder addFlags(VulkanPipelineDepthStencilStateCreateFlag element)
Adds one element toflags
set.- Parameters:
element
- A flags element- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanPipelineDepthStencilStateCreateInfo.Builder addFlags(VulkanPipelineDepthStencilStateCreateFlag... elements)
Adds elements toflags
set.- Parameters:
elements
- An array of flags elements- Returns:
this
builder for use in a chained invocation
-
setFlags
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setFlags(java.lang.Iterable<VulkanPipelineDepthStencilStateCreateFlag> elements)
Sets or replaces all elements forflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
addAllFlags
public final VulkanPipelineDepthStencilStateCreateInfo.Builder addAllFlags(java.lang.Iterable<VulkanPipelineDepthStencilStateCreateFlag> elements)
Adds elements toflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
setDepthTestEnable
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setDepthTestEnable(boolean depthTestEnable)
Initializes the value for thedepthTestEnable
attribute.- Parameters:
depthTestEnable
- The value for depthTestEnable- Returns:
this
builder for use in a chained invocation
-
setDepthWriteEnable
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setDepthWriteEnable(boolean depthWriteEnable)
Initializes the value for thedepthWriteEnable
attribute.- Parameters:
depthWriteEnable
- The value for depthWriteEnable- Returns:
this
builder for use in a chained invocation
-
setDepthCompareOp
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setDepthCompareOp(VulkanCompareOp depthCompareOp)
Initializes the value for thedepthCompareOp
attribute.- Parameters:
depthCompareOp
- The value for depthCompareOp- Returns:
this
builder for use in a chained invocation
-
setDepthBoundsTestEnable
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setDepthBoundsTestEnable(boolean depthBoundsTestEnable)
Initializes the value for thedepthBoundsTestEnable
attribute.- Parameters:
depthBoundsTestEnable
- The value for depthBoundsTestEnable- Returns:
this
builder for use in a chained invocation
-
setStencilTestEnable
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setStencilTestEnable(boolean stencilTestEnable)
Initializes the value for thestencilTestEnable
attribute.- Parameters:
stencilTestEnable
- The value for stencilTestEnable- Returns:
this
builder for use in a chained invocation
-
setFront
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setFront(VulkanStencilOpState front)
Initializes the value for thefront
attribute.- Parameters:
front
- The value for front- Returns:
this
builder for use in a chained invocation
-
setBack
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setBack(VulkanStencilOpState back)
Initializes the value for theback
attribute.- Parameters:
back
- The value for back- Returns:
this
builder for use in a chained invocation
-
setMinDepthBounds
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setMinDepthBounds(float minDepthBounds)
Initializes the value for theminDepthBounds
attribute.- Parameters:
minDepthBounds
- The value for minDepthBounds- Returns:
this
builder for use in a chained invocation
-
setMaxDepthBounds
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setMaxDepthBounds(float maxDepthBounds)
Initializes the value for themaxDepthBounds
attribute.- Parameters:
maxDepthBounds
- The value for maxDepthBounds- Returns:
this
builder for use in a chained invocation
-
build
public VulkanPipelineDepthStencilStateCreateInfo build()
Builds a newVulkanPipelineDepthStencilStateCreateInfo
.- Returns:
- An immutable instance of VulkanPipelineDepthStencilStateCreateInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-