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
Inherited Members
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()