-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulkan Backend Not Doing Gamma Correction/sRGB Conversion #1646
Comments
I checked Vulkan code, and it seems alright. Wgpu-core is asking for SRGB first, and Vulkan backend is expected to allow that. Would you be able to step through |
Adding debug prints shows that the
But... I took a quick look at Thanks for telling me where to look @kvark ! I'll have a PR in a minute. Edit: #1651 |
1651: Fix Vulkan Backend Texture Format Mapping r=cwfitzgerald a=zicklag Fixes the Bgra8UnormSrgb texture format. **Connections** Resolves #1646. **Description** Fixes the mappings between the `Bgra8UnormSrgb` and `Bgra8Unorm` texture formats and their Vulkan equivalents. **Testing** Tested on my Ubuntu 20.04 machine on: - Intel(R) UHD Graphics (CML GT2) (Vulkan) - GeForce GTX 1650 (Vulkan) Co-authored-by: Zicklag <zicklag@katharostech.com>
Fixes the Bgra8UnormSrgb texture format. Resolves gfx-rs#1646.
This was first reported in #1627, initially misinterpreted as a bug with the GL backend not being colored correctly
Description
Vulkan backend is not doing sRGB conversion or gamma correction resulting in a darker-than-normal image:
Repro steps
Run any of the examples such as
cube
orshadow
using the Vulkan backend. Reproduced so far on:Expected vs observed behavior
Expected:
Observed:
Extra materials
None applicable so far.
Platform
WGPU @ 4b4e393 on Linux with:
The text was updated successfully, but these errors were encountered: