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
This commit is contained in:
zhakesi
2022-09-20 13:31:33 +08:00
committed by GitHub
parent 3c5222c544
commit c7761e5c19
43 changed files with 755 additions and 843 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ function packRenderData () {
const tiledData = _curLayer.requestTiledRenderData();
if (JSB) {
tiledData.renderData = RenderData.add(vfmtPosUvColor, _accessor);
tiledData.renderData.drawInfoType = RenderDrawInfoType.IA;
tiledData.renderData.drawInfoType = RenderDrawInfoType.MIDDLEWARE;
} else {
tiledData.renderData = RenderData.add(vfmtPosUvColor);
}