|
|
@ -20,8 +20,8 @@ enum class Stage : u32 { |
|
|
}; |
|
|
}; |
|
|
constexpr u32 MaxStageTypes = 6; |
|
|
constexpr u32 MaxStageTypes = 6; |
|
|
|
|
|
|
|
|
[[nodiscard]] constexpr Stage StageFromIndex(size_t index) noexcept { |
|
|
|
|
|
return static_cast<Stage>(static_cast<size_t>(Stage::VertexB) + index); |
|
|
|
|
|
|
|
|
[[nodiscard]] constexpr Stage StageFromIndex(std::size_t index) noexcept { |
|
|
|
|
|
return static_cast<Stage>(static_cast<std::size_t>(Stage::VertexB) + index); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} // namespace Shader |
|
|
} // namespace Shader |