From 12d49c37d219950ccb22c3979ecb0b34262a7155 Mon Sep 17 00:00:00 2001 From: Xpl0itR Date: Mon, 30 Mar 2020 22:38:52 +0100 Subject: Make max anisotropy configurable (#1043) * Make max anisotropy configurable * Move opengl command to opengl project * Add GUI option --- Ryujinx.Graphics.OpenGL/HwCapabilities.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Ryujinx.Graphics.OpenGL/HwCapabilities.cs') diff --git a/Ryujinx.Graphics.OpenGL/HwCapabilities.cs b/Ryujinx.Graphics.OpenGL/HwCapabilities.cs index 3d72cb7d..4b572af8 100644 --- a/Ryujinx.Graphics.OpenGL/HwCapabilities.cs +++ b/Ryujinx.Graphics.OpenGL/HwCapabilities.cs @@ -22,12 +22,16 @@ namespace Ryujinx.Graphics.OpenGL public static GpuVendor Vendor => _gpuVendor.Value; + private static Lazy _maxSupportedAnisotropy = new Lazy(GL.GetFloat((GetPName)All.MaxTextureMaxAnisotropy)); + public static bool SupportsAstcCompression => _supportsAstcCompression.Value; public static bool SupportsNonConstantTextureOffset => _gpuVendor.Value == GpuVendor.Nvidia; public static int MaximumComputeSharedMemorySize => _maximumComputeSharedMemorySize.Value; public static int StorageBufferOffsetAlignment => _storageBufferOffsetAlignment.Value; + public static float MaxSupportedAnisotropy => _maxSupportedAnisotropy.Value; + private static bool HasExtension(string name) { int numExtensions = GL.GetInteger(GetPName.NumExtensions); -- cgit v1.2.3