Skip to content

Resolve multisampled prepass textures#22849

Open
beicause wants to merge 10 commits intobevyengine:mainfrom
beicause:resolve-multisampled-prepass-textures
Open

Resolve multisampled prepass textures#22849
beicause wants to merge 10 commits intobevyengine:mainfrom
beicause:resolve-multisampled-prepass-textures

Conversation

@beicause
Copy link
Copy Markdown
Member

@beicause beicause commented Feb 7, 2026

Objective

Fixes #22830, fixes #22831

Solution

DepthPrepass texture is changed to R32Float which is resolved with new ResolvePlugin in prepass_depth_resolve pass. Bonus: WebGPU doesn't support filterable depth textures, but float32-filterable is generally supported. WebGL2 should also support resolved depth prepass.

Multisampled NormalPrepass and MotionVectorPrepass textures are transient and are resolved during prepass.

Testing

shader_prepass example can toggle MSAA.
DLSS and solari are likely broken due to changed depth prepass texture format.

@beicause beicause force-pushed the resolve-multisampled-prepass-textures branch from f31f505 to c957c9b Compare February 7, 2026 11:41
@kfc35 kfc35 added the A-Rendering Drawing game state to the screen label Feb 8, 2026
@kfc35 kfc35 added the S-Needs-Review Needs reviewer attention (from anyone!) to move forward label Feb 8, 2026
@beicause
Copy link
Copy Markdown
Member Author

beicause commented Feb 8, 2026

This slightly conflicts with #22555 and #22554 because we can use depth prepass on WebGL2.

@cart cart added this to Rendering Feb 12, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Rendering Feb 12, 2026
@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible D-Complex Quite challenging from either a design or technical perspective. Ask for help! X-Uncontroversial This work is generally agreed upon S-Needs-Testing Testing must be done before this is safe to merge labels Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible D-Complex Quite challenging from either a design or technical perspective. Ask for help! S-Needs-Review Needs reviewer attention (from anyone!) to move forward S-Needs-Testing Testing must be done before this is safe to merge X-Uncontroversial This work is generally agreed upon

Projects

Status: Needs SME Triage
Status: No status

4 participants