Commit Graph

951 Commits

Author SHA1 Message Date
Zach Lee d26b12d722 Feat: GFXBuffer supports exposing staging buffer address to reduce me… (#13041) 2022-10-17 11:04:15 +08:00
liqiao c6386e3450 remove Model::getInstancedAttributeBlock 2022-10-12 16:12:15 +08:00
zhakesi 70c2e34411 sync tojs to swig about scene module (#5) 2022-10-12 15:59:52 +08:00
zhakesi 7676097f97 sync tojs to swig about middleware and 2d module (#4) 2022-10-12 15:37:11 +08:00
santy-wang 91c884362d Merge branch 'v3.6.2' of github.com:cocos-creator/engine into v3.6.1-sync 2022-10-11 20:12:14 +08:00
hyde zhou bf3c54addf move structs to types.ts (#13004) 2022-10-10 16:48:27 +08:00
troublemaker52025 ddfa2fd42a [optimization] Remove camera dependency (#12983) 2022-10-10 10:29:19 +08:00
Yiwen f6530ffa9e change path of define.ts in gfx-define-generator (#12939)
* change path of define.ts in gfx-define-generator

* correct the creation of web swapchain

* fix windowId. valid windowId starts from 1
2022-10-08 10:30:07 +08:00
hyde zhou e8366a7a7b [develop] custom pipeline startup refactoring (#12886)
* manually merge bloom, fg culling, native pipeline updates

* fix lint

* camera usage added

* use parent name instead of default & add some phase names

* adding render graph execution

* execute render graph added

* refactoring workflow

* uses interface instead of abstract class

* add setup step

* camera usage added

* adding setup stage

* unify camera get set

* adding ppl setup

* fixed bloom effect

* change descriptor merge

* modify uniform collect as descriptor

* revert

* revert phase

* adding render callback

* update setup workflow

* pipeline builder updated

* refactoring native pipeline setup

* revert jsb

* improve cameraList clear

Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: qiuguohua <>
2022-09-27 17:57:21 +08:00
Zach Lee 699fdfad90 Feat: Expires bufferView after resizing it's source buffer. (#12869) 2022-09-27 11:50:37 +08:00
jk20012001 4ad23f2193 fix submeshes have different instancing options (#12786) 2022-09-23 16:55:04 +08:00
hyde zhou 71a4452807 [develop] add camera usage (#12857) 2022-09-23 10:22:22 +08:00
zhakesi c7761e5c19 middleware2d components rendering in native mode (#12788)
* middleware2d components rendering in native mode

* support spine/dragonbones set enable batch

* support spine rendering in batching mode

* get batcher2d instance from root

* process about with type conversion

* fix some code style

* use material hash to merge draw batch

* deal with fill z

* fix dragonbones fill z

* remove some code no used any more

* refactoring some code

* modify some code

* add free memory

* fix clang-tidy

* delete mesh-buffer-layout in destructor

* byte alignment
2022-09-20 13:31:33 +08:00
hyde zhou f85ca2fe82 [develop pipeline] refactor framegraph code and updated pipeline (#12794) 2022-09-16 18:14:49 +08:00
林玮 785fd91511 Add multi-windows support (#12243)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
2022-09-15 14:55:44 +08:00
hyde zhou cc01929094 [develop pipeline] uses ccstd::hash (#12658) 2022-09-14 18:25:46 +08:00
santy-wang 7bbad4a0a4 Merge branch 'develop' of github.com:cocos-creator/engine into v3.6.1-sync 2022-09-14 11:47:58 +08:00
zhakesi 6de3d10128 remove sync to native FloatsPerVertex (#12721) 2022-09-09 10:56:22 +08:00
James Chen b9be4cba6d Fix linking errors. (#156) 2022-09-02 20:59:44 +08:00
minggo aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
江战 fc05e55032 3.6 genbindings abort on error (#12659)
* check return code

* Update native/tools/tojs/genbindings.py

* am update external
2022-09-02 18:50:28 +08:00
fqamic 1946f2d39d improve: update engine to support xr development (#12653)
* improve: update engine to support xr development
1.detach thread support more device
2.revert the modification of xr for makeCurrent
3.sync android templates change to xr
4.fix monado runtime templates, excessive permission

* improve: update engine to support xr development
1.add xr pico templates
2.update xr huaweivr templates
3.add xr api file
4.fix 'GFXDevice.h' base header file problem
2022-09-02 15:25:40 +08:00
zhakesi a388541901 spine/dragonbones renderdata use rgba8 color format (#12619)
* add color4b format

* render-2d adapter color format

* spine dragonbones use simple color

* rename V3F_T2F_C4B

* use attributes to init mesh buffer

* remove Vertex2DFormat
2022-09-01 21:44:19 +08:00
James Chen 7b65436e02 fixed #12625: The prototype chain for mesh.maxPosition is not Vec3 on version 3.6.0 (#12628) 2022-09-01 15:48:25 +08:00
Zhang mingzhen 0410f097e1 particle local mode on native (#12624)
* particle local mode on native

* remove rebundant code

* when positionType changes, update entity data

* move to onEnable

* rename as renderTransform

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-01 11:35:19 +08:00
mmyduckx 2ea6e9b148 Remove base node related logics (#11977) 2022-08-23 17:34:36 +08:00
minggo 834cfa66af Merge branch 'v3.6.1' into merge_v3.6.1 2022-08-23 14:13:02 +08:00
hyde zhou b7c720eb3b improve xr pipeline implementation (#12506) 2022-08-22 19:11:18 +08:00
QingliWang 6a8f53b186 Add features for XR developement. (#12413)
* Change Android mainloop, add global config and template projects for XR.

* Change gfx/gles device's process flow for XR, working with other PRs, waiting.

* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.

* Change render process for XR.

* Develop XR input and events.

* Develop 3D feature of UI widgets and raycast effect for XR.

Co-authored-by: fqamic <fqamic@vip.qq.com>
2022-08-22 16:34:45 +08:00
James Chen 268696b65d Update swig tutorial (#12479) 2022-08-22 10:37:36 +08:00
hyde zhou 5654d31a7e [develop-pipeline] changed pipeline c++ formatting and added support for swig (#12484) 2022-08-22 10:04:52 +08:00
徐兵 5f07ea0294 add rotation feature for skybox (#12481) 2022-08-19 18:00:18 +08:00
James Chen 9cad05bcc3 Refactor swig-config/genbindings.js, support to pass a custom js config file for generating binding. (#12446) 2022-08-18 16:47:57 +08:00
James Chen c7e60d2bcb Use swig to generate js bindings (#12410) 2022-08-16 10:48:12 +08:00
mmyduckx 15f85c7213 export downloader abort function (#12235) 2022-08-11 15:29:43 +08:00
minggo 5778aab354 Merge branch 'v3.6.0' into merge_v3.6 2022-08-08 10:49:46 +08:00
Santy-Wang 5e2aea4296 bind clearStaticDrawInfos (#12335) 2022-08-04 22:59:52 +08:00
Zhang mingzhen 7bbce32970 static drawinfo should be reset when flushing assembler (#12333)
* static drawinfo should be reset  when flushing assembler

* add reset drawinfo method

* revert mistake

* fix mistakes

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-04 22:14:23 +08:00
timlyeee accb187a9b Add missing methods for Material (#12321) 2022-08-04 10:18:43 +08:00
minggo 684d560dfc bind missing functions (#12318) 2022-08-03 18:42:19 +08:00
ChiaNing 985f4fd94c Fix pass hash when blend change (#12294)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-02 16:05:24 +08:00
zhakesi dc91a469ae use native middleware buffer (#12233)
* use native middleware buffer

* fix clang-tidy

* fix clang-tidy

* set useLinkData as meshBuffer's property

* refactoring some code

* set 2d.ini

* fix word component

* fix clip middleware2d

* ...

* function attributes to getAttributes
2022-07-28 19:00:30 +08:00
James Chen fe0fd229a4 Fix CocosApplication doesn't unregister engine event when restarting. (#12250) 2022-07-28 18:15:35 +08:00
minggo f3ed70bc44 Merge pull request #12192 from minggo/merge_v3.6
Merge v3.6
2022-07-28 11:53:21 +08:00
Zhang mingzhen ecd94ea596 add vbColorDirty for native color filling (#12221)
* set colorDirty as true initially.

* move it to onEnable

* add vbColorDirty to protected native code sorting

* for complete padding

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-27 19:28:39 +08:00
江战 c32ba5d38c fix include order & revert boost/hash (#12212) 2022-07-27 13:46:01 +08:00
zhakesi 4644228090 fix binding inverseBindposes (#12205) 2022-07-26 20:14:19 +08:00
minggo e0bfd1d380 Merge branch 'v3.6.0' into merge_v3.6 2022-07-26 12:01:26 +08:00
timlyeee dd25eee8ba disable debug renderer for v3.6 to ignore feature cropping (#12181) 2022-07-25 17:45:30 +08:00
Santy-Wang 07facb9bf1 optimize memory (#12157) 2022-07-23 15:28:25 +08:00