mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-22 17:56:59 +01:00
24 lines
No EOL
903 B
C#
24 lines
No EOL
903 B
C#
namespace Ryujinx.Graphics.Shader
|
|
{
|
|
public struct ShaderCapabilities
|
|
{
|
|
// Initialize with default values for Maxwell.
|
|
private static readonly ShaderCapabilities _default = new ShaderCapabilities(32768, 49152, 16);
|
|
|
|
public static ShaderCapabilities Default => _default;
|
|
|
|
public int MaximumViewportDimensions { get; }
|
|
public int MaximumComputeSharedMemorySize { get; }
|
|
public int StorageBufferOffsetAlignment { get; }
|
|
|
|
public ShaderCapabilities(
|
|
int maximumViewportDimensions,
|
|
int maximumComputeSharedMemorySize,
|
|
int storageBufferOffsetAlignment)
|
|
{
|
|
MaximumViewportDimensions = maximumViewportDimensions;
|
|
MaximumComputeSharedMemorySize = maximumComputeSharedMemorySize;
|
|
StorageBufferOffsetAlignment = storageBufferOffsetAlignment;
|
|
}
|
|
}
|
|
} |