Unity Issue Tracker - ShaderGraph error is thrown when the first subgraph output isn't previewable
Fixed
UUM-102007
ShaderGraph error is thrown when the first subgraph output isn't previewable
Unity: ShaderGraph
Fixed
6.3.X
6.0.X
Won't Fix
6.2.X
6.1.X
2022.3.X
Backporting this fix introduces additional risk in a version where this issue isn't prevalent.
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/New Shader Sub Graph.shadersubgraph“ subgraph
3. Change the type of the output to Sampler State
4. Observe the Console window
Expected result: No errors are thrown
Actual result: “Shader error in 'Sub Graphs/Master': cannot convert from 'int' to 'struct SurfaceDescription' at /(172) (on d3d11)” error is thrown