public VarDeclaration GetGlobalVar(string[] reserved) => new VarDeclaration(ShaderGraph.GetTypeName <T>(), ShaderGraph.GetUniqueName(Name, reserved), Value.GetHLSLValue());
public VarDeclaration GetGlobalVar(string[] reserved) => new VarDeclaration(ShaderGraph.GetTypeName<T>(), Name[0].GetUniqueName(reserved), DefaultValue[0].GetHLSLValue());
public VarDeclaration GetGlobalVar(string[] reserved) { var name = Name[0].GetUniqueName(reserved); return new VarDeclaration(ShaderGraph.GetTypeName<Vector4>(), name, DefaultValue[0].GetHLSLValue(), $"bool color=true; String uiname=\"{name}\";"); }
public virtual VarDeclaration CreateShaderCallAssignment(string localVar, IEnumerable<string> arguments) => new VarDeclaration(ShaderGraph.GetTypeName<T>(), localVar, $"{Name}({string.Join(", ", arguments)})");