Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assembler兼容模拟器和Native #2

Merged
merged 4 commits into from
Jul 31, 2020
Merged

Conversation

caogtaa
Copy link
Contributor

@caogtaa caogtaa commented Jul 31, 2020

native的render-flow不会走ts代码里的fillBuffer(),有不同的实现方式。
native通过RenderData获取ts里设置的顶点数据,jsb-adapter中通过修改RenderData.init的实现达到目的。

所以这个PR的主要调整是

  1. 把顶点数据写入RenderData
  2. fillBuffer部分尽量保持和引擎自带的版本相同
  3. 自定义顶点格式通过 getVfmt 方法返回,因为jsb-adapter里会用到

fix #1

@BlubluBlue7 BlubluBlue7 merged commit 1f8fd43 into BlubluBlue7:master Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

模拟器和Native下没效果
2 participants