Class VulkanPipelineDepthStencilStateCreateInfo.Builder
- Enclosing class:
VulkanPipelineDepthStencilStateCreateInfo
VulkanPipelineDepthStencilStateCreateInfo.
Initialize attributes and then invoke the build() 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
Modifier and TypeMethodDescriptionAdds elements toflagsset.Adds one element toflagsset.addFlags(VulkanPipelineDepthStencilStateCreateFlag... elements) Adds elements toflagsset.build()Builds a newVulkanPipelineDepthStencilStateCreateInfo.Fill a builder with attribute values from the providedVulkanPipelineDepthStencilStateCreateInfoTypeinstance.setBack(VulkanStencilOpState back) Initializes the value for thebackattribute.setDepthBoundsTestEnable(boolean depthBoundsTestEnable) Initializes the value for thedepthBoundsTestEnableattribute.setDepthCompareOp(VulkanCompareOp depthCompareOp) Initializes the value for thedepthCompareOpattribute.setDepthTestEnable(boolean depthTestEnable) Initializes the value for thedepthTestEnableattribute.setDepthWriteEnable(boolean depthWriteEnable) Initializes the value for thedepthWriteEnableattribute.Sets or replaces all elements forflagsset.setFront(VulkanStencilOpState front) Initializes the value for thefrontattribute.setMaxDepthBounds(float maxDepthBounds) Initializes the value for themaxDepthBoundsattribute.setMinDepthBounds(float minDepthBounds) Initializes the value for theminDepthBoundsattribute.setStencilTestEnable(boolean stencilTestEnable) Initializes the value for thestencilTestEnableattribute.
-
Method Details
-
from
public final VulkanPipelineDepthStencilStateCreateInfo.Builder from(VulkanPipelineDepthStencilStateCreateInfoType instance) Fill a builder with attribute values from the providedVulkanPipelineDepthStencilStateCreateInfoTypeinstance. 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:
thisbuilder for use in a chained invocation
-
addFlags
public final VulkanPipelineDepthStencilStateCreateInfo.Builder addFlags(VulkanPipelineDepthStencilStateCreateFlag element) Adds one element toflagsset.- Parameters:
element- A flags element- Returns:
thisbuilder for use in a chained invocation
-
addFlags
public final VulkanPipelineDepthStencilStateCreateInfo.Builder addFlags(VulkanPipelineDepthStencilStateCreateFlag... elements) Adds elements toflagsset.- Parameters:
elements- An array of flags elements- Returns:
thisbuilder for use in a chained invocation
-
setFlags
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setFlags(Iterable<VulkanPipelineDepthStencilStateCreateFlag> elements) Sets or replaces all elements forflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFlags
public final VulkanPipelineDepthStencilStateCreateInfo.Builder addAllFlags(Iterable<VulkanPipelineDepthStencilStateCreateFlag> elements) Adds elements toflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
setDepthTestEnable
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setDepthTestEnable(boolean depthTestEnable) Initializes the value for thedepthTestEnableattribute.If not set, this attribute will have a default value as returned by the initializer of
depthTestEnable.- Parameters:
depthTestEnable- The value for depthTestEnable- Returns:
thisbuilder for use in a chained invocation
-
setDepthWriteEnable
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setDepthWriteEnable(boolean depthWriteEnable) Initializes the value for thedepthWriteEnableattribute.If not set, this attribute will have a default value as returned by the initializer of
depthWriteEnable.- Parameters:
depthWriteEnable- The value for depthWriteEnable- Returns:
thisbuilder for use in a chained invocation
-
setDepthCompareOp
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setDepthCompareOp(VulkanCompareOp depthCompareOp) Initializes the value for thedepthCompareOpattribute.If not set, this attribute will have a default value as returned by the initializer of
depthCompareOp.- Parameters:
depthCompareOp- The value for depthCompareOp- Returns:
thisbuilder for use in a chained invocation
-
setDepthBoundsTestEnable
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setDepthBoundsTestEnable(boolean depthBoundsTestEnable) Initializes the value for thedepthBoundsTestEnableattribute.If not set, this attribute will have a default value as returned by the initializer of
depthBoundsTestEnable.- Parameters:
depthBoundsTestEnable- The value for depthBoundsTestEnable- Returns:
thisbuilder for use in a chained invocation
-
setStencilTestEnable
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setStencilTestEnable(boolean stencilTestEnable) Initializes the value for thestencilTestEnableattribute.If not set, this attribute will have a default value as returned by the initializer of
stencilTestEnable.- Parameters:
stencilTestEnable- The value for stencilTestEnable- Returns:
thisbuilder for use in a chained invocation
-
setFront
-
setBack
-
setMinDepthBounds
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setMinDepthBounds(float minDepthBounds) Initializes the value for theminDepthBoundsattribute.If not set, this attribute will have a default value as returned by the initializer of
minDepthBounds.- Parameters:
minDepthBounds- The value for minDepthBounds- Returns:
thisbuilder for use in a chained invocation
-
setMaxDepthBounds
public final VulkanPipelineDepthStencilStateCreateInfo.Builder setMaxDepthBounds(float maxDepthBounds) Initializes the value for themaxDepthBoundsattribute.If not set, this attribute will have a default value as returned by the initializer of
maxDepthBounds.- Parameters:
maxDepthBounds- The value for maxDepthBounds- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanPipelineDepthStencilStateCreateInfo.- Returns:
- An immutable instance of VulkanPipelineDepthStencilStateCreateInfo
- Throws:
IllegalStateException- if any required attributes are missing
-