Class VulkanClearRectangle.Builder

  • Enclosing class:
    VulkanClearRectangle

    public static final class VulkanClearRectangle.Builder
    extends java.lang.Object
    Builds instances of type VulkanClearRectangle. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final VulkanClearRectangle.Builder from​(VulkanClearRectangleType instance)
        Fill a builder with attribute values from the provided VulkanClearRectangleType instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • setBaseArrayLayer

        public final VulkanClearRectangle.Builder setBaseArrayLayer​(int baseArrayLayer)
        Initializes the value for the baseArrayLayer attribute.

        If not set, this attribute will have a default value as returned by the initializer of baseArrayLayer.

        Parameters:
        baseArrayLayer - The value for baseArrayLayer
        Returns:
        this builder for use in a chained invocation
      • setLayerCount

        public final VulkanClearRectangle.Builder setLayerCount​(int layerCount)
        Initializes the value for the layerCount attribute.

        If not set, this attribute will have a default value as returned by the initializer of layerCount.

        Parameters:
        layerCount - The value for layerCount
        Returns:
        this builder for use in a chained invocation
      • build

        public VulkanClearRectangle build()
        Builds a new VulkanClearRectangle.
        Returns:
        An immutable instance of VulkanClearRectangle
        Throws:
        java.lang.IllegalStateException - if any required attributes are missing