diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-11-24 20:45:06 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-11-24 21:00:48 +0100 |
commit | 826e0785bf6b852a4231f5f3d87655b2cf4e1856 (patch) | |
tree | d97e5d6cfb6e29b9c633699b86fb246ba61caacc /src/video_core/engines/sw_blitter/converter.cpp | |
parent | GPU: Implement additional render target formats. (diff) | |
download | yuzu-826e0785bf6b852a4231f5f3d87655b2cf4e1856.tar yuzu-826e0785bf6b852a4231f5f3d87655b2cf4e1856.tar.gz yuzu-826e0785bf6b852a4231f5f3d87655b2cf4e1856.tar.bz2 yuzu-826e0785bf6b852a4231f5f3d87655b2cf4e1856.tar.lz yuzu-826e0785bf6b852a4231f5f3d87655b2cf4e1856.tar.xz yuzu-826e0785bf6b852a4231f5f3d87655b2cf4e1856.tar.zst yuzu-826e0785bf6b852a4231f5f3d87655b2cf4e1856.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/sw_blitter/converter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/engines/sw_blitter/converter.cpp b/src/video_core/engines/sw_blitter/converter.cpp index 37c5eff69..cd46dfd4f 100644 --- a/src/video_core/engines/sw_blitter/converter.cpp +++ b/src/video_core/engines/sw_blitter/converter.cpp @@ -41,6 +41,12 @@ enum class ComponentType : u32 { namespace { +/* + * Note: Use generate_converters.py to generate the structs and searches for new render target + * formats and copy paste them to this file in order to update. just call "python + * generate_converters.py" and get the code from the output. modify the file to add new formats. + */ + constexpr std::array<f32, 256> SRGB_TO_RGB_LUT = { 0.000000e+00f, 3.035270e-04f, 6.070540e-04f, 9.105810e-04f, 1.214108e-03f, 1.517635e-03f, 1.821162e-03f, 2.124689e-03f, 2.428216e-03f, 2.731743e-03f, 3.035270e-03f, 3.346536e-03f, |