Search Issue Tracker
Fixed in 6000.1.1f1
Fixed in 6000.1.X, 6000.2.X, 6000.2.0a9
Votes
0
Found in
2021.3.45f1
2022.3.53f1
6000.0.28f1
6000.1.0a5
6000.2.0a1
Issue ID
UUM-87786
Regression
No
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
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
Reproducible with: 2021.3.45f1, 2022.3.53f1, 6000.0.28f1, 6000.1.0a5
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- Reproducible with DX12 and DX11
- Reproducible with #ifdef SHADERGRAPH_PREVIEW
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Line breaking recursion max threshold hit" error when Overflow is set to Ellipsis with fonts missing the ellipsis character
- “Unable to load projects” message is shown in “Add project from repository” window when "All organizations" are selected in the Account menu
- DX12 Player brightness changes when changing Display resolution with Screen.SetResolution()
- Double-sided arrow mouse cursor does not appear when resizing the Player and Input backend is set to Input Manager (Old)
- Project disappears from the Projects list in Unity Hub when the Editor crashes
Add comment