2019-10-13 08:02:07 +02:00
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
|
|
{
|
|
|
|
public struct Capabilities
|
|
|
|
{
|
2021-08-11 23:01:06 +02:00
|
|
|
public bool HasFrontFacingBug { get; }
|
|
|
|
public bool HasVectorIndexingBug { get; }
|
|
|
|
|
|
|
|
public bool SupportsAstcCompression { get; }
|
|
|
|
public bool SupportsImageLoadFormatted { get; }
|
|
|
|
public bool SupportsMismatchingViewFormat { get; }
|
2021-06-25 00:54:50 +02:00
|
|
|
public bool SupportsNonConstantTextureOffset { get; }
|
2021-08-11 23:01:06 +02:00
|
|
|
public bool SupportsTextureShadowLod { get; }
|
|
|
|
public bool SupportsViewportSwizzle { get; }
|
2019-10-13 08:02:07 +02:00
|
|
|
|
2021-08-11 23:01:06 +02:00
|
|
|
public int MaximumComputeSharedMemorySize { get; }
|
|
|
|
public float MaximumSupportedAnisotropy { get; }
|
|
|
|
public int StorageBufferOffsetAlignment { get; }
|
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,
|
|
|
|
bool supportsImageLoadFormatted,
|
|
|
|
bool supportsMismatchingViewFormat,
|
|
|
|
bool supportsNonConstantTextureOffset,
|
|
|
|
bool supportsTextureShadowLod,
|
|
|
|
bool supportsViewportSwizzle,
|
|
|
|
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;
|
|
|
|
SupportsImageLoadFormatted = supportsImageLoadFormatted;
|
|
|
|
SupportsMismatchingViewFormat = supportsMismatchingViewFormat;
|
2021-06-25 00:54:50 +02:00
|
|
|
SupportsNonConstantTextureOffset = supportsNonConstantTextureOffset;
|
2021-08-11 23:01:06 +02:00
|
|
|
SupportsTextureShadowLod = supportsTextureShadowLod;
|
|
|
|
SupportsViewportSwizzle = supportsViewportSwizzle;
|
|
|
|
MaximumComputeSharedMemorySize = maximumComputeSharedMemorySize;
|
|
|
|
MaximumSupportedAnisotropy = maximumSupportedAnisotropy;
|
|
|
|
StorageBufferOffsetAlignment = storageBufferOffsetAlignment;
|
2019-10-13 08:02:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|