docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PeakSignalToNoiseRatioResult

    The result of a Peak Signal to Noise Ratio (PSNR) texture comparison.

    Implements
    ITextureComparisonResult
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    public struct PeakSignalToNoiseRatioResult : ITextureComparisonResult

    Properties

    overallRatio

    The aggregated Peak Signal to Noise Ratio (PSNR) value.

    Declaration
    public float overallRatio { readonly get; init; }
    Property Value
    Type Description
    float

    perTextureRatio

    The Peak Signal to Noise Ratio (PSNR) value for each texture.

    Declaration
    public float[] perTextureRatio { readonly get; init; }
    Property Value
    Type Description
    float[]

    Methods

    ToString()

    Returns a string representation of the PSNR result.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string describing the result

    Overrides
    ValueType.ToString()

    Implements

    ITextureComparisonResult
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)