Class 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"
    • Method Detail

      • withMaximumX

        public final VulkanComputeWorkGroupCount withMaximumX​(int value)
        Copy the current immutable object by setting a value for the maximumX attribute. A value equality check is used to prevent copying of the same value by returning this.
        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 the maximumY attribute. A value equality check is used to prevent copying of the same value by returning this.
        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 the maximumZ attribute. A value equality check is used to prevent copying of the same value by returning this.
        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 of VulkanComputeWorkGroupCount that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: maximumX, maximumY, maximumZ.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value VulkanComputeWorkGroupCount with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • of

        public static VulkanComputeWorkGroupCount of​(int maximumX,
                                                     int maximumY,
                                                     int maximumZ)
        Construct a new immutable VulkanComputeWorkGroupCount instance.
        Parameters:
        maximumX - The value for the maximumX attribute
        maximumY - The value for the maximumY attribute
        maximumZ - The value for the maximumZ attribute
        Returns:
        An immutable VulkanComputeWorkGroupCount instance