mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 10:32:39 +08:00
Merge pull request #2531 from minggo/optimize
use native object to improve performance
This commit is contained in:
@@ -72,6 +72,8 @@ class VertexFormat {
|
||||
let el = this._elements[i];
|
||||
el.stride = this._bytes;
|
||||
}
|
||||
|
||||
this._nativeObj = new gfx.VertexFormatNative(this._elements);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user