シェーダーグラフのノードを自作できるみたいなんで以下の感じでテクスチャをRGBAでアウトプットする
ノードを作ってみたのですが、
Preview shader for graph has 1 error:
Shader compilation error in graph at line 47 (on d3d11):
undeclared identifier '_MyCustomNode_93134358_Sampler'

とエラーがでてしまいます。調べてもそれらしい情報がみつからずに手詰まり状態です。
シェーダーにテクスチャが宣言されていなバグだろうとは思うのですが、どなたか情報もってる方おられませんでしょうか?
using UnityEngine;
using UnityEditor.ShaderGraph;
using System.Reflection;

[Title("Custom", "My Custom Node")]
public class NewBehaviourScript : CodeFunctionNode
{ public NewBehaviourScript()
{
name = "My Custom Node";
}
protected override MethodInfo GetFunctionToConvert()
{
return GetType().GetMethod("test",
BindingFlags.Static | BindingFlags.NonPublic);
}
static string test(
[Slot(0, Binding.None)] Texture2D Texture,
[Slot(1, Binding.MeshUV0)] DynamicDimensionVector UV,
[Slot(2, Binding.None)] SamplerState Sampler,

[Slot(3, Binding.None)] out ColorRGBA Out)
{return @"{Out = SAMPLE_TEXTURE2D(Texture, Sampler, UV);}";}
}