mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-15 03:36:28 +02:00
Move solution and projects to src
This commit is contained in:
parent
cd124bda58
commit
cee7121058
3466 changed files with 55 additions and 55 deletions
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue