virtualx-engine/modules/mono/editor/script_templates/VisualShaderNodeCustom/basic.cs
Raul Santos 9a10701c69
C#: Assume 64-bit types when type has no meta
When the C# bindings generator finds a type without meta assume the type
refers to the 64-bit version of the type:
- `float` is converted to `double`
- `int` is converted to `long`
2022-09-01 10:29:52 +02:00

62 lines
1.1 KiB
C#

// meta-description: Visual shader's node plugin template
using _BINDINGS_NAMESPACE_;
using System;
public partial class VisualShaderNode_CLASS_ : _BASE_
{
public override string _GetName()
{
return "_CLASS_";
}
public override string _GetCategory()
{
return "";
}
public override string _GetDescription()
{
return "";
}
public override long _GetReturnIconType()
{
return 0;
}
public override long _GetInputPortCount()
{
return 0;
}
public override string _GetInputPortName(long port)
{
return "";
}
public override long _GetInputPortType(long port)
{
return 0;
}
public override long _GetOutputPortCount()
{
return 1;
}
public override string _GetOutputPortName(long port)
{
return "result";
}
public override long _GetOutputPortType(long port)
{
return 0;
}
public override string _GetCode(Godot.Collections.Array<string> inputVars, Godot.Collections.Array<string> outputVars, Shader.Mode mode, VisualShader.Type type)
{
return "";
}
}