mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-08 19:28:27 +02:00
Move solution and projects to src
This commit is contained in:
27
src/Ryujinx.Graphics.Shader/ShaderStage.cs
Normal file
27
src/Ryujinx.Graphics.Shader/ShaderStage.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace Ryujinx.Graphics.Shader
|
||||
{
|
||||
public enum ShaderStage : byte
|
||||
{
|
||||
Compute,
|
||||
Vertex,
|
||||
TessellationControl,
|
||||
TessellationEvaluation,
|
||||
Geometry,
|
||||
Fragment,
|
||||
|
||||
Count
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user