diff options
author | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-10-24 22:09:40 +0200 |
---|---|---|
committer | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-10-28 05:13:55 +0100 |
commit | 0287b2be6d1edeecea26250e5cd8d3067ff614af (patch) | |
tree | 5f7a74be1a36768819c2cd413b1ad05fd8086f90 /src/video_core/textures/texture.h | |
parent | Merge pull request #1602 from DarkLordZach/key-derivation-isxdigit (diff) | |
download | yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.gz yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.bz2 yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.lz yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.xz yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.zst yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.zip |
Diffstat (limited to 'src/video_core/textures/texture.h')
-rw-r--r-- | src/video_core/textures/texture.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index 5947bd2b9..d12d2ecb8 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -173,6 +173,7 @@ struct TICEntry { }; union { BitField<0, 16, u32> width_minus_1; + BitField<22, 1, u32> srgb_conversion; BitField<23, 4, TextureType> texture_type; }; union { @@ -227,6 +228,10 @@ struct TICEntry { return header_version == TICHeaderVersion::BlockLinear || header_version == TICHeaderVersion::BlockLinearColorKey; } + + bool IsSrgbConversionEnabled() const { + return srgb_conversion != 0; + } }; static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size"); |