You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing functions in a separate hlsl file and then using them as custom functions in shader graph Rider doesn't see the global properties defined in the graph. Also Rider complains about unresolved symbols for typical unity shader macros like SAMPLE_TEXTURE2D.
One way to work around this is to pass all the shader graph properties as parameters to the function but it's annoying and still doesn't solve the problem with the macros.
Steps to reproduce:
Create a shader graph and add a property - for example SomeTexture with type Texture2D
When writing functions in a separate
hlsl
file and then using them as custom functions in shader graph Rider doesn't see the global properties defined in the graph. Also Rider complains about unresolved symbols for typical unity shader macros likeSAMPLE_TEXTURE2D
.One way to work around this is to pass all the shader graph properties as parameters to the function but it's annoying and still doesn't solve the problem with the macros.
Steps to reproduce:
SomeTexture
with typeTexture2D
hlsl
file and write a function in it:SAMPLE_TEXTURE2D
,_SomeTexture
andsampler_SomeTexture
I'm using Unity 6000.0.23f1 and Rider 2024.1.2
The text was updated successfully, but these errors were encountered: