aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2024-09-19 14:38:30 -0300
committerGitHub <noreply@github.com>2024-09-19 14:38:30 -0300
commit24ee8c39f1fd8ae2dc2d92cda1cdb41e8af45f0a (patch)
tree5cdbf2df0e5ca731ae7368c79f70e734da6d8c62 /src/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs
parent73f985d27ca0c85f053e8b9494ba83a6c4d3afbf (diff)
Add support for sampler sRGB disable (#7312)1.1.1396
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs b/src/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs
index e04c31df..836a3260 100644
--- a/src/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs
+++ b/src/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs
@@ -114,6 +114,15 @@ namespace Ryujinx.Graphics.Gpu.Image
}
/// <summary>
+ /// Unpacks the sampler sRGB format flag.
+ /// </summary>
+ /// <returns>True if the has sampler is sRGB conversion enabled, false otherwise</returns>
+ public readonly bool UnpackSrgb()
+ {
+ return (Word0 & (1 << 13)) != 0;
+ }
+
+ /// <summary>
/// Unpacks and converts the maximum anisotropy value used for texture anisotropic filtering.
/// </summary>
/// <returns>The maximum anisotropy</returns>