Commit Graph

19 Commits

Author SHA1 Message Date
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
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
Santy-Wang 9c092e7b77 optimize code of batcher2D (#12166)
* optimize code of batcher2D

* fix bugs

* no lint

* no lint

* no lint

* fix ci
2022-07-25 15:56:40 +08:00
Santy-Wang 07facb9bf1 optimize memory (#12157) 2022-07-23 15:28:25 +08:00
zhakesi e18e900162 support spine/dragonbones use local native batcher2d (#12141)
* support spine/dragonbones use local native batcher2d

* avoid tiled map use local

* render-entity add set use local

* modify some code

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-07-22 12:54:15 +08:00
Santy-Wang 2ae2d94b93 optimize performance (#12080)
* optimize performance

* fix binding

* fix bugs

* fix bugs

* fix crash

* remove useless func

* fix ci

* fix ci

* fix ci
2022-07-21 11:50:43 +08:00
ChiaNing d9c93a57c7 remove blend state on fillPass function (#12068)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-19 17:18:38 +08:00
ChiaNing b6e1fe4d6a Slim Render Draw Info (#12053)
* Slim Render Draw Info

* fix CI

* safe delete

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-19 11:13:37 +08:00
zhakesi 51d999e0e6 native batcher2d tiled-map addUserNode complete (#12059) 2022-07-19 10:53:42 +08:00
Zhang mingzhen 1fd70ef5e7 UIOpacity and UIRenderer recursion bug (#12015)
* optimize JSB sync in every frame

* opacity bug, enabled doesn't sync to native

* UIOpacity and UIRenderer recursion

* avoid parameters are undefined

* resolve circular dependency

* exclude UIMeshRenderer in setEntityColorDirtyRecursively

* exclude UIMeshRenderer in UIOpacity setEntityLocalOpacityDirtyRecursively

* blend hash should put into passdirty

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-18 15:42:02 +08:00
ChiaNing 6b64c7e8da Remove custom Material flag (#12021)
* Remove custom Material flag

* remove commit model material

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 09:36:32 +08:00
James Chen f644e78e5c [v3.6.0] Refactor native Batcher2d lifecycle (#12011) 2022-07-15 14:17:33 +08:00
Santy-Wang 945e715a9c restructure life cycle (#11971)
* restructure life cycle

* fix bugs

* optimize

* remove some code

* refine

* fix dragonbone custom material

* fix particle crash

* changed to CCAssert

Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-14 16:33:30 +08:00
Zhang mingzhen 05bde85ed7 V3.6.0 batcher2d code sorting (#11943)
* parentOpacity move to RenderEntity

(cherry picked from commit f1d9b5cb55c1912bd61ba490ec46ce7108097556)

* parentOpacity remove from entity and put into funtion parameters

* unify dynamic and static handle process

* reform entity shared buffer structure

* modify default value of struct

* set drawinfo type for spine/dragonbones

* remove legacy method

* reform color .type as uint8 from float

* CI fix

* remove static-cast

* CI fix

* CI fix

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-13 15:48:31 +08:00
ChiaNing d13ebb2fdb Mask image-stencil change (#11932)
* Mask image-stencil change

* CI fix

* size change

* event change

* event change

* event

* mask type change to native

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-12 13:36:50 +08:00
Zhang mingzhen 731d703648 Mask to native bug fix (#11913)
* mask inverted bug fix

(cherry picked from commit dc695c992983042ca7af3ac91051db40049dfbd1)

* sync customMaterial for commitIA of middleware in native

* fix CI

* remove abundant mask code

* add nolint

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-11 13:43:56 +08:00
James Chen 89c49d782a [v3.6] Fix memory leak of memop::Pool::destroy and refactor it. (#11908) 2022-07-09 15:06:52 +08:00
Zhang mingzhen 0560b566df V3.6.0 batcher2d mask to native (#11905)
* native mask 1

* native rect mask part2

(cherry picked from commit 363c6a545302c15bbbd33285c172855e667c308d)

* fix code specification

* mask fillPass parameters

* fix mistake

* fillpass material condition

* mask to native generate batch

* revert wrong remove

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-09 00:57:25 +08:00
Zhang mingzhen b32830a3e8 V3.6.0 batcher2d to native (#11592) 2022-07-08 17:10:48 +08:00