diff options
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/pred.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/pred.h b/src/shader_recompiler/frontend/ir/pred.h index 37cc53006..daf23193f 100644 --- a/src/shader_recompiler/frontend/ir/pred.h +++ b/src/shader_recompiler/frontend/ir/pred.h | |||
| @@ -10,6 +10,13 @@ namespace Shader::IR { | |||
| 10 | 10 | ||
| 11 | enum class Pred { P0, P1, P2, P3, P4, P5, P6, PT }; | 11 | enum class Pred { P0, P1, P2, P3, P4, P5, P6, PT }; |
| 12 | 12 | ||
| 13 | constexpr size_t NUM_USER_PREDS = 6; | ||
| 14 | constexpr size_t NUM_PREDS = 7; | ||
| 15 | |||
| 16 | [[nodiscard]] constexpr size_t PredIndex(Pred pred) noexcept { | ||
| 17 | return static_cast<size_t>(pred); | ||
| 18 | } | ||
| 19 | |||
| 13 | } // namespace Shader::IR | 20 | } // namespace Shader::IR |
| 14 | 21 | ||
| 15 | template <> | 22 | template <> |