Class VulkanComputePipelineCreateInfo

    • Method Detail

      • withFlags

        public final VulkanComputePipelineCreateInfo withFlags​(java.lang.Iterable<VulkanPipelineCreateFlag> 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
      • withStage

        public final VulkanComputePipelineCreateInfo withStage​(VulkanPipelineShaderStageCreateInfo value)
        Copy the current immutable object by setting a value for the stage attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for stage
        Returns:
        A modified copy of the this object
      • withLayout

        public final VulkanComputePipelineCreateInfo withLayout​(VulkanPipelineLayoutType value)
        Copy the current immutable object by setting a value for the layout attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for layout
        Returns:
        A modified copy of the this object
      • withBasePipeline

        public final VulkanComputePipelineCreateInfo withBasePipeline​(java.util.Optional<? extends VulkanPipelineType> optional)
        Copy the current immutable object by setting an optional value for the basePipeline 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 basePipeline
        Returns:
        A modified copy of this object
      • withBasePipelineIndex

        public final VulkanComputePipelineCreateInfo withBasePipelineIndex​(int value)
        Copy the current immutable object by setting a present value for the optional basePipelineIndex attribute.
        Parameters:
        value - The value for basePipelineIndex
        Returns:
        A modified copy of this object
      • withBasePipelineIndex

        public final VulkanComputePipelineCreateInfo withBasePipelineIndex​(java.util.OptionalInt optional)
        Copy the current immutable object by setting an optional value for the basePipelineIndex attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for basePipelineIndex
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanComputePipelineCreateInfo 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, stage, layout, basePipeline, basePipelineIndex.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanComputePipelineCreateInfo of​(java.util.Set<VulkanPipelineCreateFlag> flags,
                                                         VulkanPipelineShaderStageCreateInfo stage,
                                                         VulkanPipelineLayoutType layout,
                                                         java.util.Optional<VulkanPipelineType> basePipeline,
                                                         java.util.OptionalInt basePipelineIndex)
        Construct a new immutable VulkanComputePipelineCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        stage - The value for the stage attribute
        layout - The value for the layout attribute
        basePipeline - The value for the basePipeline attribute
        basePipelineIndex - The value for the basePipelineIndex attribute
        Returns:
        An immutable VulkanComputePipelineCreateInfo instance
      • of

        public static VulkanComputePipelineCreateInfo of​(java.lang.Iterable<VulkanPipelineCreateFlag> flags,
                                                         VulkanPipelineShaderStageCreateInfo stage,
                                                         VulkanPipelineLayoutType layout,
                                                         java.util.Optional<? extends VulkanPipelineType> basePipeline,
                                                         java.util.OptionalInt basePipelineIndex)
        Construct a new immutable VulkanComputePipelineCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        stage - The value for the stage attribute
        layout - The value for the layout attribute
        basePipeline - The value for the basePipeline attribute
        basePipelineIndex - The value for the basePipelineIndex attribute
        Returns:
        An immutable VulkanComputePipelineCreateInfo instance