Class VulkanSamplerCreateInfo.Builder

  • Enclosing class:
    VulkanSamplerCreateInfo

    public static final class VulkanSamplerCreateInfo.Builder
    extends java.lang.Object
    Builds instances of type VulkanSamplerCreateInfo. 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 VulkanSamplerCreateInfo.Builder from​(VulkanSamplerCreateInfoType instance)
        Fill a builder with attribute values from the provided VulkanSamplerCreateInfoType instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • setMipLodBias

        public final VulkanSamplerCreateInfo.Builder setMipLodBias​(float mipLodBias)
        Initializes the value for the mipLodBias attribute.
        Parameters:
        mipLodBias - The value for mipLodBias
        Returns:
        this builder for use in a chained invocation
      • setMaxAnisotropy

        public final VulkanSamplerCreateInfo.Builder setMaxAnisotropy​(double maxAnisotropy)
        Initializes the optional value maxAnisotropy to maxAnisotropy.
        Parameters:
        maxAnisotropy - The value for maxAnisotropy
        Returns:
        this builder for chained invocation
      • setMaxAnisotropy

        public final VulkanSamplerCreateInfo.Builder setMaxAnisotropy​(java.util.OptionalDouble maxAnisotropy)
        Initializes the optional value maxAnisotropy to maxAnisotropy.
        Parameters:
        maxAnisotropy - The value for maxAnisotropy
        Returns:
        this builder for use in a chained invocation
      • setCompareOp

        public final VulkanSamplerCreateInfo.Builder setCompareOp​(java.util.Optional<? extends VulkanCompareOp> compareOp)
        Initializes the optional value compareOp to compareOp.
        Parameters:
        compareOp - The value for compareOp
        Returns:
        this builder for use in a chained invocation
      • setMinLod

        public final VulkanSamplerCreateInfo.Builder setMinLod​(float minLod)
        Initializes the value for the minLod attribute.
        Parameters:
        minLod - The value for minLod
        Returns:
        this builder for use in a chained invocation
      • setMaxLod

        public final VulkanSamplerCreateInfo.Builder setMaxLod​(float maxLod)
        Initializes the value for the maxLod attribute.
        Parameters:
        maxLod - The value for maxLod
        Returns:
        this builder for use in a chained invocation
      • setUnnormalizedCoordinates

        public final VulkanSamplerCreateInfo.Builder setUnnormalizedCoordinates​(boolean unnormalizedCoordinates)
        Initializes the value for the unnormalizedCoordinates attribute.
        Parameters:
        unnormalizedCoordinates - The value for unnormalizedCoordinates
        Returns:
        this builder for use in a chained invocation