mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 01:25:25 +00:00
f08a280ade
* Use shader subgroup extensions if shader ballot is not supported * Shader cache version bump + cleanup * The type is still required on the table
51 lines
2.2 KiB
C#
51 lines
2.2 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 SupportsShaderBallot { 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 supportsShaderBallot,
|
|
bool supportsTextureShadowLod,
|
|
bool supportsViewportSwizzle,
|
|
bool supportsIndirectParameters,
|
|
int maximumComputeSharedMemorySize,
|
|
float maximumSupportedAnisotropy,
|
|
int storageBufferOffsetAlignment)
|
|
{
|
|
HasFrontFacingBug = hasFrontFacingBug;
|
|
HasVectorIndexingBug = hasVectorIndexingBug;
|
|
SupportsAstcCompression = supportsAstcCompression;
|
|
SupportsImageLoadFormatted = supportsImageLoadFormatted;
|
|
SupportsMismatchingViewFormat = supportsMismatchingViewFormat;
|
|
SupportsNonConstantTextureOffset = supportsNonConstantTextureOffset;
|
|
SupportsShaderBallot = supportsShaderBallot;
|
|
SupportsTextureShadowLod = supportsTextureShadowLod;
|
|
SupportsViewportSwizzle = supportsViewportSwizzle;
|
|
SupportsIndirectParameters = supportsIndirectParameters;
|
|
MaximumComputeSharedMemorySize = maximumComputeSharedMemorySize;
|
|
MaximumSupportedAnisotropy = maximumSupportedAnisotropy;
|
|
StorageBufferOffsetAlignment = storageBufferOffsetAlignment;
|
|
}
|
|
}
|
|
} |