[ci skip][AUTO]: Automated code generating update: a8a6a48f9e7a6348d8381e04d69cc3c80bdfa72f (#11484) (#11486)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>
This commit is contained in:
Cocos Robot
2022-06-13 18:43:57 +08:00
committed by GitHub
parent e45943058e
commit a20b8edafd
2 changed files with 69 additions and 0 deletions
@@ -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<cc::render::PipelineRuntime>(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<std::string, true> arg0 = {};
HolderType<bool, false> 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<cc::render::PipelineRuntime>(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<std::string, true> arg0 = {};
HolderType<int32_t, false> 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<cc::render::PipelineRuntime>(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<std::string, true> arg0 = {};
HolderType<std::string, true> 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<cc::render::PipelineRuntime>(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<cc::render::PipelineRuntime>(cls);
@@ -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