Unity Issue Tracker - Shader cache is not used when building the Player repeatedly
Fixed
UUM-75264
Shader cache is not used when building the Player repeatedly
Unity: Shader System
Fixed
6.1.X
6.0.X
2022.3.X
2021.3.X
Fixed a bug that caused compute shader compilation logs to report only a single variant found from the cache even if in reality all of the variants were loaded from the cache.
Fixed a bug that caused compute shader compilation logs to report only a single variant found from the cache even if in reality all of the variants were loaded from the cache.
Fixed a bug that caused compute shader compilation logs to report only a single variant found from the cache even if in reality all of the variants were loaded from the cache.
Fixed a bug that caused compute shader compilation logs to report only a single variant found from the cache even if in reality all of the variants were loaded from the cache.
Reproduction steps:
1. Open the attached “BugReportWireframe.zip“ project
2. Go to “File → Build settings“
3. Press the arrow on the right side of the “Build“ button and select “Clean build“
4. Once the build finishes, build the project again
5. Once the second build finishes, open the “Editor.log” file
6. Search for “Compiling computer shader “StpTaa““ (CTRL+F)
7. Observe what is in the following 4 lines