2019-10-12 23:02:07 -07:00
|
|
|
namespace Ryujinx.Graphics.Shader
|
|
|
|
{
|
2020-11-12 15:15:34 -08:00
|
|
|
public enum ShaderStage : byte
|
2019-10-12 23:02:07 -07:00
|
|
|
{
|
|
|
|
Compute,
|
|
|
|
Vertex,
|
|
|
|
TessellationControl,
|
|
|
|
TessellationEvaluation,
|
|
|
|
Geometry,
|
2020-11-12 15:15:34 -08:00
|
|
|
Fragment,
|
|
|
|
|
|
|
|
Count
|
2019-10-12 23:02:07 -07:00
|
|
|
}
|
2022-01-08 09:48:48 -08:00
|
|
|
|
|
|
|
public static class ShaderStageExtensions
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Checks if the shader stage supports render scale.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="stage">Shader stage</param>
|
|
|
|
/// <returns>True if the shader stage supports render scale, false otherwise</returns>
|
|
|
|
public static bool SupportsRenderScale(this ShaderStage stage)
|
|
|
|
{
|
|
|
|
return stage == ShaderStage.Vertex || stage == ShaderStage.Fragment || stage == ShaderStage.Compute;
|
|
|
|
}
|
|
|
|
}
|
2019-10-12 23:02:07 -07:00
|
|
|
}
|