mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
[ci skip][AUTO]: Automated code generating update: cd5f758d5fbd96f9598e388e28886c2be9b69a96 (#11123) (#11127)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
This commit is contained in:
@@ -21941,85 +21941,36 @@ bool js_register_gfx_Device(se::Object* obj) // NOLINT(readability-identifier-na
|
||||
se::Object* __jsb_cc_gfx_DeviceManager_proto = nullptr; // NOLINT
|
||||
se::Class* __jsb_cc_gfx_DeviceManager_class = nullptr; // NOLINT
|
||||
|
||||
static bool js_gfx_DeviceManager_addSurfaceEventListener_static(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
{
|
||||
const auto& args = s.args();
|
||||
size_t argc = args.size();
|
||||
if (argc == 0) {
|
||||
cc::gfx::DeviceManager::addSurfaceEventListener();
|
||||
return true;
|
||||
}
|
||||
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
||||
return false;
|
||||
}
|
||||
SE_BIND_FUNC(js_gfx_DeviceManager_addSurfaceEventListener_static)
|
||||
|
||||
static bool js_gfx_DeviceManager_create_static(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
{
|
||||
CC_UNUSED bool ok = true;
|
||||
const auto& args = s.args();
|
||||
size_t argc = args.size();
|
||||
CC_UNUSED bool ok = true;
|
||||
if (argc == 1) {
|
||||
HolderType<cc::gfx::DeviceInfo, true> arg0 = {};
|
||||
ok &= sevalue_to_native(args[0], &arg0, nullptr);
|
||||
SE_PRECONDITION2(ok, false, "js_gfx_DeviceManager_create_static : Error processing arguments");
|
||||
cc::gfx::Device* result = cc::gfx::DeviceManager::create(arg0.value());
|
||||
ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/);
|
||||
SE_PRECONDITION2(ok, false, "js_gfx_DeviceManager_create_static : Error processing arguments");
|
||||
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
||||
return true;
|
||||
}
|
||||
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
||||
do {
|
||||
if (argc == 1) {
|
||||
HolderType<cc::gfx::DeviceInfo, true> arg0 = {};
|
||||
ok &= sevalue_to_native(args[0], &arg0, s.thisObject());
|
||||
if (!ok) { ok = true; break; }
|
||||
cc::gfx::Device* result = cc::gfx::DeviceManager::create(arg0.value());
|
||||
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
||||
SE_PRECONDITION2(ok, false, "js_gfx_DeviceManager_create_static : Error processing arguments");
|
||||
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
||||
return true;
|
||||
}
|
||||
} while (false);
|
||||
do {
|
||||
if (argc == 0) {
|
||||
cc::gfx::Device* result = cc::gfx::DeviceManager::create();
|
||||
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
||||
SE_PRECONDITION2(ok, false, "js_gfx_DeviceManager_create_static : Error processing arguments");
|
||||
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
||||
return true;
|
||||
}
|
||||
} while (false);
|
||||
SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc);
|
||||
return false;
|
||||
}
|
||||
SE_BIND_FUNC(js_gfx_DeviceManager_create_static)
|
||||
|
||||
static bool js_gfx_DeviceManager_destroy_static(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
{
|
||||
const auto& args = s.args();
|
||||
size_t argc = args.size();
|
||||
if (argc == 0) {
|
||||
cc::gfx::DeviceManager::destroy();
|
||||
return true;
|
||||
}
|
||||
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
||||
return false;
|
||||
}
|
||||
SE_BIND_FUNC(js_gfx_DeviceManager_destroy_static)
|
||||
|
||||
static bool js_gfx_DeviceManager_getGFXName_static(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
{
|
||||
const auto& args = s.args();
|
||||
size_t argc = args.size();
|
||||
CC_UNUSED bool ok = true;
|
||||
if (argc == 0) {
|
||||
std::string result = cc::gfx::DeviceManager::getGFXName();
|
||||
ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/);
|
||||
SE_PRECONDITION2(ok, false, "js_gfx_DeviceManager_getGFXName_static : Error processing arguments");
|
||||
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
||||
return true;
|
||||
}
|
||||
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
||||
return false;
|
||||
}
|
||||
SE_BIND_FUNC(js_gfx_DeviceManager_getGFXName_static)
|
||||
|
||||
static bool js_gfx_DeviceManager_isDetachDeviceThread_static(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
{
|
||||
const auto& args = s.args();
|
||||
size_t argc = args.size();
|
||||
CC_UNUSED bool ok = true;
|
||||
if (argc == 0) {
|
||||
bool result = cc::gfx::DeviceManager::isDetachDeviceThread();
|
||||
ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/);
|
||||
SE_PRECONDITION2(ok, false, "js_gfx_DeviceManager_isDetachDeviceThread_static : Error processing arguments");
|
||||
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
||||
return true;
|
||||
}
|
||||
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
||||
return false;
|
||||
}
|
||||
SE_BIND_FUNC(js_gfx_DeviceManager_isDetachDeviceThread_static)
|
||||
static bool js_cc_gfx_DeviceManager_finalize(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
{
|
||||
return true;
|
||||
@@ -22033,11 +21984,7 @@ bool js_register_gfx_DeviceManager(se::Object* obj) // NOLINT(readability-identi
|
||||
#if CC_DEBUG
|
||||
cls->defineStaticProperty("isJSBClass", _SE(js_gfx_getter_return_true), nullptr);
|
||||
#endif
|
||||
cls->defineStaticFunction("addSurfaceEventListener", _SE(js_gfx_DeviceManager_addSurfaceEventListener_static));
|
||||
cls->defineStaticFunction("create", _SE(js_gfx_DeviceManager_create_static));
|
||||
cls->defineStaticFunction("destroy", _SE(js_gfx_DeviceManager_destroy_static));
|
||||
cls->defineStaticFunction("getGFXName", _SE(js_gfx_DeviceManager_getGFXName_static));
|
||||
cls->defineStaticFunction("isDetachDeviceThread", _SE(js_gfx_DeviceManager_isDetachDeviceThread_static));
|
||||
cls->defineFinalizeFunction(_SE(js_cc_gfx_DeviceManager_finalize));
|
||||
cls->install();
|
||||
JSBClassType::registerClass<cc::gfx::DeviceManager>(cls);
|
||||
|
||||
@@ -900,9 +900,5 @@ extern se::Class * __jsb_cc_gfx_DeviceManager_class; // NOLINT
|
||||
|
||||
bool js_register_cc_gfx_DeviceManager(se::Object *obj); // NOLINT
|
||||
|
||||
SE_DECLARE_FUNC(js_gfx_DeviceManager_addSurfaceEventListener);
|
||||
SE_DECLARE_FUNC(js_gfx_DeviceManager_create);
|
||||
SE_DECLARE_FUNC(js_gfx_DeviceManager_destroy);
|
||||
SE_DECLARE_FUNC(js_gfx_DeviceManager_getGFXName);
|
||||
SE_DECLARE_FUNC(js_gfx_DeviceManager_isDetachDeviceThread);
|
||||
// clang-format on
|
||||
|
||||
Reference in New Issue
Block a user