2019-10-13 08:02:07 +02:00
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
|
|
{
|
|
|
|
public struct Capabilities
|
|
|
|
{
|
2022-01-22 19:23:00 +01:00
|
|
|
public readonly bool HasFrontFacingBug;
|
|
|
|
public readonly bool HasVectorIndexingBug;
|
2021-08-11 23:01:06 +02:00
|
|
|
|
2022-01-22 19:23:00 +01:00
|
|
|
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;
|
2019-10-13 08:02:07 +02:00
|
|
|
|
2022-01-22 19:23:00 +01:00
|
|
|
public readonly int MaximumComputeSharedMemorySize;
|
|
|
|
public readonly float MaximumSupportedAnisotropy;
|
|
|
|
public readonly int StorageBufferOffsetAlignment;
|
2020-03-30 23:38:52 +02:00
|
|
|
|
2019-12-01 03:53:09 +01:00
|
|
|
public Capabilities(
|
2021-08-11 23:01:06 +02:00
|
|
|
bool hasFrontFacingBug,
|
|
|
|
bool hasVectorIndexingBug,
|
|
|
|
bool supportsAstcCompression,
|
2022-01-22 19:23:00 +01:00
|
|
|
bool supports3DTextureCompression,
|
2022-01-20 12:37:21 +01:00
|
|
|
bool supportsBgraFormat,
|
2021-12-30 17:10:54 +01:00
|
|
|
bool supportsR4G4Format,
|
2021-10-29 00:53:12 +02:00
|
|
|
bool supportsFragmentShaderInterlock,
|
|
|
|
bool supportsFragmentShaderOrderingIntel,
|
2021-08-11 23:01:06 +02:00
|
|
|
bool supportsImageLoadFormatted,
|
|
|
|
bool supportsMismatchingViewFormat,
|
|
|
|
bool supportsNonConstantTextureOffset,
|
2021-09-19 14:38:39 +02:00
|
|
|
bool supportsShaderBallot,
|
2021-08-11 23:01:06 +02:00
|
|
|
bool supportsTextureShadowLod,
|
|
|
|
bool supportsViewportSwizzle,
|
2021-08-26 23:50:28 +02:00
|
|
|
bool supportsIndirectParameters,
|
2021-08-11 23:01:06 +02:00
|
|
|
int maximumComputeSharedMemorySize,
|
2020-05-28 01:03:07 +02:00
|
|
|
float maximumSupportedAnisotropy,
|
2021-08-11 23:01:06 +02:00
|
|
|
int storageBufferOffsetAlignment)
|
2019-10-13 08:02:07 +02:00
|
|
|
{
|
2021-08-11 23:01:06 +02:00
|
|
|
HasFrontFacingBug = hasFrontFacingBug;
|
|
|
|
HasVectorIndexingBug = hasVectorIndexingBug;
|
|
|
|
SupportsAstcCompression = supportsAstcCompression;
|
2022-01-22 19:23:00 +01:00
|
|
|
Supports3DTextureCompression = supports3DTextureCompression;
|
2022-01-20 12:37:21 +01:00
|
|
|
SupportsBgraFormat = supportsBgraFormat;
|
2021-12-30 17:10:54 +01:00
|
|
|
SupportsR4G4Format = supportsR4G4Format;
|
2021-10-29 00:53:12 +02:00
|
|
|
SupportsFragmentShaderInterlock = supportsFragmentShaderInterlock;
|
|
|
|
SupportsFragmentShaderOrderingIntel = supportsFragmentShaderOrderingIntel;
|
2021-08-11 23:01:06 +02:00
|
|
|
SupportsImageLoadFormatted = supportsImageLoadFormatted;
|
|
|
|
SupportsMismatchingViewFormat = supportsMismatchingViewFormat;
|
2021-06-25 00:54:50 +02:00
|
|
|
SupportsNonConstantTextureOffset = supportsNonConstantTextureOffset;
|
2021-09-19 14:38:39 +02:00
|
|
|
SupportsShaderBallot = supportsShaderBallot;
|
2021-08-11 23:01:06 +02:00
|
|
|
SupportsTextureShadowLod = supportsTextureShadowLod;
|
|
|
|
SupportsViewportSwizzle = supportsViewportSwizzle;
|
2021-08-26 23:50:28 +02:00
|
|
|
SupportsIndirectParameters = supportsIndirectParameters;
|
2021-08-11 23:01:06 +02:00
|
|
|
MaximumComputeSharedMemorySize = maximumComputeSharedMemorySize;
|
|
|
|
MaximumSupportedAnisotropy = maximumSupportedAnisotropy;
|
|
|
|
StorageBufferOffsetAlignment = storageBufferOffsetAlignment;
|
2019-10-13 08:02:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|