Unity Issue Tracker - Unrecognized identifier DECLARE_STACK_CB error is thrown when VirtualTexture Property is used with Custom RenderTexture target
Closed
UUM-104211
Unrecognized identifier DECLARE_STACK_CB error is thrown when VirtualTexture Property is used with Custom RenderTexture target
Unity: ShaderGraph
Won't Fix
6.5.X
6.4.X
6.3.X
6.2.X
6.1.X
6.0.X
2022.3.X
Unity 6.1 is no longer supported. This issue may be addressed in a future version.
Steps to reproduce:
Open the attached project
Open the New Shader Graph file
Observe the Console and the Preview window
Actual results: Shader error in 'Shader Graphs/Master': unrecognized identifier 'DECLARE_STACK_CB' at /(106) error is thrown, and the preview window is displaying a checkered magenta texture
Expected results: No errors are thrown and the Shader is compiled
Reproducible with versions: 2022.3.61f1, 6000.0.48f1, 6000.1.1f1, 6000.2.0a10
Tested on (OS): Ubuntu 24.04, macOS 15.4.1
Full Error message:
Shader error in 'Shader Graphs/Master': unrecognized identifier 'DECLARE_STACK_CB' at /(106) (on metal)