Search Issue Tracker
Fixed in 12.0.x
Votes
0
Found in [Package]
10.4.0
Issue ID
1337137
Regression
Yes
[Shadergraph] Subgraphs should have different stage limitations for different outputs
Note: despite not technically being a regression due to being a bug with a later introduced feature, this bug will stop you from being able to do things that you can do in 7.x.x due to the fact that there is no stage limitation on subgraphs in that version. The first version this bug reproduces in is 10.4.0.
Repro steps:
1. Copy the attached shadergraph and subgraph into your project
2. Open the shadergraph
3. Try to plug the first output of the subgraph (NormalOut) into the vertex position stack node
Expected result: it lets you (This will work! Because when the shader compiles it will optimize out the part of the function that is not used in that instance. Doing this in 7.x.x where stage limitations on subgraphs doesn't exist yet will result in a shadergraph that compiles.)
Actual result: it blocks you from connecting that output because of the ddx in the subgraph that is connected to the other output
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (fix version 12.0.x):
Inputs/Outputs for sub-graphs should now be properly tracked per shader stage.
Additionally, visual errors were added for when a graph/sub-graph enters an invalid stage showing which nodes caused the errors.