aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs
diff options
context:
space:
mode:
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>