Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2022.2.0a11
Issue ID
1420316
Regression
Yes
[HDRP][Metal] 3D HDRP template produces warnings regarding potentially uninitialized variable wposDir on opening the project
Steps to reproduce:
1. Create a project with 3D HDRP template
2. Observe Console window
Expected results: No errors or warnings on a clean template
Actual results: Warnings about potentially uninitialized variable wposDir
Reproducible with: 2022.2.0a11
Not reproducible with: 2022.2.0a10
Notes:
- Example of warnings produced:
"Shader warning in 'Deferred': use of potentially uninitialized variable (wposDir) at kernel Deferred_Indirect_Fptl_Variant9 at 0a11/Library/PackageCache/com.unity.render-pipelines.high-definition@14.0.2/Runtime/Lighting/Shadow/HDShadowAlgorithms.hlsl(220) (on metal)"
- Reproducible with 3D HDRP sample template as well
- Not reproducible on Ubuntu 18.04, Win10, so likely Metal specific
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a12