Steps to reproduce:
1. Open Unity project https://github.com/Wilfrid-Unity/urp-depth-mismatch
2. In Build Profiles window, select a target platform that defaults to 24bits depth (Android or Switch for example)
Actual results:
Editor spams error message: "Graphics.COpyTexture can only copy between same texture format gourps (d3d12 base formats: src=19 dst=44)
Expected results:
Editor spams no error message
Reproducible with versions: 6000.1.0a9
Not reproducible with versions:
Can’t test with versions:
Tested on (OS): Windows
Notes:
The code that decides the format of source texture and the code that decides the format of destination texture are not the same, which causes the mismatch when target platform is not windows.
The issue does not appear in the Player (windows or non-windows alike).