[ci skip][AUTO]: updating jsbinding automatically (#2915)

This commit is contained in:
CocosRobot
2020-10-16 17:20:05 +08:00
committed by GitHub
parent 855b162475
commit 241f2e3d88
2 changed files with 81 additions and 0 deletions
@@ -15757,6 +15757,31 @@ bool js_register_gfx_PipelineState(se::Object* obj)
se::Object* __jsb_cc_gfx_DescriptorSet_proto = nullptr;
se::Class* __jsb_cc_gfx_DescriptorSet_class = nullptr;
static bool js_gfx_DescriptorSet_bindTextureJSB(se::State& s)
{
cc::gfx::DescriptorSet* cobj = (cc::gfx::DescriptorSet*)s.nativeThisObject();
SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindTextureJSB : Invalid Native Object");
const auto& args = s.args();
size_t argc = args.size();
CC_UNUSED bool ok = true;
if (argc == 3) {
unsigned int arg0 = 0;
cc::gfx::Texture* arg1 = nullptr;
unsigned int arg2 = 0;
ok &= seval_to_uint32(args[0], (uint32_t*)&arg0);
ok &= seval_to_native_ptr(args[1], &arg1);
ok &= seval_to_uint32(args[2], (uint32_t*)&arg2);
SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_bindTextureJSB : Error processing arguments");
bool result = cobj->bindTextureJSB(arg0, arg1, arg2);
ok &= boolean_to_seval(result, &s.rval());
SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_bindTextureJSB : Error processing arguments");
return true;
}
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3);
return false;
}
SE_BIND_FUNC(js_gfx_DescriptorSet_bindTextureJSB)
static bool js_gfx_DescriptorSet_bindBuffer(se::State& s)
{
CC_UNUSED bool ok = true;
@@ -15798,6 +15823,31 @@ static bool js_gfx_DescriptorSet_bindBuffer(se::State& s)
}
SE_BIND_FUNC(js_gfx_DescriptorSet_bindBuffer)
static bool js_gfx_DescriptorSet_bindSamplerJSB(se::State& s)
{
cc::gfx::DescriptorSet* cobj = (cc::gfx::DescriptorSet*)s.nativeThisObject();
SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindSamplerJSB : Invalid Native Object");
const auto& args = s.args();
size_t argc = args.size();
CC_UNUSED bool ok = true;
if (argc == 3) {
unsigned int arg0 = 0;
cc::gfx::Sampler* arg1 = nullptr;
unsigned int arg2 = 0;
ok &= seval_to_uint32(args[0], (uint32_t*)&arg0);
ok &= seval_to_native_ptr(args[1], &arg1);
ok &= seval_to_uint32(args[2], (uint32_t*)&arg2);
SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_bindSamplerJSB : Error processing arguments");
bool result = cobj->bindSamplerJSB(arg0, arg1, arg2);
ok &= boolean_to_seval(result, &s.rval());
SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_bindSamplerJSB : Error processing arguments");
return true;
}
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3);
return false;
}
SE_BIND_FUNC(js_gfx_DescriptorSet_bindSamplerJSB)
static bool js_gfx_DescriptorSet_getTexture(se::State& s)
{
CC_UNUSED bool ok = true;
@@ -16048,6 +16098,31 @@ static bool js_gfx_DescriptorSet_getBuffer(se::State& s)
}
SE_BIND_FUNC(js_gfx_DescriptorSet_getBuffer)
static bool js_gfx_DescriptorSet_bindBufferJSB(se::State& s)
{
cc::gfx::DescriptorSet* cobj = (cc::gfx::DescriptorSet*)s.nativeThisObject();
SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindBufferJSB : Invalid Native Object");
const auto& args = s.args();
size_t argc = args.size();
CC_UNUSED bool ok = true;
if (argc == 3) {
unsigned int arg0 = 0;
cc::gfx::Buffer* arg1 = nullptr;
unsigned int arg2 = 0;
ok &= seval_to_uint32(args[0], (uint32_t*)&arg0);
ok &= seval_to_native_ptr(args[1], &arg1);
ok &= seval_to_uint32(args[2], (uint32_t*)&arg2);
SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_bindBufferJSB : Error processing arguments");
bool result = cobj->bindBufferJSB(arg0, arg1, arg2);
ok &= boolean_to_seval(result, &s.rval());
SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_bindBufferJSB : Error processing arguments");
return true;
}
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3);
return false;
}
SE_BIND_FUNC(js_gfx_DescriptorSet_bindBufferJSB)
SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DescriptorSet_finalize)
static bool js_gfx_DescriptorSet_constructor(se::State& s)
@@ -16079,7 +16154,9 @@ bool js_register_gfx_DescriptorSet(se::Object* obj)
{
auto cls = se::Class::create("DescriptorSet", obj, __jsb_cc_gfx_GFXObject_proto, _SE(js_gfx_DescriptorSet_constructor));
cls->defineFunction("bindTextureJSB", _SE(js_gfx_DescriptorSet_bindTextureJSB));
cls->defineFunction("bindBuffer", _SE(js_gfx_DescriptorSet_bindBuffer));
cls->defineFunction("bindSamplerJSB", _SE(js_gfx_DescriptorSet_bindSamplerJSB));
cls->defineFunction("getTexture", _SE(js_gfx_DescriptorSet_getTexture));
cls->defineFunction("bindSampler", _SE(js_gfx_DescriptorSet_bindSampler));
cls->defineFunction("update", _SE(js_gfx_DescriptorSet_update));
@@ -16088,6 +16165,7 @@ bool js_register_gfx_DescriptorSet(se::Object* obj)
cls->defineFunction("initialize", _SE(js_gfx_DescriptorSet_initialize));
cls->defineFunction("destroy", _SE(js_gfx_DescriptorSet_destroy));
cls->defineFunction("getBuffer", _SE(js_gfx_DescriptorSet_getBuffer));
cls->defineFunction("bindBufferJSB", _SE(js_gfx_DescriptorSet_bindBufferJSB));
cls->defineFinalizeFunction(_SE(js_cc_gfx_DescriptorSet_finalize));
cls->install();
JSBClassType::registerClass<cc::gfx::DescriptorSet>(cls);
@@ -399,7 +399,9 @@ extern se::Class* __jsb_cc_gfx_DescriptorSet_class;
bool js_register_cc_gfx_DescriptorSet(se::Object* obj);
bool register_all_gfx(se::Object* obj);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_bindTextureJSB);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_bindBuffer);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_bindSamplerJSB);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_getTexture);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_bindSampler);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_update);
@@ -408,6 +410,7 @@ SE_DECLARE_FUNC(js_gfx_DescriptorSet_bindTexture);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_initialize);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_destroy);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_getBuffer);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_bindBufferJSB);
SE_DECLARE_FUNC(js_gfx_DescriptorSet_DescriptorSet);
extern se::Object* __jsb_cc_gfx_CommandBuffer_proto;