summaryrefslogtreecommitdiff
path: root/src/video_core/textures/texture.h
diff options
context:
space:
mode:
authorGravatar Rodolfo Bogado2018-10-24 17:09:40 -0300
committerGravatar Rodolfo Bogado2018-10-28 01:13:55 -0300
commit0287b2be6d1edeecea26250e5cd8d3067ff614af (patch)
tree5f7a74be1a36768819c2cd413b1ad05fd8086f90 /src/video_core/textures/texture.h
parentMerge pull request #1602 from DarkLordZach/key-derivation-isxdigit (diff)
downloadyuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.gz
yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.xz
yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.zip
Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB support
Diffstat (limited to 'src/video_core/textures/texture.h')
-rw-r--r--src/video_core/textures/texture.h5
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};
231static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size"); 236static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size");
232 237