mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 15:04:36 +03:00
09081d2189
Continuing along the same lines as the prior commit, the goal of this commit is to remove the buffer transformation that was part of uploading the texture to the GPU provided surface. In order to do so: * The sense of our local textures needs to change from bgra32 to rgba32. bgra32 was a hangover from earlier versions of our window crate that allowed direct-to-fb writes in software mode. We had to pick bgra32 for that for the broadest OS compatibility. I believe that that constraint has been totally removed, although there is a chance that this will flip the colors on macos. * There was an additional linear-to-srgb conversion inlined in that buffer transformation. I have no idea where that is needed because the source data is carefully constructed as SRGB. I don't yet know how to signal that, but for now I've moved that gamma correction into the shader when we sample the texture. With this change, timg playback now has vtparse as the hottest region of code. refs: #537 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |