emilk / emilk/egui

Get rid of 'Detected a linear (sRGBA aware) framebuffer. egui prefers Rgba8Unorm or Bgra8Unorm' warning

Open
#6,863 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

Unless I'm highly mistaken, this warning https://github.com/emilk/egui/blame/f2ce6424f3a32f47308fb9871d540c01377b2cd9/crates/egui-wgpu/src/renderer.rs#L346-L351 is quite outdated right? egui can handle srgb render attachments perfectly fine, it just means you don't apply `linear_from_gamma_rgb` in the shader.

Contributor guide

Open the contributing guide

Research direction

Start in crates/egui-wgpu/src/renderer.rs around lines 346-351 and inspect why the linear sRGBA framebuffer warning is emitted. Verify the warning against egui's handling of sRGB render attachments and the shader behavior described in the issue. Done means the outdated warning is removed or corrected without affecting valid sRGB rendering.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.