浏览代码

Merge pull request #908 from Unity-Technologies/HDRP_GraphicTests

Hdrp graphic tests
/main
GitHub 7 年前
当前提交
ada2f050
共有 2 个文件被更改,包括 10 次插入2 次删除
  1. 2
      Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/CommonAssets/Textures/Distortion/Distord_Test.exr.meta
  2. 10
      Tests/Scripts/Editor/GraphicTests/Framework/TestFramework.cs

2
Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/CommonAssets/Textures/Distortion/Distord_Test.exr.meta


serializedVersion: 5
mipmaps:
mipMapMode: 0
enableMipMap: 0
enableMipMap: 1
sRGBTexture: 0
linearTexture: 0
fadeOut: 1

10
Tests/Scripts/Editor/GraphicTests/Framework/TestFramework.cs


// Change the SRP before a full batch of tests
public virtual string _SRP_ID { get { return "NONE"; } }
private static bool doOnlyFirstRenderPipelineAsset = true;
doOnlyFirstRenderPipelineAsset = !EditorUtility.DisplayDialog(
"Graphic Tests",
"Do you want to run the test(s) on all available Render Pipeline assets or only the first (main) one ?",
"Hell YEAH, go for it !",
"No thanks, just one please.");
}
[OneTimeTearDown]

if (testSetup.renderPipelines == null || testSetup.renderPipelines.Length == 0)
yield break;
for (int r = 0; r < testSetup.renderPipelines.Length; ++r)
for (int r = 0; r < (doOnlyFirstRenderPipelineAsset?1:testSetup.renderPipelines.Length); ++r)
{
if (r==0)
testSetup.Setup();

正在加载...
取消
保存