bevyengine / bevyengine/bevy

Compressed UI nodes that are not a multiple of 4 cause hard to read errors on WebGPU

Open
#21,217 2 comments 1 reaction 0 assignees View on GitHub
A-Diagnostics A-Rendering C-Docs O-WebGPU S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## How can Bevy's documentation be improved?

Use this ktx2 image: [splash.zip](https://github.com/user-attachments/files/22548403/splash.zip)
and this code:
```rust
use bevy::prelude::*;

fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(
Startup,
|asset_server: Res, mut commands: Commands| {
commands.spawn(ImageNode::new(asset_server.load("images/splash.ktx2")));
commands.spawn(Camera2d);
},
)
.run();
}
```
in 0.16, this rendered fine, but in 0.17 it crashes. On native, you get a fine error message

Image

it could be nicer if it included the texture name, but it's alright. However, run this with `bevy run --feature bevy/webgpu web` and your browser will show this:

Image

eek! what does any of this mean? Why is my screen black???

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.