forked from Mirror/Ryujinx
8e1adb95cf
* Add support for HLE macros and accelerate MultiDrawElementsIndirectCount * Add missing barrier * Fix index buffer count * Add support check for each macro hle before use * Add missing xml doc Co-authored-by: gdkchan <gab.dark.100@gmail.com>
48 lines
No EOL
2.1 KiB
C#
48 lines
No EOL
2.1 KiB
C#
namespace Ryujinx.Graphics.GAL
|
|
{
|
|
public struct Capabilities
|
|
{
|
|
public bool HasFrontFacingBug { get; }
|
|
public bool HasVectorIndexingBug { get; }
|
|
|
|
public bool SupportsAstcCompression { get; }
|
|
public bool SupportsImageLoadFormatted { get; }
|
|
public bool SupportsMismatchingViewFormat { get; }
|
|
public bool SupportsNonConstantTextureOffset { get; }
|
|
public bool SupportsTextureShadowLod { get; }
|
|
public bool SupportsViewportSwizzle { get; }
|
|
public bool SupportsIndirectParameters { get; }
|
|
|
|
public int MaximumComputeSharedMemorySize { get; }
|
|
public float MaximumSupportedAnisotropy { get; }
|
|
public int StorageBufferOffsetAlignment { get; }
|
|
|
|
public Capabilities(
|
|
bool hasFrontFacingBug,
|
|
bool hasVectorIndexingBug,
|
|
bool supportsAstcCompression,
|
|
bool supportsImageLoadFormatted,
|
|
bool supportsMismatchingViewFormat,
|
|
bool supportsNonConstantTextureOffset,
|
|
bool supportsTextureShadowLod,
|
|
bool supportsViewportSwizzle,
|
|
bool supportsIndirectParameters,
|
|
int maximumComputeSharedMemorySize,
|
|
float maximumSupportedAnisotropy,
|
|
int storageBufferOffsetAlignment)
|
|
{
|
|
HasFrontFacingBug = hasFrontFacingBug;
|
|
HasVectorIndexingBug = hasVectorIndexingBug;
|
|
SupportsAstcCompression = supportsAstcCompression;
|
|
SupportsImageLoadFormatted = supportsImageLoadFormatted;
|
|
SupportsMismatchingViewFormat = supportsMismatchingViewFormat;
|
|
SupportsNonConstantTextureOffset = supportsNonConstantTextureOffset;
|
|
SupportsTextureShadowLod = supportsTextureShadowLod;
|
|
SupportsViewportSwizzle = supportsViewportSwizzle;
|
|
SupportsIndirectParameters = supportsIndirectParameters;
|
|
MaximumComputeSharedMemorySize = maximumComputeSharedMemorySize;
|
|
MaximumSupportedAnisotropy = maximumSupportedAnisotropy;
|
|
StorageBufferOffsetAlignment = storageBufferOffsetAlignment;
|
|
}
|
|
}
|
|
} |