Class VulkanPipelineMultisampleStateCreateInfo

    • Method Detail

      • withFlags

        public final VulkanPipelineMultisampleStateCreateInfo withFlags​(java.lang.Iterable<VulkanPipelineMultisampleStateCreateFlag> elements)
        Copy the current immutable object with elements that replace the content of flags. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of flags elements to set
        Returns:
        A modified copy of this object
      • withRasterizationSamples

        public final VulkanPipelineMultisampleStateCreateInfo withRasterizationSamples​(VulkanSampleCountFlag value)
        Copy the current immutable object by setting a value for the rasterizationSamples attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for rasterizationSamples
        Returns:
        A modified copy of the this object
      • withSampleShadingEnable

        public final VulkanPipelineMultisampleStateCreateInfo withSampleShadingEnable​(boolean value)
        Copy the current immutable object by setting a value for the sampleShadingEnable attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sampleShadingEnable
        Returns:
        A modified copy of the this object
      • withMinSampleShading

        public final VulkanPipelineMultisampleStateCreateInfo withMinSampleShading​(float value)
        Copy the current immutable object by setting a value for the minSampleShading attribute. A value strict bits equality used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for minSampleShading
        Returns:
        A modified copy of the this object
      • withSampleMask

        public final VulkanPipelineMultisampleStateCreateInfo withSampleMask​(int[] value)
        Copy the current immutable object by setting a present value for the optional sampleMask attribute.
        Parameters:
        value - The value for sampleMask
        Returns:
        A modified copy of this object
      • withSampleMask

        public final VulkanPipelineMultisampleStateCreateInfo withSampleMask​(java.util.Optional<? extends int[]> optional)
        Copy the current immutable object by setting an optional value for the sampleMask attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for sampleMask
        Returns:
        A modified copy of this object
      • withAlphaToCoverageEnable

        public final VulkanPipelineMultisampleStateCreateInfo withAlphaToCoverageEnable​(boolean value)
        Copy the current immutable object by setting a value for the alphaToCoverageEnable attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for alphaToCoverageEnable
        Returns:
        A modified copy of the this object
      • withAlphaToOneEnable

        public final VulkanPipelineMultisampleStateCreateInfo withAlphaToOneEnable​(boolean value)
        Copy the current immutable object by setting a value for the alphaToOneEnable attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for alphaToOneEnable
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanPipelineMultisampleStateCreateInfo 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: flags, rasterizationSamples, sampleShadingEnable, minSampleShading, sampleMask, alphaToCoverageEnable, alphaToOneEnable.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanPipelineMultisampleStateCreateInfo of​(java.util.Set<VulkanPipelineMultisampleStateCreateFlag> flags,
                                                                  VulkanSampleCountFlag rasterizationSamples,
                                                                  boolean sampleShadingEnable,
                                                                  float minSampleShading,
                                                                  java.util.Optional<int[]> sampleMask,
                                                                  boolean alphaToCoverageEnable,
                                                                  boolean alphaToOneEnable)
        Construct a new immutable VulkanPipelineMultisampleStateCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        rasterizationSamples - The value for the rasterizationSamples attribute
        sampleShadingEnable - The value for the sampleShadingEnable attribute
        minSampleShading - The value for the minSampleShading attribute
        sampleMask - The value for the sampleMask attribute
        alphaToCoverageEnable - The value for the alphaToCoverageEnable attribute
        alphaToOneEnable - The value for the alphaToOneEnable attribute
        Returns:
        An immutable VulkanPipelineMultisampleStateCreateInfo instance
      • of

        public static VulkanPipelineMultisampleStateCreateInfo of​(java.lang.Iterable<VulkanPipelineMultisampleStateCreateFlag> flags,
                                                                  VulkanSampleCountFlag rasterizationSamples,
                                                                  boolean sampleShadingEnable,
                                                                  float minSampleShading,
                                                                  java.util.Optional<? extends int[]> sampleMask,
                                                                  boolean alphaToCoverageEnable,
                                                                  boolean alphaToOneEnable)
        Construct a new immutable VulkanPipelineMultisampleStateCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        rasterizationSamples - The value for the rasterizationSamples attribute
        sampleShadingEnable - The value for the sampleShadingEnable attribute
        minSampleShading - The value for the minSampleShading attribute
        sampleMask - The value for the sampleMask attribute
        alphaToCoverageEnable - The value for the alphaToCoverageEnable attribute
        alphaToOneEnable - The value for the alphaToOneEnable attribute
        Returns:
        An immutable VulkanPipelineMultisampleStateCreateInfo instance