# gpui_windows: Fix reversed linear/sRGB transfer functions in shader \(\#57543\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b9419ae72814157164b09592ab2466f9f4709f09)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b9419ae72814157164b09592ab2466f9f4709f09

Requested commit: b9419ae72814157164b09592ab2466f9f4709f09

Commit: b9419ae72814157164b09592ab2466f9f4709f09

Tree: b570b9d2cf8a0cb78905268e5113a68ca3671684

Author: Minh Vu

Committer: GitHub

## Message

```
gpui_windows: Fix reversed linear/sRGB transfer functions in shader (#57543)

## Summary
- swap the Windows HLSL exponents for `linear_to_srgb` and
`srgb_to_linear`
- align the Windows Oklab gradient path with the existing Metal and WGSL
implementations

## Testing
- not run (shader-only change)

Fixes #57542

Release Notes:

- [GPUI] Fix reversed linear/sRGB transfer functions

Co-authored-by: Chris Biscardi <chris@christopherbiscardi.com>
```

## Parents

- [68ec865bfd13752328b781c376429e6c4ef29fa5](https://git.cafe/gitcafe/zed/commit/68ec865bfd13752328b781c376429e6c4ef29fa5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b9419ae72814157164b09592ab2466f9f4709f09?format=markdown)
