From 4c6feb652f7dfa0cf54ea0866d076469816a3bbe Mon Sep 17 00:00:00 2001 From: riperiperi Date: Mon, 2 Nov 2020 20:03:06 +0000 Subject: Add seamless cubemap flag in sampler parameters. (#1658) * Add seamless cubemap flag in sampler parameters. * Check for the extension --- Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs') diff --git a/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs b/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs index 9f5a847b..2c28b743 100644 --- a/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs +++ b/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs @@ -184,6 +184,15 @@ namespace Ryujinx.Graphics.Gpu.Image return MinFilter.Nearest; } + /// + /// Unpacks the seamless cubemap flag. + /// + /// The seamless cubemap flag + public bool UnpackSeamlessCubemap() + { + return (Word1 & (1 << 9)) != 0; + } + /// /// Unpacks the reduction filter, used with texture minification linear filtering. /// This describes how the final value will be computed from neighbouring pixels. -- cgit v1.2.3