How to reproduce:
- Open the attached package
- Open Repro Scene (SG is in HDRP, if you are using URP Support VFX Graph flag gonna be needed)
- Open Unlit_VFX SG
- Select Float property in Blackboard
- in Graph Inspector change Mode from Default to Integer
Expected result: Shader is compiled for particles and errors are thrown
Actual result: Shader is not compiled for particles and errors are thrown
Error messages:
[Worker1] Shader error in 'Hidden/VFX/TestTransparent/System (1)/B/Mesh
VFX Unlit
SG Unlit': 'Frag': input parameter 'packedInput' missing semantics at /Users/Vita/Documents/unity/packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/ShaderPass/ShaderPassForwardUnlit.hlsl(88) (on d3d11)Compiling Subshader: 0, Pass: ForwardOnly, Fragment program with _BLENDMODE_OFF
[Worker1] Shader error in 'Hidden/VFX/TestTransparent/System (1)/A/VFX Unlit
SG Unlit': 'Frag': input parameter 'packedInput' missing semantics at /Users/Vita/Documents/unity/packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/ShaderPass/ShaderPassForwardUnlit.hlsl(88) (on d3d11)
Shader error in 'Hidden/VFX/TestTransparent/System (1)/A/VFX Unlit
SG Unlit': 'VertVFX': function return value missing semantics at /Users/Vita/Documents/unity/packages/com.unity.render-pipelines.high-definition/Runtime/ShaderLibrary/VisualEffectVertex.hlsl(18) (on d3d11)
Tested and reproduced on: 2021.3.7f1, 2023.1.0a6
Note: This affects both Lit and Unlit Output. With Unlit outputs are dispalyed in magenta color, Lit contains visual artifacts