Skip to content

fix(mesh): fix custom attribute stride and 32-bit index in createMesh - #19224

Merged
llsansun merged 1 commit into
cocos:v3.8.9from
MagicXHouse:v3.8.9
Sep 14, 2026
Merged

llsansun merged 1 commit into
cocos:v3.8.9from
MagicXHouse:v3.8.9

Conversation

@MagicXHouse

@MagicXHouse MagicXHouse commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Re: #

Changelog

  • Use the custom attribute's own format (ca.attr.format) instead of the
    previous attribute's format when computing vertex stride, fixing
    misaligned vertex data on native platforms.
  • Choose the index format by max index value, falling back to R32UI for
    meshes with more than 65535 vertices instead of silently truncating.
  • No need for test.

Continuous Integration

This pull request:

  • needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • changes public API, and have ensured backward compatibility with deprecated features.
  • affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • affects file structure of the build package or build configuration which requires user project upgrade.
  • introduces breaking changes, please list all changes, affected features and the scope of violation.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@github-actions

Copy link
Copy Markdown

Code Size Check Report

Wechat (WASM) Before After Diff
2D Empty (legacy pipeline) 1009914 bytes 1009972 bytes ⚠️ +58 bytes
2D All (legacy pipeline) 2676381 bytes 2676439 bytes ⚠️ +58 bytes
2D All (new pipeline) 2768117 bytes 2768175 bytes ⚠️ +58 bytes
(2D + 3D) All 10025305 bytes 10025363 bytes ⚠️ +58 bytes
Web (WASM + ASMJS) Before After Diff
(2D + 3D) All 16845449 bytes 16845507 bytes ⚠️ +58 bytes

Interface Check Report

This pull request does not change any public interfaces !

@MagicXHouse

Copy link
Copy Markdown
Contributor Author

@cocos-robot run test cases

@MagicXHouse

Copy link
Copy Markdown
Contributor Author

@cocos-robot run-test-cases-custom

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@github-actions

Copy link
Copy Markdown

@MagicXHouse, Please check the result of run test cases:

Task Details

@github-actions

Copy link
Copy Markdown

@MagicXHouse, Please check the result of run test cases:

Task Details

@github-actions

Copy link
Copy Markdown

@MagicXHouse, Please check the result of run test cases:

Task Details

@github-actions

Copy link
Copy Markdown

@MagicXHouse, Please check the result of run test cases:

Task Details

@llsansun
llsansun merged commit cd620b5 into cocos:v3.8.9 Sep 14, 2026
35 checks passed
@github-actions

Copy link
Copy Markdown

@MagicXHouse, Please check the result of run test cases:

Task Details

@github-actions

Copy link
Copy Markdown

@MagicXHouse, Please check the result of run test cases:

Task Details

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.

2 participants