using System; namespace UnityEngine.TestTools.Graphics { /// /// Settings to control how image comparison is performed by ImageAssert. /// [Serializable] public class ImageComparisonSettings { /// /// The width to use for the rendered image. If a reference image already exists for this /// test and has a different size the test will fail. /// [Tooltip("The width to use for the rendered image.")] public int TargetWidth = 512; /// /// The height to use for the rendered image. If a reference image already exists for this /// test and has a different size the test will fail. /// [Tooltip("The height to use for the rendered image.")] public int TargetHeight = 512; /// /// The permitted perceptual difference between individual pixels of the images. /// /// The deltaE for each pixel of the image is compared and any differences below this /// threshold are ignored. /// [Tooltip("The permitted perceptual difference between individual pixels of the images.")] public float PerPixelCorrectnessThreshold; /// /// The maximum permitted average error value across the entire image. If the average /// per-pixel difference across the image is above this value, the images are considered /// not to be equal. /// [Tooltip("The maximum permitted average error value across the entire image.")] public float AverageCorrectnessThreshold; } }