Class VulkanComputeWorkGroupCount
java.lang.Object
com.io7m.jcoronado.api.VulkanComputeWorkGroupCount
- All Implemented Interfaces:
VulkanComputeWorkGroupCountType
public final class VulkanComputeWorkGroupCount
extends 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanComputeWorkGroupCount. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanComputeWorkGroupCount.static VulkanComputeWorkGroupCountcopyOf(VulkanComputeWorkGroupCountType instance) Creates an immutable copy of aVulkanComputeWorkGroupCountTypevalue.booleanThis instance is equal to all instances ofVulkanComputeWorkGroupCountthat have equal attribute values.inthashCode()Computes a hash code from attributes:maximumX,maximumY,maximumZ.intmaximumX()intmaximumY()intmaximumZ()static VulkanComputeWorkGroupCountof(int maximumX, int maximumY, int maximumZ) Construct a new immutableVulkanComputeWorkGroupCountinstance.toString()Prints the immutable valueVulkanComputeWorkGroupCountwith attribute values.withMaximumX(int value) Copy the current immutable object by setting a value for themaximumXattribute.withMaximumY(int value) Copy the current immutable object by setting a value for themaximumYattribute.withMaximumZ(int value) Copy the current immutable object by setting a value for themaximumZattribute.
-
Method Details
-
maximumX
public int maximumX()- Specified by:
maximumXin interfaceVulkanComputeWorkGroupCountType- Returns:
- The limit on the X dimension
-
maximumY
public int maximumY()- Specified by:
maximumYin interfaceVulkanComputeWorkGroupCountType- Returns:
- The limit on the Y dimension
-
maximumZ
public int maximumZ()- Specified by:
maximumZin interfaceVulkanComputeWorkGroupCountType- Returns:
- The limit on the Z dimension
-
withMaximumX
Copy the current immutable object by setting a value for themaximumXattribute. 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
thisobject
-
withMaximumY
Copy the current immutable object by setting a value for themaximumYattribute. 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
thisobject
-
withMaximumZ
Copy the current immutable object by setting a value for themaximumZattribute. 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
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanComputeWorkGroupCountinstance.- Parameters:
maximumX- The value for themaximumXattributemaximumY- The value for themaximumYattributemaximumZ- The value for themaximumZattribute- Returns:
- An immutable VulkanComputeWorkGroupCount instance
-
copyOf
Creates an immutable copy of aVulkanComputeWorkGroupCountTypevalue. 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
Creates a builder forVulkanComputeWorkGroupCount.VulkanComputeWorkGroupCount.builder() .setMaximumX(int) // requiredmaximumX.setMaximumY(int) // requiredmaximumY.setMaximumZ(int) // requiredmaximumZ.build();- Returns:
- A new VulkanComputeWorkGroupCount builder
-