2019-11-30 18:53:09 -08:00
|
|
|
namespace Ryujinx.Graphics.Shader
|
|
|
|
{
|
|
|
|
public struct ShaderCapabilities
|
|
|
|
{
|
2019-12-06 14:37:00 -08:00
|
|
|
private static readonly ShaderCapabilities _default = new ShaderCapabilities(32768, 16);
|
2019-11-30 18:53:09 -08:00
|
|
|
|
|
|
|
public static ShaderCapabilities Default => _default;
|
|
|
|
|
2019-12-06 14:37:00 -08:00
|
|
|
public int MaximumViewportDimensions { get; }
|
2019-11-30 18:53:09 -08:00
|
|
|
public int StorageBufferOffsetAlignment { get; }
|
|
|
|
|
2019-12-06 14:37:00 -08:00
|
|
|
public ShaderCapabilities(
|
|
|
|
int maximumViewportDimensions,
|
|
|
|
int storageBufferOffsetAlignment)
|
2019-11-30 18:53:09 -08:00
|
|
|
{
|
2019-12-06 14:37:00 -08:00
|
|
|
MaximumViewportDimensions = maximumViewportDimensions;
|
2019-11-30 18:53:09 -08:00
|
|
|
StorageBufferOffsetAlignment = storageBufferOffsetAlignment;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|