Add support for sampler sRGB disable (#7312)

This commit is contained in:
gdkchan
2024-09-19 14:38:30 -03:00
committed by GitHub
parent 73f985d27c
commit 24ee8c39f1
4 changed files with 48 additions and 6 deletions

View File

@@ -113,6 +113,15 @@ namespace Ryujinx.Graphics.Gpu.Image
return (CompareOp)(((Word0 >> 10) & 7) + 1);
}
/// <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>