Search Issue Tracker
Won't Fix
Votes
3
Found in [Package]
13.1.8
14.0.3
15.0.1
Issue ID
SGB-338
Regression
Yes
Shader Graph compilation shows errors when compiling for the current build platform for DX12
Reproduction steps:
1. Open the attached project “Test”
2. In Project window find and open Assets/ProblematicShader/ParticleUnlitSoftWarp.shadergraph Shader Graph
3. Press “Compile and show code” in the Inspector (make sure it is selected to compile for “Current build platform”
4. Go to Edit > Project Settings > Player > Other Settings and change Graphics API to Direct3D12
5. Compile and show code again for the Assets/ProblematicShader/ParticleUnlitSoftWarp.shadergraph Shader Graph
Expected result: The Shader Graph is compiled successfully without errors
Actual result: “Shader error in 'Shader Graphs/ParticleUnlitSoftWarp': Instructions should not read uninitialized value. at ParticleUnlitSoftWarp(1700) (on d3d11)” errors
Reproducible with: 13.1.1 (2022.1.0a16), 13.1.8 (2022.1.21f1), 14.0.3 (2022.2.0b13), 15.0.1 (2023.1.0a17)
Not reproducible with: 10.10.1 (2020.3.41f1), 12.1.7(2021.3.12f1), 13.1.0 (2022.1.0a15)
Reproducible on: Windows 10
Note: Errors go away when Shader Graph is reimported
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
- VFX Graph effect instance stops rendering when a second instance of the same effect starts 2 frames later
- Operations on the Color32 array are not reflected in WebGL Player when HDR is off
- Rigidbody moves away from the original GameObject when Center of Mass is set in every frame
- WebGL Player does not proceed beyond logo screen when "Target WebAssembly 2023" is enabled
- "NullReferenceException" error thrown in UnityEditor.ObjectListArea when an audio clip is selected in one of two opened Project tabs while the second Project tab is not active/painted
Resolution Note:
As this is an experimental feature, we aren't committed to resolving this in the near-term. The information helps us understand what other considerations we may need to have before pulling this out of experimental.