aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Shader/GpuAccessorBase.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-09-10 10:20:23 -0300
committerGitHub <noreply@github.com>2022-09-10 13:20:23 +0000
commit619ac86bd03fcafdcae19f8fc5ad7d90780c194b (patch)
tree81638c9e0d617d7139c9924d9a5de3fa4bf1c33e /Ryujinx.Graphics.Gpu/Shader/GpuAccessorBase.cs
parent7a1ab71c7376bcc3d043c09c9ac1172637955e54 (diff)
Do not output ViewportIndex on SPIR-V if GPU does not support it (#3644)1.1.259
* Do not output ViewportIndex on SPIR-V if GPU does not support it * Bump shader cache version
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Shader/GpuAccessorBase.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Shader/GpuAccessorBase.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/Shader/GpuAccessorBase.cs b/Ryujinx.Graphics.Gpu/Shader/GpuAccessorBase.cs
index a0c779b5..40c5ed64 100644
--- a/Ryujinx.Graphics.Gpu/Shader/GpuAccessorBase.cs
+++ b/Ryujinx.Graphics.Gpu/Shader/GpuAccessorBase.cs
@@ -134,6 +134,8 @@ namespace Ryujinx.Graphics.Gpu.Shader
public bool QueryHostSupportsTextureShadowLod() => _context.Capabilities.SupportsTextureShadowLod;
+ public bool QueryHostSupportsViewportIndex() => _context.Capabilities.SupportsViewportIndex;
+
/// <summary>
/// Converts a packed Maxwell texture format to the shader translator texture format.
/// </summary>