From 09fe61bb9a1bc177eb86408708bf41f69cd9872c Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Thu, 19 Mar 2020 13:45:36 +0800 Subject: [PATCH] [ci skip][AUTO]: updating jsbinding automatically (#2295) --- .../js-bindings/auto/jsb_gfx_auto.cpp | 38 +++++++++++++++++++ .../js-bindings/auto/jsb_gfx_auto.hpp | 2 + 2 files changed, 40 insertions(+) diff --git a/native/cocos/scripting/js-bindings/auto/jsb_gfx_auto.cpp b/native/cocos/scripting/js-bindings/auto/jsb_gfx_auto.cpp index 72de91bab8..0a1e88c68d 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_gfx_auto.cpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_gfx_auto.cpp @@ -12889,6 +12889,24 @@ bool js_register_gfx_GFXObject(se::Object* obj) se::Object* __jsb_cocos2d_GFXDevice_proto = nullptr; se::Class* __jsb_cocos2d_GFXDevice_class = nullptr; +static bool js_gfx_GFXDevice_getNumInstances(se::State& s) +{ + cocos2d::GFXDevice* cobj = (cocos2d::GFXDevice*)s.nativeThisObject(); + SE_PRECONDITION2(cobj, false, "js_gfx_GFXDevice_getNumInstances : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + unsigned int result = cobj->getNumInstances(); + ok &= uint32_to_seval((unsigned int)result, &s.rval()); + SE_PRECONDITION2(ok, false, "js_gfx_GFXDevice_getNumInstances : Error processing arguments"); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_gfx_GFXDevice_getNumInstances) + static bool js_gfx_GFXDevice_getCommandAllocator(se::State& s) { cocos2d::GFXDevice* cobj = (cocos2d::GFXDevice*)s.nativeThisObject(); @@ -13569,6 +13587,7 @@ bool js_register_gfx_GFXDevice(se::Object* obj) cls->defineProperty("context", _SE(js_gfx_GFXDevice_getContext), nullptr); cls->defineProperty("vendor", _SE(js_gfx_GFXDevice_getVendor), nullptr); cls->defineProperty("mainWindow", _SE(js_gfx_GFXDevice_getMainWindow), nullptr); + cls->defineFunction("getNumInstances", _SE(js_gfx_GFXDevice_getNumInstances)); cls->defineFunction("hasFeature", _SE(js_gfx_GFXDevice_hasFeature)); cls->defineFunction("createCommandAllocator", _SE(js_gfx_GFXDevice_createCommandAllocator)); cls->defineFunction("getAPI", _SE(js_gfx_GFXDevice_getAPI)); @@ -17086,6 +17105,24 @@ static bool js_gfx_GFXCommandBuffer_setStencilWriteMask(se::State& s) } SE_BIND_FUNC(js_gfx_GFXCommandBuffer_setStencilWriteMask) +static bool js_gfx_GFXCommandBuffer_getNumInstances(se::State& s) +{ + cocos2d::GFXCommandBuffer* cobj = (cocos2d::GFXCommandBuffer*)s.nativeThisObject(); + SE_PRECONDITION2(cobj, false, "js_gfx_GFXCommandBuffer_getNumInstances : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + unsigned int result = cobj->getNumInstances(); + ok &= uint32_to_seval((unsigned int)result, &s.rval()); + SE_PRECONDITION2(ok, false, "js_gfx_GFXCommandBuffer_getNumInstances : Error processing arguments"); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_gfx_GFXCommandBuffer_getNumInstances) + static bool js_gfx_GFXCommandBuffer_setStencilCompareMask(se::State& s) { cocos2d::GFXCommandBuffer* cobj = (cocos2d::GFXCommandBuffer*)s.nativeThisObject(); @@ -17439,6 +17476,7 @@ bool js_register_gfx_GFXCommandBuffer(se::Object* obj) cls->defineFunction("updateBuffer", _SE(js_gfx_GFXCommandBuffer_updateBuffer)); cls->defineFunction("end", _SE(js_gfx_GFXCommandBuffer_end)); cls->defineFunction("setStencilWriteMask", _SE(js_gfx_GFXCommandBuffer_setStencilWriteMask)); + cls->defineFunction("getNumInstances", _SE(js_gfx_GFXCommandBuffer_getNumInstances)); cls->defineFunction("setStencilCompareMask", _SE(js_gfx_GFXCommandBuffer_setStencilCompareMask)); cls->defineFunction("bindInputAssembler", _SE(js_gfx_GFXCommandBuffer_bindInputAssembler)); cls->defineFunction("bindPipelineState", _SE(js_gfx_GFXCommandBuffer_bindPipelineState)); diff --git a/native/cocos/scripting/js-bindings/auto/jsb_gfx_auto.hpp b/native/cocos/scripting/js-bindings/auto/jsb_gfx_auto.hpp index 94719b192d..c5283aba71 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_gfx_auto.hpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_gfx_auto.hpp @@ -279,6 +279,7 @@ extern se::Class* __jsb_cocos2d_GFXDevice_class; bool js_register_cocos2d_GFXDevice(se::Object* obj); bool register_all_gfx(se::Object* obj); +SE_DECLARE_FUNC(js_gfx_GFXDevice_getNumInstances); SE_DECLARE_FUNC(js_gfx_GFXDevice_hasFeature); SE_DECLARE_FUNC(js_gfx_GFXDevice_createCommandAllocator); SE_DECLARE_FUNC(js_gfx_GFXDevice_getAPI); @@ -448,6 +449,7 @@ SE_DECLARE_FUNC(js_gfx_GFXCommandBuffer_setLineWidth); SE_DECLARE_FUNC(js_gfx_GFXCommandBuffer_updateBuffer); SE_DECLARE_FUNC(js_gfx_GFXCommandBuffer_end); SE_DECLARE_FUNC(js_gfx_GFXCommandBuffer_setStencilWriteMask); +SE_DECLARE_FUNC(js_gfx_GFXCommandBuffer_getNumInstances); SE_DECLARE_FUNC(js_gfx_GFXCommandBuffer_setStencilCompareMask); SE_DECLARE_FUNC(js_gfx_GFXCommandBuffer_bindInputAssembler); SE_DECLARE_FUNC(js_gfx_GFXCommandBuffer_bindPipelineState);