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

Ensure instance_index push constant is always used in prepass.wgsl #10706

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

cart
Copy link
Member

@cart cart commented Nov 23, 2023

Objective

Kind of helps #10509

Solution

Add a line to prepass.wgsl that ensure the instance_index push constant is always used on WebGL 2. This is not a full fix, as the second a custom shader is used that doesn't use the push constant, the breakage will resurface. We have satisfying medium term and long term solutions. This is just a short term hack for 0.12.1 that will make more cases work. See #10509 for more details.

@cart cart added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen labels Nov 23, 2023
@cart cart added this to the 0.12.1 milestone Nov 23, 2023
Copy link
Contributor

@superdump superdump left a comment

Choose a reason for hiding this comment

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

Lol. Sneaky!

@cart cart added this pull request to the merge queue Nov 28, 2023
Merged via the queue into bevyengine:main with commit 9095810 Nov 28, 2023
22 checks passed
cart added a commit that referenced this pull request Nov 30, 2023
…10706)

# Objective

 Kind of helps #10509 

## Solution

Add a line to `prepass.wgsl` that ensure the `instance_index` push
constant is always used on WebGL 2. This is not a full fix, as the
_second_ a custom shader is used that doesn't use the push constant, the
breakage will resurface. We have satisfying medium term and long term
solutions. This is just a short term hack for 0.12.1 that will make more
cases work. See #10509 for more details.
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants