How to reproduce:
1. Open the “DedicatedServerShaderErrors“ project
2. Make sure to switch the Platform to “Dedicated Server” (File > Build Settings > “Dedicated Server” > “Switch Platform”)
3. Open the “SampleScene”
4. Make sure to enable “Enable Dedicated Server optimizations” (Edit > Project Settings > Player > Other Settings > Optimization)
5. Build And Run
6. Observe the Player Console
Expected result: No errors are logged
Actual result: Multiple “shader is not supported on this GPU” errors are thrown
Reproduced with: 2021.3.34f1, 2022.3.18f1, 2023.2.7f1, 2023.3.0b5
Reproduced on: Windows 11
Not reproduced on: No other environment tested
GPU reproduced with: NVIDIA GeForce RTX 2070 (by reporter), NVIDIA GeForce RTX 3050 Ti Laptop GPU
Notes:
1. Reproducible in a new project
2. Not reproducible in a Windows Standalone Player
3. Reproducible with HD RP and URP
4. Not reproducible in the Editor
5. Even though errors are thrown the Player continues to run
6. A Full Dedicated Server Player log with errors is provided in the internal comments