Incompatible color attachments under WebGPU/WASM
seabassjh opened this issue · comments
Sebastian J. Hamel commented
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.
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
Corey Farwell commented
I ran into this and opened a PR which fixes this bug for me: #220