Skip to content

fix: 缓存的 BlitDesc._blit 更新 - #19161

Open
Magnetismmy wants to merge 1 commit into
cocos:v3.8.8from
Magnetismmy:v3.8.8fix
Open

fix: 缓存的 BlitDesc._blit 更新#19161
Magnetismmy wants to merge 1 commit into
cocos:v3.8.8from
Magnetismmy:v3.8.8fix

Conversation

@Magnetismmy

@Magnetismmy Magnetismmy commented Apr 10, 2026

Copy link
Copy Markdown

Re: #

Changelog

缓存的 [BlitDesc._blit]与对象池复用机制不兼容,导致在 shadingScale 改变 blit 分配顺序后读取到失效/被复写的 blit 对象。

复现思路 :多 pass 混合
场景里同时存在:
fullscreen 后处理 blit
UI 渲染
shadingScale 引入的缩放 pass
多帧运行后,用多个不同后处理配置的相机,从A开启切换到B开启,某帧中对象池 slot 被复用
旧 [BlitDesc._blit]指向了被重置后的 UI blit,触发空材质访问


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 free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@github-actions

Copy link
Copy Markdown

Code Size Check Report

Wechat (WASM) Before After Diff
2D Empty (legacy pipeline) 1009738 bytes 1009738 bytes ✅ 0 bytes
2D All (legacy pipeline) 2675347 bytes 2675347 bytes ✅ 0 bytes
2D All (new pipeline) 2767083 bytes 2767098 bytes ⚠️ +15 bytes
(2D + 3D) All 10024081 bytes 10024096 bytes ⚠️ +15 bytes
Web (WASM + ASMJS) Before After Diff
(2D + 3D) All 16843143 bytes 16843158 bytes ⚠️ +15 bytes

Interface Check Report

This pull request does not change any public interfaces !

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.

1 participant