Ejemplo n.º 1
0
 public VarDeclaration GetGlobalVar(string[] reserved)
 => new VarDeclaration(ShaderGraph.GetTypeName <T>(), ShaderGraph.GetUniqueName(Name, reserved), Value.GetHLSLValue());
Ejemplo n.º 2
0
 public VarDeclaration GetGlobalVar(string[] reserved) 
     => new VarDeclaration(ShaderGraph.GetTypeName<T>(), Name[0].GetUniqueName(reserved), DefaultValue[0].GetHLSLValue());
Ejemplo n.º 3
0
 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}\";");
 }
Ejemplo n.º 4
0
 public virtual VarDeclaration CreateShaderCallAssignment(string localVar, IEnumerable<string> arguments)
     => new VarDeclaration(ShaderGraph.GetTypeName<T>(), localVar, $"{Name}({string.Join(", ", arguments)})");