-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Example] compute_shader_game_of_life crashes. #9670
Comments
Another example also crashes. I suspect it's my computer's fault😂 |
Example works fine on my system. Got 1 error but program continued running.
|
Not particularly knowledgeable about this (someone who knows correct me), but from what i could gather this is reproducible by just forcing GL backend The issue seems to be that GLSL requires textures formats to specify writeonly or readonly unless they are r32* (unsure if said formats still allow both operations though) and the shader has to write and read. I tried changing the example to r32* but sprite pipeline seems to expect rgba8 format(?). |
On an unrelated issue, running any example on X11 and GL seems to be broken with a different error (invalid surface validation). I will create an issue once i get a bit more info. |
I believe this is related to #7320 |
…rm (#12155) # Objective - Fixes #9670 - Avoid a crash in CI due to ``` thread 'Compute Task Pool (0)' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.19.1/src/backend/wgpu_core.rs:3009:5: wgpu error: Validation Error Caused by: In Device::create_bind_group The adapter does not support read access for storages texture of format Rgba8Unorm ``` ## Solution - Use an `R32Float` texture instead of an `Rgba8Unorm` as it's a tier 1 texture format gpuweb/gpuweb#3838 and is more supported - This should also improve support for webgpu in the next wgpu version
Bevy version
0.11.2
[Optional] Relevant system information
Rust: 1.70.0
OS: Arch Linux
What you did
What went wrong
It crashed:
The text was updated successfully, but these errors were encountered: