From a20b8edafdfbe71bbf55c9ece3ed33e0b91ecca7 Mon Sep 17 00:00:00 2001 From: Cocos Robot <48829427+cocos-robot@users.noreply.github.com> Date: Mon, 13 Jun 2022 18:43:57 +0800 Subject: [PATCH] [ci skip][AUTO]: Automated code generating update: a8a6a48f9e7a6348d8381e04d69cc3c80bdfa72f (#11484) (#11486) Co-authored-by: cocos-robot --- .../cocos/bindings/auto/jsb_render_auto.cpp | 66 +++++++++++++++++++ native/cocos/bindings/auto/jsb_render_auto.h | 3 + 2 files changed, 69 insertions(+) diff --git a/native/cocos/bindings/auto/jsb_render_auto.cpp b/native/cocos/bindings/auto/jsb_render_auto.cpp index a46ebd7d5f..97db52f1c6 100644 --- a/native/cocos/bindings/auto/jsb_render_auto.cpp +++ b/native/cocos/bindings/auto/jsb_render_auto.cpp @@ -237,6 +237,69 @@ static bool js_render_PipelineRuntime_render(se::State& s) // NOLINT(readability } SE_BIND_FUNC(js_render_PipelineRuntime_render) +static bool js_render_PipelineRuntime_setMacroBool(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_render_PipelineRuntime_setMacroBool : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 2) { + HolderType arg0 = {}; + HolderType arg1 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_render_PipelineRuntime_setMacroBool : Error processing arguments"); + cobj->setMacroBool(arg0.value(), arg1.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2); + return false; +} +SE_BIND_FUNC(js_render_PipelineRuntime_setMacroBool) + +static bool js_render_PipelineRuntime_setMacroInt(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_render_PipelineRuntime_setMacroInt : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 2) { + HolderType arg0 = {}; + HolderType arg1 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_render_PipelineRuntime_setMacroInt : Error processing arguments"); + cobj->setMacroInt(arg0.value(), arg1.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2); + return false; +} +SE_BIND_FUNC(js_render_PipelineRuntime_setMacroInt) + +static bool js_render_PipelineRuntime_setMacroString(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_render_PipelineRuntime_setMacroString : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 2) { + HolderType arg0 = {}; + HolderType arg1 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_render_PipelineRuntime_setMacroString : Error processing arguments"); + cobj->setMacroString(arg0.value(), arg1.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2); + return false; +} +SE_BIND_FUNC(js_render_PipelineRuntime_setMacroString) + static bool js_render_PipelineRuntime_setProfiler(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -293,6 +356,9 @@ bool js_register_render_PipelineRuntime(se::Object* obj) // NOLINT(readability-i cls->defineFunction("destroy", _SE(js_render_PipelineRuntime_destroy)); cls->defineFunction("onGlobalPipelineStateChanged", _SE(js_render_PipelineRuntime_onGlobalPipelineStateChanged)); cls->defineFunction("render", _SE(js_render_PipelineRuntime_render)); + cls->defineFunction("setMacroBool", _SE(js_render_PipelineRuntime_setMacroBool)); + cls->defineFunction("setMacroInt", _SE(js_render_PipelineRuntime_setMacroInt)); + cls->defineFunction("setMacroString", _SE(js_render_PipelineRuntime_setMacroString)); cls->install(); JSBClassType::registerClass(cls); diff --git a/native/cocos/bindings/auto/jsb_render_auto.h b/native/cocos/bindings/auto/jsb_render_auto.h index 49aeec0afc..ad5801dc97 100644 --- a/native/cocos/bindings/auto/jsb_render_auto.h +++ b/native/cocos/bindings/auto/jsb_render_auto.h @@ -33,6 +33,9 @@ SE_DECLARE_FUNC(js_render_PipelineRuntime_activate); SE_DECLARE_FUNC(js_render_PipelineRuntime_destroy); SE_DECLARE_FUNC(js_render_PipelineRuntime_onGlobalPipelineStateChanged); SE_DECLARE_FUNC(js_render_PipelineRuntime_render); +SE_DECLARE_FUNC(js_render_PipelineRuntime_setMacroBool); +SE_DECLARE_FUNC(js_render_PipelineRuntime_setMacroInt); +SE_DECLARE_FUNC(js_render_PipelineRuntime_setMacroString); extern se::Object *__jsb_cc_render_Setter_proto; // NOLINT extern se::Class * __jsb_cc_render_Setter_class; // NOLINT