diff options
Diffstat (limited to 'src/shader_recompiler')
| -rw-r--r-- | src/shader_recompiler/stage.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/shader_recompiler/stage.h b/src/shader_recompiler/stage.h index 7d4f2c0bb..5c1c8d8fc 100644 --- a/src/shader_recompiler/stage.h +++ b/src/shader_recompiler/stage.h | |||
| @@ -9,13 +9,20 @@ | |||
| 9 | namespace Shader { | 9 | namespace Shader { |
| 10 | 10 | ||
| 11 | enum class Stage : u32 { | 11 | enum class Stage : u32 { |
| 12 | Compute, | ||
| 13 | VertexA, | ||
| 14 | VertexB, | 12 | VertexB, |
| 15 | TessellationControl, | 13 | TessellationControl, |
| 16 | TessellationEval, | 14 | TessellationEval, |
| 17 | Geometry, | 15 | Geometry, |
| 18 | Fragment, | 16 | Fragment, |
| 17 | |||
| 18 | Compute, | ||
| 19 | |||
| 20 | VertexA, | ||
| 19 | }; | 21 | }; |
| 22 | constexpr u32 MaxStageTypes = 6; | ||
| 23 | |||
| 24 | [[nodiscard]] constexpr Stage StageFromIndex(size_t index) noexcept { | ||
| 25 | return static_cast<Stage>(static_cast<size_t>(Stage::VertexB) + index); | ||
| 26 | } | ||
| 20 | 27 | ||
| 21 | } // namespace Shader | 28 | } // namespace Shader |