Unity Issue Tracker - Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
Fixed
UUM-87786
Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
Unity: ShaderGraph
Fixed
6.2.X
6.1.X
Won't Fix
6.0.X
2022.3.X
2021.3.X
We'll aim to resolve this for 6.1.
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Open the “/Assets/SG_SurfaceEffect_Blood.shadergraph“ in Shader Graph
4. Press CTRL + S
5. Observe the Console
Expected result: No Errors exist
Actual result: Error “cannot map expression to ps_4_0 instruction set“ is present