Class VulkanPipelineRasterizationStateCreateInfo

    • Method Detail

      • withDepthClampEnable

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

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

        public final VulkanPipelineRasterizationStateCreateInfo withPolygonMode​(VulkanPolygonMode value)
        Copy the current immutable object by setting a value for the polygonMode attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for polygonMode
        Returns:
        A modified copy of the this object
      • withCullMode

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

        public final VulkanPipelineRasterizationStateCreateInfo withFrontFace​(VulkanFrontFace value)
        Copy the current immutable object by setting a value for the frontFace attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for frontFace
        Returns:
        A modified copy of the this object
      • withDepthBiasEnable

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

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

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

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

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

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanPipelineRasterizationStateCreateInfo 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, depthClampEnable, rasterizerDiscardEnable, polygonMode, cullMode, frontFace, depthBiasEnable, depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor, lineWidth.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanPipelineRasterizationStateCreateInfo of​(java.util.Set<VulkanPipelineRasterizationStateCreateFlag> flags,
                                                                    boolean depthClampEnable,
                                                                    boolean rasterizerDiscardEnable,
                                                                    VulkanPolygonMode polygonMode,
                                                                    java.util.Set<VulkanCullModeFlag> cullMode,
                                                                    VulkanFrontFace frontFace,
                                                                    boolean depthBiasEnable,
                                                                    float depthBiasConstantFactor,
                                                                    float depthBiasClamp,
                                                                    float depthBiasSlopeFactor,
                                                                    float lineWidth)
        Construct a new immutable VulkanPipelineRasterizationStateCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        depthClampEnable - The value for the depthClampEnable attribute
        rasterizerDiscardEnable - The value for the rasterizerDiscardEnable attribute
        polygonMode - The value for the polygonMode attribute
        cullMode - The value for the cullMode attribute
        frontFace - The value for the frontFace attribute
        depthBiasEnable - The value for the depthBiasEnable attribute
        depthBiasConstantFactor - The value for the depthBiasConstantFactor attribute
        depthBiasClamp - The value for the depthBiasClamp attribute
        depthBiasSlopeFactor - The value for the depthBiasSlopeFactor attribute
        lineWidth - The value for the lineWidth attribute
        Returns:
        An immutable VulkanPipelineRasterizationStateCreateInfo instance
      • of

        public static VulkanPipelineRasterizationStateCreateInfo of​(java.lang.Iterable<VulkanPipelineRasterizationStateCreateFlag> flags,
                                                                    boolean depthClampEnable,
                                                                    boolean rasterizerDiscardEnable,
                                                                    VulkanPolygonMode polygonMode,
                                                                    java.lang.Iterable<VulkanCullModeFlag> cullMode,
                                                                    VulkanFrontFace frontFace,
                                                                    boolean depthBiasEnable,
                                                                    float depthBiasConstantFactor,
                                                                    float depthBiasClamp,
                                                                    float depthBiasSlopeFactor,
                                                                    float lineWidth)
        Construct a new immutable VulkanPipelineRasterizationStateCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        depthClampEnable - The value for the depthClampEnable attribute
        rasterizerDiscardEnable - The value for the rasterizerDiscardEnable attribute
        polygonMode - The value for the polygonMode attribute
        cullMode - The value for the cullMode attribute
        frontFace - The value for the frontFace attribute
        depthBiasEnable - The value for the depthBiasEnable attribute
        depthBiasConstantFactor - The value for the depthBiasConstantFactor attribute
        depthBiasClamp - The value for the depthBiasClamp attribute
        depthBiasSlopeFactor - The value for the depthBiasSlopeFactor attribute
        lineWidth - The value for the lineWidth attribute
        Returns:
        An immutable VulkanPipelineRasterizationStateCreateInfo instance