mvlabat / bevy_egui

This crate provides an Egui integration for the Bevy game engine. 🇺🇦 Please support the Ukrainian army: https://savelife.in.ua/en/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatible color attachments under WebGPU/WASM

seabassjh opened this issue · comments

The color attachment state expects SRGB in WebGPU. Adding it to the texture_format in render_systems.rs fixes this issue.

texture_format: window.swap_chain_texture_format?.add_srgb_suffix(),

It is unclear, however, if applying this fix unconditionally to all platforms would be a breaking change or not. What is clear, is that this fix at least works with WebGPU.

image

I know @mvlabat and I discussed this in the bevy discord already, I just wanted to make sure this issue does not fall through the cracks

I ran into this and opened a PR which fixes this bug for me: #220