2019-12-01 03:53:09 +01:00
|
|
|
namespace Ryujinx.Graphics.Shader
|
|
|
|
{
|
|
|
|
public struct ShaderCapabilities
|
|
|
|
{
|
2019-12-09 03:55:22 +01:00
|
|
|
// Initialize with default values for Maxwell.
|
|
|
|
private static readonly ShaderCapabilities _default = new ShaderCapabilities(32768, 49152, 16);
|
2019-12-01 03:53:09 +01:00
|
|
|
|
|
|
|
public static ShaderCapabilities Default => _default;
|
|
|
|
|
2019-12-09 03:55:22 +01:00
|
|
|
public int MaximumViewportDimensions { get; }
|
|
|
|
public int MaximumComputeSharedMemorySize { get; }
|
|
|
|
public int StorageBufferOffsetAlignment { get; }
|
2019-12-01 03:53:09 +01:00
|
|
|
|
2019-12-06 23:37:00 +01:00
|
|
|
public ShaderCapabilities(
|
|
|
|
int maximumViewportDimensions,
|
2019-12-09 03:55:22 +01:00
|
|
|
int maximumComputeSharedMemorySize,
|
2019-12-06 23:37:00 +01:00
|
|
|
int storageBufferOffsetAlignment)
|
2019-12-01 03:53:09 +01:00
|
|
|
{
|
2019-12-09 03:55:22 +01:00
|
|
|
MaximumViewportDimensions = maximumViewportDimensions;
|
|
|
|
MaximumComputeSharedMemorySize = maximumComputeSharedMemorySize;
|
|
|
|
StorageBufferOffsetAlignment = storageBufferOffsetAlignment;
|
2019-12-01 03:53:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|