Describe the bug
Shader variant Player.log parsing does not correctly parse unnamed passes, starting with Unity 2021.2.14 (I did a binary search of Unity downloads today to narrow it down). Changes to the format seems to be a recurring theme, but unfortunately this time it was introduced in a patch release, so the UNITY_2021_3_OR_NEWER scripting define symbol won't cut it this time in the special case handling. This new format also applies to the latest LTS at the time of writing (2021.3.16). The pass new format is of the form pass: <Unnamed Pass 0>.
I also noticed a difference in Editor.log: The pass name is an empty string rather than Pass 0
Snippets from Unity 2021.2.13 logs
Editor.log
Compiling shader "Hidden/BlitCopy" pass "Pass 0" (vp)
1 / 1 variants left after stripping, processed in 0.00 seconds
starting compilation...
Observe the missing compiled shaders. If you export a shader variant collection and use it in shader stripping, you'll notice pink textures when running the exe.
Expected behavior
Should correctly parse unnamed passes
Screenshots
If applicable, add screenshots to help explain your problem.
Information (please complete the following information):
OS: Windows
Unity version: 2021.2.14 - 2021.3.16
Project Auditor version: 0.9.0-preview
Additional context
Add any other context about the problem here.
When I get some time, I'll look into contributing a fix in the ShaderModule code.
Describe the bug Shader variant
Player.log
parsing does not correctly parse unnamed passes, starting with Unity 2021.2.14 (I did a binary search of Unity downloads today to narrow it down). Changes to the format seems to be a recurring theme, but unfortunately this time it was introduced in a patch release, so the UNITY_2021_3_OR_NEWER scripting define symbol won't cut it this time in the special case handling. This new format also applies to the latest LTS at the time of writing (2021.3.16). The pass new format is of the formpass: <Unnamed Pass 0>
.I also noticed a difference in Editor.log: The pass name is an empty string rather than Pass 0
Snippets from Unity 2021.2.13 logs
Editor.log
Player.log
Snippet from Unity 2021.2.14 logs
Editor.log
Player.log
To Reproduce
3D (URP) Core
template.Expected behavior Should correctly parse unnamed passes
Screenshots If applicable, add screenshots to help explain your problem.
Information (please complete the following information):
Additional context Add any other context about the problem here.
When I get some time, I'll look into contributing a fix in the ShaderModule code.