浏览代码

Fixes to TestFramework and template images added.

/Branch_batcher
Felipe Lira 8 年前
当前提交
43678f6a
共有 9 个文件被更改,包括 2823 次插入8 次删除
  1. 17
      Assets/GraphicsTests/Editor/TestFramework.cs
  2. 120
      ImageTemplates/LowEnd/Camera/LDPipe_Camera_Clip.unity.png
  3. 266
      ImageTemplates/LowEnd/Camera/LDPipe_Camera_Ortho.unity.png
  4. 120
      ImageTemplates/LowEnd/Camera/LDPipe_Camera_TargetTexture.unity.png
  5. 663
      ImageTemplates/LowEnd/Shaders/LDPipe_LitShaderLightProbes.unity.png
  6. 1001
      ImageTemplates/LowEnd/Shaders/LDPipe_LitShaderMaps.unity.png
  7. 644
      ImageTemplates/LowEnd/Shaders/LDPipe_LitShaderReflection.unity.png

17
Assets/GraphicsTests/Editor/TestFramework.cs


using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;

};
// info that gets generated for use
// in a dod way
// in a dod way
public struct TestInfo
{
public string name;

// find all the scenes
var absoluteScenesPath = s_Path.Aggregate(Application.dataPath, Path.Combine);
var allPaths = System.IO.Directory.GetFiles(absoluteScenesPath, "*.unity", System.IO.SearchOption.AllDirectories);
// construct all the needed test infos
foreach (var path in allPaths)
{

var splitPaths = Regex.Split (p.FullName, split);
var splitPaths = p.FullName.Split (new [] {split}, StringSplitOptions.RemoveEmptyEntries);
yield return new TestInfo
yield return new TestInfo
{
name = p.Name,
relativePath = splitPaths.Last(),

var testSetup = Object.FindObjectOfType<SetupSceneForRenderPipelineTest> ();
Assert.IsNotNull(testSetup, "No SetupSceneForRenderPipelineTest in scene " + testInfo.name);
Assert.IsNotNull(testSetup.cameraToUse, "No configured camera in <SetupSceneForRenderPipelineTest>");
testSetup.width,
testSetup.height,
testSetup.width,
testSetup.height,
testSetup.hdr ? RenderTextureFormat.ARGBHalf : RenderTextureFormat.ARGB32,
24);
rtDesc.sRGB = PlayerSettings.colorSpace == ColorSpace.Linear;

if (pixels1.Length != pixels2.Length)
return false;
int numberOfPixels = pixels1.Length;
float sumOfSquaredColorDistances = 0;

120
ImageTemplates/LowEnd/Camera/LDPipe_Camera_Clip.unity.png
文件差异内容过多而无法显示
查看文件

266
ImageTemplates/LowEnd/Camera/LDPipe_Camera_Ortho.unity.png
文件差异内容过多而无法显示
查看文件

120
ImageTemplates/LowEnd/Camera/LDPipe_Camera_TargetTexture.unity.png
文件差异内容过多而无法显示
查看文件

663
ImageTemplates/LowEnd/Shaders/LDPipe_LitShaderLightProbes.unity.png

之前 之后
宽度: 1280  |  高度: 720  |  大小: 181 KiB

1001
ImageTemplates/LowEnd/Shaders/LDPipe_LitShaderMaps.unity.png
文件差异内容过多而无法显示
查看文件

644
ImageTemplates/LowEnd/Shaders/LDPipe_LitShaderReflection.unity.png

之前 之后
宽度: 1280  |  高度: 720  |  大小: 138 KiB
正在加载...
取消
保存