aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.GAL')
-rw-r--r--Ryujinx.Graphics.GAL/Capabilities.cs37
-rw-r--r--Ryujinx.Graphics.GAL/Format.cs22
2 files changed, 20 insertions, 39 deletions
diff --git a/Ryujinx.Graphics.GAL/Capabilities.cs b/Ryujinx.Graphics.GAL/Capabilities.cs
index c7cedb34..4e5dff59 100644
--- a/Ryujinx.Graphics.GAL/Capabilities.cs
+++ b/Ryujinx.Graphics.GAL/Capabilities.cs
@@ -2,30 +2,32 @@ namespace Ryujinx.Graphics.GAL
{
public struct Capabilities
{
- public bool HasFrontFacingBug { get; }
- public bool HasVectorIndexingBug { get; }
+ public readonly bool HasFrontFacingBug;
+ public readonly bool HasVectorIndexingBug;
- public bool SupportsAstcCompression { get; }
- public bool SupportsBgraFormat { get; }
- public bool SupportsR4G4Format { get; }
- public bool SupportsFragmentShaderInterlock { get; }
- public bool SupportsFragmentShaderOrderingIntel { get; }
- public bool SupportsImageLoadFormatted { get; }
- public bool SupportsMismatchingViewFormat { get; }
- public bool SupportsNonConstantTextureOffset { get; }
- public bool SupportsShaderBallot { get; }
- public bool SupportsTextureShadowLod { get; }
- public bool SupportsViewportSwizzle { get; }
- public bool SupportsIndirectParameters { get; }
+ public readonly bool SupportsAstcCompression;
+ public readonly bool Supports3DTextureCompression;
+ public readonly bool SupportsBgraFormat;
+ public readonly bool SupportsR4G4Format;
+ public readonly bool SupportsFragmentShaderInterlock;
+ public readonly bool SupportsFragmentShaderOrderingIntel;
+ public readonly bool SupportsImageLoadFormatted;
+ public readonly bool SupportsMismatchingViewFormat;
+ public readonly bool SupportsNonConstantTextureOffset;
+ public readonly bool SupportsShaderBallot;
+ public readonly bool SupportsTextureShadowLod;
+ public readonly bool SupportsViewportSwizzle;
+ public readonly bool SupportsIndirectParameters;
- public int MaximumComputeSharedMemorySize { get; }
- public float MaximumSupportedAnisotropy { get; }
- public int StorageBufferOffsetAlignment { get; }
+ public readonly int MaximumComputeSharedMemorySize;
+ public readonly float MaximumSupportedAnisotropy;
+ public readonly int StorageBufferOffsetAlignment;
public Capabilities(
bool hasFrontFacingBug,
bool hasVectorIndexingBug,
bool supportsAstcCompression,
+ bool supports3DTextureCompression,
bool supportsBgraFormat,
bool supportsR4G4Format,
bool supportsFragmentShaderInterlock,
@@ -44,6 +46,7 @@ namespace Ryujinx.Graphics.GAL
HasFrontFacingBug = hasFrontFacingBug;
HasVectorIndexingBug = hasVectorIndexingBug;
SupportsAstcCompression = supportsAstcCompression;
+ Supports3DTextureCompression = supports3DTextureCompression;
SupportsBgraFormat = supportsBgraFormat;
SupportsR4G4Format = supportsR4G4Format;
SupportsFragmentShaderInterlock = supportsFragmentShaderInterlock;
diff --git a/Ryujinx.Graphics.GAL/Format.cs b/Ryujinx.Graphics.GAL/Format.cs
index d5e183ba..a454413b 100644
--- a/Ryujinx.Graphics.GAL/Format.cs
+++ b/Ryujinx.Graphics.GAL/Format.cs
@@ -67,11 +67,9 @@ namespace Ryujinx.Graphics.GAL
R10G10B10A2Uint,
R11G11B10Float,
R9G9B9E5Float,
- Bc1RgbUnorm,
Bc1RgbaUnorm,
Bc2Unorm,
Bc3Unorm,
- Bc1RgbSrgb,
Bc1RgbaSrgb,
Bc2Srgb,
Bc3Srgb,
@@ -349,25 +347,5 @@ namespace Ryujinx.Graphics.GAL
{
return format.IsUint() || format.IsSint();
}
-
- /// <summary>
- /// Checks if the texture format is a BC4 compressed format.
- /// </summary>
- /// <param name="format">Texture format</param>
- /// <returns>True if the texture format is a BC4 compressed format, false otherwise</returns>
- public static bool IsBc4(this Format format)
- {
- return format == Format.Bc4Unorm || format == Format.Bc4Snorm;
- }
-
- /// <summary>
- /// Checks if the texture format is a BC5 compressed format.
- /// </summary>
- /// <param name="format">Texture format</param>
- /// <returns>True if the texture format is a BC5 compressed format, false otherwise</returns>
- public static bool IsBc5(this Format format)
- {
- return format == Format.Bc5Unorm || format == Format.Bc5Snorm;
- }
}
} \ No newline at end of file