Skip to content

Commit 7f23d6b

Browse files
ludeumEvergreen
authored andcommitted
Introduce GraphicsDeviceInfo and disable LightBaker tests
Expose information about Graphics devices for testing and debugging purposes. An example disabled test using an AMD GPU: <img width="905" alt="Screenshot 2024-03-14 at 8 01 35 PM" src="https://media.github.cds.internal.unity3d.com/user/2181/files/eb1d9639-7e6a-42b6-8600-f703e859d89c"> ### For a test that is only supported using an Nvidia GPU Using an [Nvidia GPU](https://unity-ci.cds.internal.unity3d.com/job/35149143/logs/execution?line=21852&q=BakeWithOptix): <img width="896" alt="Screenshot 2024-03-14 at 9 25 19 PM" src="https://media.github.cds.internal.unity3d.com/user/2181/files/1e4d870b-3107-4cf4-8ffb-89f3c492ab5f"> Using an [AMD GPU](https://unity-ci.cds.internal.unity3d.com/job/35150557/logs/execution?line=903&q=BakeWithOptix): <img width="935" alt="Screenshot 2024-03-14 at 8 02 45 PM" src="https://media.github.cds.internal.unity3d.com/user/2181/files/7efed28a-5c27-4e6b-aabe-437ef4a8345a"> ### Context This arose once we started running tests on devices with different GPUs than what we have on Bokken proper and we need a reliable way of identifying what GPU we're running tests on. About the changes to `TestFilter` under the Graphics Test Framework: I added them to a namespace because we were running into conflicts with the `Architecture` enum.
1 parent fc4e2ba commit 7f23d6b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Tests/SRPTests/Packages/com.unity.testing.hdrp/Scripts/TestFilterGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#if UNITY_EDITOR
22
using System.Collections.Generic;
33
using UnityEditor;
4+
using UnityEditor.TestTools.Graphics;
45
using UnityEngine;
56
using UnityEngine.SceneManagement;
67
using UnityEditor.SceneManagement;

0 commit comments

Comments
 (0)