diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-23 07:41:00 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:39 +0200 |
commit | 395bed3a0af90a53be44e81eadd06f4931c8e933 (patch) | |
tree | 9c9b45a5d3c4cd72957d0bc5631c3e71106344d1 /src/shader_recompiler | |
parent | lower_int64_to_int32: Add missing include (diff) | |
download | yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.gz yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.bz2 yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.lz yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.xz yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.zst yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.zip |
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 @@ namespace Shader { enum class Stage : u32 { - Compute, - VertexA, VertexB, TessellationControl, TessellationEval, Geometry, Fragment, + + Compute, + + VertexA, }; +constexpr u32 MaxStageTypes = 6; + +[[nodiscard]] constexpr Stage StageFromIndex(size_t index) noexcept { + return static_cast<Stage>(static_cast<size_t>(Stage::VertexB) + index); +} } // namespace Shader |