Merge pull request #56480 from Chaosus/vs_plugin_gdscript_template
This commit is contained in:
commit
8e2398207c
5 changed files with 112 additions and 4 deletions
|
|
@ -349,11 +349,11 @@ String VisualShaderNodeCustom::get_output_port_name(int p_port) const {
|
|||
|
||||
String VisualShaderNodeCustom::generate_code(Shader::Mode p_mode, VisualShader::Type p_type, int p_id, const String *p_input_vars, const String *p_output_vars, bool p_for_preview) const {
|
||||
ERR_FAIL_COND_V(!GDVIRTUAL_IS_OVERRIDDEN(_get_code), "");
|
||||
Vector<String> input_vars;
|
||||
TypedArray<String> input_vars;
|
||||
for (int i = 0; i < get_input_port_count(); i++) {
|
||||
input_vars.push_back(p_input_vars[i]);
|
||||
}
|
||||
Array output_vars;
|
||||
TypedArray<String> output_vars;
|
||||
for (int i = 0; i < get_output_port_count(); i++) {
|
||||
output_vars.push_back(p_output_vars[i]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ protected:
|
|||
GDVIRTUAL0RC(int, _get_output_port_count)
|
||||
GDVIRTUAL1RC(int, _get_output_port_type, int)
|
||||
GDVIRTUAL1RC(String, _get_output_port_name, int)
|
||||
GDVIRTUAL4RC(String, _get_code, Vector<String>, TypedArray<String>, Shader::Mode, VisualShader::Type)
|
||||
GDVIRTUAL4RC(String, _get_code, TypedArray<String>, TypedArray<String>, Shader::Mode, VisualShader::Type)
|
||||
GDVIRTUAL1RC(String, _get_global_code, Shader::Mode)
|
||||
GDVIRTUAL0RC(bool, _is_highend)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue