Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPipelineMultisampleStateCreateInfo
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineMultisampleStateCreateInfo
-
- All Implemented Interfaces:
VulkanPipelineMultisampleStateCreateInfoType
public final class VulkanPipelineMultisampleStateCreateInfo extends java.lang.Object implements VulkanPipelineMultisampleStateCreateInfoType
- See Also:
- "VkPipelineMultisampleStateCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanPipelineMultisampleStateCreateInfo.Builder
Builds instances of typeVulkanPipelineMultisampleStateCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
alphaToCoverageEnable()
boolean
alphaToOneEnable()
static VulkanPipelineMultisampleStateCreateInfo.Builder
builder()
Creates a builder forVulkanPipelineMultisampleStateCreateInfo
.static VulkanPipelineMultisampleStateCreateInfo
copyOf(VulkanPipelineMultisampleStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineMultisampleStateCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineMultisampleStateCreateInfo
that have equal attribute values.java.util.Set<VulkanPipelineMultisampleStateCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,rasterizationSamples
,sampleShadingEnable
,minSampleShading
,sampleMask
,alphaToCoverageEnable
,alphaToOneEnable
.float
minSampleShading()
static VulkanPipelineMultisampleStateCreateInfo
of(java.lang.Iterable<VulkanPipelineMultisampleStateCreateFlag> flags, VulkanSampleCountFlag rasterizationSamples, boolean sampleShadingEnable, float minSampleShading, java.util.Optional<? extends int[]> sampleMask, boolean alphaToCoverageEnable, boolean alphaToOneEnable)
Construct a new immutableVulkanPipelineMultisampleStateCreateInfo
instance.static VulkanPipelineMultisampleStateCreateInfo
of(java.util.Set<VulkanPipelineMultisampleStateCreateFlag> flags, VulkanSampleCountFlag rasterizationSamples, boolean sampleShadingEnable, float minSampleShading, java.util.Optional<int[]> sampleMask, boolean alphaToCoverageEnable, boolean alphaToOneEnable)
Construct a new immutableVulkanPipelineMultisampleStateCreateInfo
instance.VulkanSampleCountFlag
rasterizationSamples()
java.util.Optional<int[]>
sampleMask()
boolean
sampleShadingEnable()
java.lang.String
toString()
Prints the immutable valueVulkanPipelineMultisampleStateCreateInfo
with attribute values.VulkanPipelineMultisampleStateCreateInfo
withAlphaToCoverageEnable(boolean value)
Copy the current immutable object by setting a value for thealphaToCoverageEnable
attribute.VulkanPipelineMultisampleStateCreateInfo
withAlphaToOneEnable(boolean value)
Copy the current immutable object by setting a value for thealphaToOneEnable
attribute.VulkanPipelineMultisampleStateCreateInfo
withFlags(VulkanPipelineMultisampleStateCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineMultisampleStateCreateInfo
withFlags(java.lang.Iterable<VulkanPipelineMultisampleStateCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineMultisampleStateCreateInfo
withMinSampleShading(float value)
Copy the current immutable object by setting a value for theminSampleShading
attribute.VulkanPipelineMultisampleStateCreateInfo
withRasterizationSamples(VulkanSampleCountFlag value)
Copy the current immutable object by setting a value for therasterizationSamples
attribute.VulkanPipelineMultisampleStateCreateInfo
withSampleMask(int[] value)
Copy the current immutable object by setting a present value for the optionalsampleMask
attribute.VulkanPipelineMultisampleStateCreateInfo
withSampleMask(java.util.Optional<? extends int[]> optional)
Copy the current immutable object by setting an optional value for thesampleMask
attribute.VulkanPipelineMultisampleStateCreateInfo
withSampleShadingEnable(boolean value)
Copy the current immutable object by setting a value for thesampleShadingEnable
attribute.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanPipelineMultisampleStateCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanPipelineMultisampleStateCreateInfoType
- Returns:
- Flags reserved for future use
-
rasterizationSamples
public VulkanSampleCountFlag rasterizationSamples()
- Specified by:
rasterizationSamples
in interfaceVulkanPipelineMultisampleStateCreateInfoType
- Returns:
- The number of samples per pixel used in rasterization.
-
sampleShadingEnable
public boolean sampleShadingEnable()
- Specified by:
sampleShadingEnable
in interfaceVulkanPipelineMultisampleStateCreateInfoType
- Returns:
true
if sample shading should be enabled
-
minSampleShading
public float minSampleShading()
- Specified by:
minSampleShading
in interfaceVulkanPipelineMultisampleStateCreateInfoType
- Returns:
- minimum fraction of sample shading if
sampleShadingEnable()
istrue
-
sampleMask
public java.util.Optional<int[]> sampleMask()
- Specified by:
sampleMask
in interfaceVulkanPipelineMultisampleStateCreateInfoType
- Returns:
- static coverage information that is ANDed with the coverage information generated during rasterization.
-
alphaToCoverageEnable
public boolean alphaToCoverageEnable()
- Specified by:
alphaToCoverageEnable
in interfaceVulkanPipelineMultisampleStateCreateInfoType
- Returns:
true
if a temporary coverage value is generated based on the alpha component of the fragment’s first color output
-
alphaToOneEnable
public boolean alphaToOneEnable()
- Specified by:
alphaToOneEnable
in interfaceVulkanPipelineMultisampleStateCreateInfoType
- Returns:
true
if the alpha component of the fragment’s first color output is replaced with one as described in "Multisample Coverage".
-
withFlags
public final VulkanPipelineMultisampleStateCreateInfo withFlags(VulkanPipelineMultisampleStateCreateFlag... 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 VulkanPipelineMultisampleStateCreateInfo withFlags(java.lang.Iterable<VulkanPipelineMultisampleStateCreateFlag> 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
-
withRasterizationSamples
public final VulkanPipelineMultisampleStateCreateInfo withRasterizationSamples(VulkanSampleCountFlag value)
Copy the current immutable object by setting a value for therasterizationSamples
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for rasterizationSamples- Returns:
- A modified copy of the
this
object
-
withSampleShadingEnable
public final VulkanPipelineMultisampleStateCreateInfo withSampleShadingEnable(boolean value)
Copy the current immutable object by setting a value for thesampleShadingEnable
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for sampleShadingEnable- Returns:
- A modified copy of the
this
object
-
withMinSampleShading
public final VulkanPipelineMultisampleStateCreateInfo withMinSampleShading(float value)
Copy the current immutable object by setting a value for theminSampleShading
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for minSampleShading- Returns:
- A modified copy of the
this
object
-
withSampleMask
public final VulkanPipelineMultisampleStateCreateInfo withSampleMask(int[] value)
Copy the current immutable object by setting a present value for the optionalsampleMask
attribute.- Parameters:
value
- The value for sampleMask- Returns:
- A modified copy of
this
object
-
withSampleMask
public final VulkanPipelineMultisampleStateCreateInfo withSampleMask(java.util.Optional<? extends int[]> optional)
Copy the current immutable object by setting an optional value for thesampleMask
attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for sampleMask- Returns:
- A modified copy of
this
object
-
withAlphaToCoverageEnable
public final VulkanPipelineMultisampleStateCreateInfo withAlphaToCoverageEnable(boolean value)
Copy the current immutable object by setting a value for thealphaToCoverageEnable
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for alphaToCoverageEnable- Returns:
- A modified copy of the
this
object
-
withAlphaToOneEnable
public final VulkanPipelineMultisampleStateCreateInfo withAlphaToOneEnable(boolean value)
Copy the current immutable object by setting a value for thealphaToOneEnable
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for alphaToOneEnable- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineMultisampleStateCreateInfo
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
,rasterizationSamples
,sampleShadingEnable
,minSampleShading
,sampleMask
,alphaToCoverageEnable
,alphaToOneEnable
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanPipelineMultisampleStateCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanPipelineMultisampleStateCreateInfo of(java.util.Set<VulkanPipelineMultisampleStateCreateFlag> flags, VulkanSampleCountFlag rasterizationSamples, boolean sampleShadingEnable, float minSampleShading, java.util.Optional<int[]> sampleMask, boolean alphaToCoverageEnable, boolean alphaToOneEnable)
Construct a new immutableVulkanPipelineMultisampleStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributerasterizationSamples
- The value for therasterizationSamples
attributesampleShadingEnable
- The value for thesampleShadingEnable
attributeminSampleShading
- The value for theminSampleShading
attributesampleMask
- The value for thesampleMask
attributealphaToCoverageEnable
- The value for thealphaToCoverageEnable
attributealphaToOneEnable
- The value for thealphaToOneEnable
attribute- Returns:
- An immutable VulkanPipelineMultisampleStateCreateInfo instance
-
of
public static VulkanPipelineMultisampleStateCreateInfo of(java.lang.Iterable<VulkanPipelineMultisampleStateCreateFlag> flags, VulkanSampleCountFlag rasterizationSamples, boolean sampleShadingEnable, float minSampleShading, java.util.Optional<? extends int[]> sampleMask, boolean alphaToCoverageEnable, boolean alphaToOneEnable)
Construct a new immutableVulkanPipelineMultisampleStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributerasterizationSamples
- The value for therasterizationSamples
attributesampleShadingEnable
- The value for thesampleShadingEnable
attributeminSampleShading
- The value for theminSampleShading
attributesampleMask
- The value for thesampleMask
attributealphaToCoverageEnable
- The value for thealphaToCoverageEnable
attributealphaToOneEnable
- The value for thealphaToOneEnable
attribute- Returns:
- An immutable VulkanPipelineMultisampleStateCreateInfo instance
-
copyOf
public static VulkanPipelineMultisampleStateCreateInfo copyOf(VulkanPipelineMultisampleStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineMultisampleStateCreateInfoType
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 VulkanPipelineMultisampleStateCreateInfo instance
-
builder
public static VulkanPipelineMultisampleStateCreateInfo.Builder builder()
Creates a builder forVulkanPipelineMultisampleStateCreateInfo
.- Returns:
- A new VulkanPipelineMultisampleStateCreateInfo builder
-
-