- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanComputeWorkGroupCount
-
- All Implemented Interfaces:
VulkanComputeWorkGroupCountType
public final class VulkanComputeWorkGroupCount extends java.lang.Object implements VulkanComputeWorkGroupCountType
the maximum number of local workgroups that can be dispatched by a single dispatch command. These three values represent the maximum number of local workgroups for the X, Y, and Z dimensions, respectively. The workgroup count parameters to the dispatch commands must be less than or equal to the corresponding limit.- See Also:
- "VkPhysicalDeviceLimits"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanComputeWorkGroupCount.Builder
Builds instances of typeVulkanComputeWorkGroupCount
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanComputeWorkGroupCount.Builder
builder()
Creates a builder forVulkanComputeWorkGroupCount
.static VulkanComputeWorkGroupCount
copyOf(VulkanComputeWorkGroupCountType instance)
Creates an immutable copy of aVulkanComputeWorkGroupCountType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanComputeWorkGroupCount
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:maximumX
,maximumY
,maximumZ
.int
maximumX()
int
maximumY()
int
maximumZ()
static VulkanComputeWorkGroupCount
of(int maximumX, int maximumY, int maximumZ)
Construct a new immutableVulkanComputeWorkGroupCount
instance.java.lang.String
toString()
Prints the immutable valueVulkanComputeWorkGroupCount
with attribute values.VulkanComputeWorkGroupCount
withMaximumX(int value)
Copy the current immutable object by setting a value for themaximumX
attribute.VulkanComputeWorkGroupCount
withMaximumY(int value)
Copy the current immutable object by setting a value for themaximumY
attribute.VulkanComputeWorkGroupCount
withMaximumZ(int value)
Copy the current immutable object by setting a value for themaximumZ
attribute.
-
-
-
Method Detail
-
maximumX
public int maximumX()
- Specified by:
maximumX
in interfaceVulkanComputeWorkGroupCountType
- Returns:
- The limit on the X dimension
-
maximumY
public int maximumY()
- Specified by:
maximumY
in interfaceVulkanComputeWorkGroupCountType
- Returns:
- The limit on the Y dimension
-
maximumZ
public int maximumZ()
- Specified by:
maximumZ
in interfaceVulkanComputeWorkGroupCountType
- Returns:
- The limit on the Z dimension
-
withMaximumX
public final VulkanComputeWorkGroupCount withMaximumX(int value)
Copy the current immutable object by setting a value for themaximumX
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumX- Returns:
- A modified copy of the
this
object
-
withMaximumY
public final VulkanComputeWorkGroupCount withMaximumY(int value)
Copy the current immutable object by setting a value for themaximumY
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumY- Returns:
- A modified copy of the
this
object
-
withMaximumZ
public final VulkanComputeWorkGroupCount withMaximumZ(int value)
Copy the current immutable object by setting a value for themaximumZ
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumZ- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanComputeWorkGroupCount
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:maximumX
,maximumY
,maximumZ
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanComputeWorkGroupCount
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanComputeWorkGroupCount of(int maximumX, int maximumY, int maximumZ)
Construct a new immutableVulkanComputeWorkGroupCount
instance.- Parameters:
maximumX
- The value for themaximumX
attributemaximumY
- The value for themaximumY
attributemaximumZ
- The value for themaximumZ
attribute- Returns:
- An immutable VulkanComputeWorkGroupCount instance
-
copyOf
public static VulkanComputeWorkGroupCount copyOf(VulkanComputeWorkGroupCountType instance)
Creates an immutable copy of aVulkanComputeWorkGroupCountType
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 VulkanComputeWorkGroupCount instance
-
builder
public static VulkanComputeWorkGroupCount.Builder builder()
Creates a builder forVulkanComputeWorkGroupCount
.- Returns:
- A new VulkanComputeWorkGroupCount builder
-
-