aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/MultisampleDescriptor.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-07-05 19:58:36 -0300
committerGitHub <noreply@github.com>2022-07-05 19:58:36 -0300
commitb46b63e06a36845175f68331edb5ddeeb34de27b (patch)
tree1ca8adf9541d1f68e420feb853a612413d690725 /Ryujinx.Graphics.GAL/MultisampleDescriptor.cs
parent594246ea4727c9377b1c916934d9b257a1b5d0d0 (diff)
Add support for alpha to coverage dithering (#3069)1.1.164
* Add support for alpha to coverage dithering * Shader cache version bump * Fix wrong alpha register * Ensure support buffer is cleared * New shader specialization based approach
Diffstat (limited to 'Ryujinx.Graphics.GAL/MultisampleDescriptor.cs')
-rw-r--r--Ryujinx.Graphics.GAL/MultisampleDescriptor.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/MultisampleDescriptor.cs b/Ryujinx.Graphics.GAL/MultisampleDescriptor.cs
new file mode 100644
index 00000000..76e56987
--- /dev/null
+++ b/Ryujinx.Graphics.GAL/MultisampleDescriptor.cs
@@ -0,0 +1,19 @@
+namespace Ryujinx.Graphics.GAL
+{
+ public struct MultisampleDescriptor
+ {
+ public bool AlphaToCoverageEnable { get; }
+ public bool AlphaToCoverageDitherEnable { get; }
+ public bool AlphaToOneEnable { get; }
+
+ public MultisampleDescriptor(
+ bool alphaToCoverageEnable,
+ bool alphaToCoverageDitherEnable,
+ bool alphaToOneEnable)
+ {
+ AlphaToCoverageEnable = alphaToCoverageEnable;
+ AlphaToCoverageDitherEnable = alphaToCoverageDitherEnable;
+ AlphaToOneEnable = alphaToOneEnable;
+ }
+ }
+}