Class VulkanLineWidthRange
java.lang.Object
com.io7m.jcoronado.api.VulkanLineWidthRange
- All Implemented Interfaces:
VulkanLineWidthRangeType
The inclusive range of supported sizes for points. Values written to variables decorated with the
PointSize built-in decoration are clamped to this range.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeVulkanLineWidthRange
. -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanLineWidthRange.Builder
builder()
Creates a builder forVulkanLineWidthRange
.static VulkanLineWidthRange
copyOf
(VulkanLineWidthRangeType instance) Creates an immutable copy of aVulkanLineWidthRangeType
value.boolean
This instance is equal to all instances ofVulkanLineWidthRange
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:minimum
,maximum
.float
maximum()
float
minimum()
static VulkanLineWidthRange
of
(float minimum, float maximum) Construct a new immutableVulkanLineWidthRange
instance.toString()
Prints the immutable valueVulkanLineWidthRange
with attribute values.final VulkanLineWidthRange
withMaximum
(float value) Copy the current immutable object by setting a value for themaximum
attribute.final VulkanLineWidthRange
withMinimum
(float value) Copy the current immutable object by setting a value for theminimum
attribute.
-
Method Details
-
minimum
public float minimum()- Specified by:
minimum
in interfaceVulkanLineWidthRangeType
- Returns:
- The minimum width
-
maximum
public float maximum()- Specified by:
maximum
in interfaceVulkanLineWidthRangeType
- Returns:
- The maximum width
-
withMinimum
Copy the current immutable object by setting a value for theminimum
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for minimum- Returns:
- A modified copy of the
this
object
-
withMaximum
Copy the current immutable object by setting a value for themaximum
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximum- Returns:
- A modified copy of the
this
object
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanLineWidthRange
instance.- Parameters:
minimum
- The value for theminimum
attributemaximum
- The value for themaximum
attribute- Returns:
- An immutable VulkanLineWidthRange instance
-
copyOf
Creates an immutable copy of aVulkanLineWidthRangeType
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 VulkanLineWidthRange instance
-
builder
Creates a builder forVulkanLineWidthRange
.VulkanLineWidthRange.builder() .setMinimum(float) // required
minimum
.setMaximum(float) // requiredmaximum
.build();- Returns:
- A new VulkanLineWidthRange builder
-