diff options
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 { | |||
| 173 | }; | 173 | }; |
| 174 | union { | 174 | union { |
| 175 | BitField<0, 16, u32> width_minus_1; | 175 | BitField<0, 16, u32> width_minus_1; |
| 176 | BitField<22, 1, u32> srgb_conversion; | ||
| 176 | BitField<23, 4, TextureType> texture_type; | 177 | BitField<23, 4, TextureType> texture_type; |
| 177 | }; | 178 | }; |
| 178 | union { | 179 | union { |
| @@ -227,6 +228,10 @@ struct TICEntry { | |||
| 227 | return header_version == TICHeaderVersion::BlockLinear || | 228 | return header_version == TICHeaderVersion::BlockLinear || |
| 228 | header_version == TICHeaderVersion::BlockLinearColorKey; | 229 | header_version == TICHeaderVersion::BlockLinearColorKey; |
| 229 | } | 230 | } |
| 231 | |||
| 232 | bool IsSrgbConversionEnabled() const { | ||
| 233 | return srgb_conversion != 0; | ||
| 234 | } | ||
| 230 | }; | 235 | }; |
| 231 | static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size"); | 236 | static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size"); |
| 232 | 237 | ||