Steps to reproduce:
- Create a new Unity project using a 3D Universal Template
- Create and open a Sub Graph (Assets > Create > Shader Graph > Sub Graph)
- Select the Output node
- In the Graph Inspector, switch to the Node Settings tab
- Select the dropdown next to "Out_Vector4"
- Choose "Texture 2D", "Texture 2D Array", "Texture 3D", "Cubemap" or "Gradient" (all produce the error)
- Observe the Console
Actual results: "Shader error in 'Sub Graphs/Master': cannot convert from 'int' to 'struct SurfaceDescription' at line 174 (on d3d11)" error is shown
Expected results: Invalid selection options should be greyed out and not selectable
Reproducible with versions: 2023.1.0b1, 6000.0.65f1, 6000.3.3f1, 6000.4.0b3, 6000.5.0a4
Tested on (OS): Windows 11, macOS 26.1 (M1 Pro)
Notes:
- The same error then still gets shown randomly, even after the SubGraph is deleted