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