Commit f9f9962
Introduce EditorWindowCapture class for Editor UI image comparison tests
Significantly improves the API in the Graphics Test Framework package and the Internal Editor API for capturing arbitrary Editor Windows.
- Adds new API to the Internal Editor Utility class to take snapshots of arbitrary windows instead of just SceneView windows
- Makes the older SceneView API obsolete
- Adds new API to the Graphics Test Framework to write the snapshot to a Texture2D for full compatibility with the current testing paradigm
- Refactors functionality for using this API on a SceneView window, leaving space for any other "special steps" done inside or outside the framework.
- Significantly improves the API usability and testability by moving away from IEnumerator setup and to an async setup instead.
- Updates the documentation around this functionality.
### Example captures
#### Scene view with no modifications

#### Scene view with all overlays disabled

#### Scene view with most disabled + Debug Draw Mode

#### Custom editor window
1 parent 81a1ed4 commit f9f9962
15 files changed
Lines changed: 3 additions & 18 deletions
File tree
- Tests/SRPTests/Projects
- BatchRendererGroup_HDRP/Packages
- BatchRendererGroup_URP/Packages
- BuiltInGraphicsTest_Foundation/Packages
- BuiltInGraphicsTest_Lighting/Packages
- HDRP_DXR_Tests/Packages
- HDRP_RuntimeTests/Packages
- HDRP_Tests/Packages
- ShaderGraphUniversalStereo/Packages
- ShaderGraph/Packages
- UniversalGfxTestStereo/Packages
- UniversalGraphicsTest_2D/Packages
- UniversalGraphicsTest_Foundation/Packages
- UniversalGraphicsTest_Lighting/Packages
- UniversalGraphicsTest_PostPro/Packages
- UniversalGraphicsTest_Terrain/Packages
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
0 commit comments