add xr sdk to test filters
This commit is contained in:
Родитель
ec0f7a6f6f
Коммит
974381a1ad
|
@ -114,7 +114,8 @@ namespace UnityEditor.TestTools.Graphics
|
|||
if ((filter.BuildPlatform == buildPlatform || filter.BuildPlatform == BuildTarget.NoTarget) &&
|
||||
(filter.GraphicsDevice == graphicsDevices.First() || filter.GraphicsDevice == GraphicsDeviceType.Null) &&
|
||||
(filter.ColorSpace == colorSpace || filter.ColorSpace == ColorSpace.Uninitialized) &&
|
||||
(filter.stereoModes == null || filter.stereoModes.Length == 0|| filter.stereoModes.Contains(stereoPath)))
|
||||
(filter.stereoModes == null || filter.stereoModes.Length == 0 || filter.stereoModes.Contains(stereoPath)) &&
|
||||
(filter.XrSdk == vrSDK.First() || filter.XrSdk == null))
|
||||
{
|
||||
scenesWithDisabledScenes.First(s => s.path.Contains(currentScene.name)).enabled = false;
|
||||
Debug.Log(string.Format("Removed scene {0} from build settings because {1}", currentScene.name, filter.Reason));
|
||||
|
|
|
@ -11,6 +11,7 @@ public struct PlatformConfigTestFilter
|
|||
public ColorSpace ColorSpace;
|
||||
public BuildTarget BuildPlatform;
|
||||
public GraphicsDeviceType GraphicsDevice;
|
||||
public string XrSdk;
|
||||
public StereoRenderingPath[] stereoModes;
|
||||
public string Reason;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче