mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 19:42:39 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user