docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct LumaPipelineResult

    Contains the luma values on an actual and expect image. This is an output of the LumePipeline and used both by the SSIM and PSNR algorithm.

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

    Properties

    ActualLuma

    Per-pixel luma values computed from the actual image.

    Declaration
    public NativeArray<float> ActualLuma { readonly get; init; }
    Property Value
    Type Description
    NativeArray<float>

    DeltaLuma

    Per-pixel luma difference (e.g., Actual - Expected) or another delta definition used by the pipeline.

    Declaration
    public NativeArray<float> DeltaLuma { readonly get; init; }
    Property Value
    Type Description
    NativeArray<float>

    ExpectedLuma

    Per-pixel luma values computed from the expected image.

    Declaration
    public NativeArray<float> ExpectedLuma { readonly get; init; }
    Property Value
    Type Description
    NativeArray<float>

    Handle

    Job handle representing the luma computation work. Call Complete() before accessing luma arrays.

    Declaration
    public JobHandle Handle { readonly get; init; }
    Property Value
    Type Description
    JobHandle

    Height

    Image height in pixels for the luma buffers.

    Declaration
    public int Height { readonly get; set; }
    Property Value
    Type Description
    int

    Width

    Image width in pixels for the luma buffers.

    Declaration
    public int Width { readonly get; set; }
    Property Value
    Type Description
    int

    Methods

    Complete()

    Ensure that the luma job has completed.

    Declaration
    public void Complete()

    Dispose()

    Disposes of the different fields of the luma job.

    Declaration
    public void Dispose()

    Implements

    IDisposable
    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)