2019-10-12 23:02:07 -07:00
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
|
|
{
|
|
|
|
public struct Capabilities
|
|
|
|
{
|
2019-12-10 22:54:18 -08:00
|
|
|
public bool SupportsAstcCompression { get; }
|
2020-05-27 02:00:21 -07:00
|
|
|
public bool SupportsImageLoadFormatted { get; }
|
2021-05-16 11:43:27 -07:00
|
|
|
public bool SupportsMismatchingViewFormat { get; }
|
2021-06-24 15:54:50 -07:00
|
|
|
public bool SupportsNonConstantTextureOffset { get; }
|
|
|
|
public bool SupportsTextureShadowLod { get; }
|
2020-05-27 16:03:07 -07:00
|
|
|
public bool SupportsViewportSwizzle { get; }
|
2019-10-12 23:02:07 -07:00
|
|
|
|
2020-05-27 16:03:07 -07:00
|
|
|
public int MaximumComputeSharedMemorySize { get; }
|
|
|
|
public float MaximumSupportedAnisotropy { get; }
|
|
|
|
public int StorageBufferOffsetAlignment { get; }
|
2020-03-30 14:38:52 -07:00
|
|
|
|
2019-11-30 18:53:09 -08:00
|
|
|
public Capabilities(
|
2020-03-30 14:38:52 -07:00
|
|
|
bool supportsAstcCompression,
|
2020-05-27 02:00:21 -07:00
|
|
|
bool supportsImageLoadFormatted,
|
2021-05-16 11:43:27 -07:00
|
|
|
bool supportsMismatchingViewFormat,
|
2021-06-24 15:54:50 -07:00
|
|
|
bool supportsNonConstantTextureOffset,
|
|
|
|
bool supportsTextureShadowLod,
|
2020-05-27 16:03:07 -07:00
|
|
|
bool supportsViewportSwizzle,
|
2020-03-30 14:38:52 -07:00
|
|
|
int maximumComputeSharedMemorySize,
|
2020-05-27 16:03:07 -07:00
|
|
|
float maximumSupportedAnisotropy,
|
|
|
|
int storageBufferOffsetAlignment)
|
2019-10-12 23:02:07 -07:00
|
|
|
{
|
2019-12-10 22:54:18 -08:00
|
|
|
SupportsAstcCompression = supportsAstcCompression;
|
2020-05-27 02:00:21 -07:00
|
|
|
SupportsImageLoadFormatted = supportsImageLoadFormatted;
|
2021-05-16 11:43:27 -07:00
|
|
|
SupportsMismatchingViewFormat = supportsMismatchingViewFormat;
|
2021-06-24 15:54:50 -07:00
|
|
|
SupportsNonConstantTextureOffset = supportsNonConstantTextureOffset;
|
|
|
|
SupportsTextureShadowLod = supportsTextureShadowLod;
|
2020-05-27 16:03:07 -07:00
|
|
|
SupportsViewportSwizzle = supportsViewportSwizzle;
|
2019-12-10 22:54:18 -08:00
|
|
|
MaximumComputeSharedMemorySize = maximumComputeSharedMemorySize;
|
2020-05-27 16:03:07 -07:00
|
|
|
MaximumSupportedAnisotropy = maximumSupportedAnisotropy;
|
2019-12-10 22:54:18 -08:00
|
|
|
StorageBufferOffsetAlignment = storageBufferOffsetAlignment;
|
2019-10-12 23:02:07 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|