Skip to content

Hello World crashes #77

@pi314ever

Description

@pi314ever

Describe the bug
The Hello World provided in the README crashes

thread 'main' panicked at /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-22.1.0/src/backend/wgpu_core.rs:786:18:
Error in Surface::configure: Validation Error

Caused by:
  Requested format Rgba8UnormSrgb is not in list of supported formats: [Bgra8Unorm, Bgra8UnormSrgb]

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

To Reproduce
Steps to reproduce the behavior:

  1. Make a new project
  2. Replace main.rs with the provided code in README
  3. cargo run

Expected behavior
No crash and a valid hello world example

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser N/A
  • Version

Smartphone (please complete the following information):
N/A

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions