Class VulkanPointSizeRange
java.lang.Object
com.io7m.jcoronado.api.VulkanPointSizeRange
- All Implemented Interfaces:
VulkanPointSizeRangeType
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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPointSizeRange. -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanPointSizeRange.Builderbuilder()Creates a builder forVulkanPointSizeRange.static VulkanPointSizeRangecopyOf(VulkanPointSizeRangeType instance) Creates an immutable copy of aVulkanPointSizeRangeTypevalue.booleanThis instance is equal to all instances ofVulkanPointSizeRangethat have equal attribute values.inthashCode()Computes a hash code from attributes:minimum,maximum.floatmaximum()floatminimum()static VulkanPointSizeRangeof(float minimum, float maximum) Construct a new immutableVulkanPointSizeRangeinstance.toString()Prints the immutable valueVulkanPointSizeRangewith attribute values.final VulkanPointSizeRangewithMaximum(float value) Copy the current immutable object by setting a value for themaximumattribute.final VulkanPointSizeRangewithMinimum(float value) Copy the current immutable object by setting a value for theminimumattribute.
-
Method Details
-
minimum
public float minimum()- Specified by:
minimumin interfaceVulkanPointSizeRangeType- Returns:
- The minimum size
-
maximum
public float maximum()- Specified by:
maximumin interfaceVulkanPointSizeRangeType- Returns:
- The maximum size
-
withMinimum
Copy the current immutable object by setting a value for theminimumattribute. 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
thisobject
-
withMaximum
Copy the current immutable object by setting a value for themaximumattribute. 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
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanPointSizeRangeinstance.- Parameters:
minimum- The value for theminimumattributemaximum- The value for themaximumattribute- Returns:
- An immutable VulkanPointSizeRange instance
-
copyOf
Creates an immutable copy of aVulkanPointSizeRangeTypevalue. 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 VulkanPointSizeRange instance
-
builder
Creates a builder forVulkanPointSizeRange.VulkanPointSizeRange.builder() .setMinimum(float) // requiredminimum.setMaximum(float) // requiredmaximum.build();- Returns:
- A new VulkanPointSizeRange builder
-