|
|
|
|
|
|
name = p.Name, |
|
|
|
relativePath = splitPaths.Last(), |
|
|
|
threshold = 0.02f, |
|
|
|
frameWait = 10 |
|
|
|
frameWait = 100 |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
[TearDown] |
|
|
|
public void TearDown() |
|
|
|
{ |
|
|
|
var testSetup = Object.FindObjectOfType<SetupSceneForRenderPipelineTest>(); |
|
|
|
if (testSetup == null) |
|
|
|
return; |
|
|
|
|
|
|
|
testSetup.TearDown(); |
|
|
|
} |
|
|
|
|
|
|
|
// [TestCaseSource(typeof(CollectScenes), "scenes") ]
|
|
|
|
public IEnumerator TestScene([ValueSource(typeof(CollectScenes), "scenes")]TestInfo testInfo) |
|
|
|
{ |
|
|
|
var prjRelativeGraphsPath = s_Path.Aggregate("Assets", Path.Combine); |
|
|
|
|
|
|
EditorSceneManager.OpenScene(filePath); |
|
|
|
|
|
|
|
var testSetup = Object.FindObjectOfType<SetupSceneForRenderPipelineTest> (); |
|
|
|
Assert.IsNotNull(testSetup, "No SetupSceneForRenderPipelineTest in scene " + testInfo.name); |
|
|
|
Assert.IsNotNull(testSetup.cameraToUse, "No configured camera in <SetupSceneForRenderPipelineTest>"); |
|
|
|
|
|
|
|
testSetup.Setup(); |
|
|
|
|
|
|
|
yield return null; |
|
|
|
yield return null; |
|
|
|
var testSetup = Object.FindObjectOfType<SetupSceneForRenderPipelineTest> (); |
|
|
|
Assert.IsNotNull(testSetup, "No SetupSceneForRenderPipelineTest in scene " + testInfo.name); |
|
|
|
Assert.IsNotNull(testSetup.cameraToUse, "No configured camera in <SetupSceneForRenderPipelineTest>"); |
|
|
|
while (Lightmapping.isRunning) |
|
|
|
{ |
|
|
|
yield return null; |
|
|
|
} |
|
|
|
var rtDesc = new RenderTextureDescriptor ( |
|
|
|
var rtDesc = new RenderTextureDescriptor ( |
|
|
|
testSetup.width, |
|
|
|
testSetup.height, |
|
|
|
testSetup.hdr ? RenderTextureFormat.ARGBHalf : RenderTextureFormat.ARGB32, |
|
|
|