Reproduction steps:
1. Open the attached “repro-project“ project
2. Build And Run the project
3. Observe the Console window
Expected result: Build is created
Actual result: Build fails due to errors
Reproducible with: 2021.3.15f1, 2021.3.16f1
Not reproducible with: 2021.3.14f1, 2022.2.2f1, 2023.1.0a25
Could not test with: 2020.3.44f1 (Due to script errors)
Reproduced on: macOS Monterey 12.6 (Intel)
Error:
ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: subshaderIndex