{
get
return m_faceColorsSelected ?? (m_faceColorsSelected = new Color[]
new Color(1f, 0f, 0f, .15f),
new Color(0f, 1f, 0f, .15f),
new Color(0f, 0f, 1f, .15f),
new Color(0f, 0f, 1f, .15f)
});
return m_faceColorsSelected ?? (m_faceColorsSelected = monochromeSelectedFace
? new Color[]
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using UnityEngine.Experimental.Rendering.HDPipeline;
using UnityEngine.Rendering;
namespace UnityEditor.Experimental.Rendering
CED.Action(Drawer_SectionInfluenceSettings)
);
public static readonly CED.IDrawer SectionFoldoutProxySettings;
public static readonly CED.IDrawer SectionFoldoutCaptureSettings;
public static readonly CED.IDrawer SectionCaptureMirrorSettings = CED.Action(Drawer_SectionCaptureMirror);
"The expected image had format {0} but the actual image had format {1}.", expected.format,
actual.format);
using (var expectedPixels = new NativeArray<Color32>(expected.GetPixels32(0), Allocator.Temp))
using (var actualPixels = new NativeArray<Color32>(actual.GetPixels32(0), Allocator.Temp))
using (var diffPixels = new NativeArray<Color32>(expectedPixels.Length, Allocator.Temp))
using (var sumOverThreshold = new NativeArray<float>(Mathf.CeilToInt(expectedPixels.Length / (float)k_BatchSize), Allocator.Temp))
using (var expectedPixels = new NativeArray<Color32>(expected.GetPixels32(0), Allocator.TempJob))
using (var actualPixels = new NativeArray<Color32>(actual.GetPixels32(0), Allocator.TempJob))
using (var diffPixels = new NativeArray<Color32>(expectedPixels.Length, Allocator.TempJob))
using (var sumOverThreshold = new NativeArray<float>(Mathf.CeilToInt(expectedPixels.Length / (float)k_BatchSize), Allocator.TempJob))
if (settings == null)
settings = new ImageComparisonSettings();