Skip to content

Don't batch depth only prepasses when using custom vertex and fragment shaders#24843

Open
beicause wants to merge 2 commits into
bevyengine:mainfrom
beicause:fix-prepass-depth-only-optimize
Open

Don't batch depth only prepasses when using custom vertex and fragment shaders#24843
beicause wants to merge 2 commits into
bevyengine:mainfrom
beicause:fix-prepass-depth-only-optimize

Conversation

@beicause

@beicause beicause commented Jul 2, 2026

Copy link
Copy Markdown
Member

Objective

Fixes #24690. Alternative to #24716

Solution

See #24716 (comment). Don't batch depth only prepasses when using custom vertex and fragment shaders, because we don't known whether custom prepass shaders need material's bind group because material's bind group is used for both prepass and the other passes.

Testing

Tested the example in #24690

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jul 5, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Rendering Jul 5, 2026
@alice-i-cecile alice-i-cecile added the X-Contentious There are nontrivial implications that should be thought through label Jul 5, 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-Bug An unexpected or incorrect behavior S-Needs-Review Needs reviewer attention (from anyone!) to move forward X-Contentious There are nontrivial implications that should be thought through

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

Prepass vertex shader crashes when there is a bind group

3 participants