mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 03:58:08 -05:00
shader: Unify shader stage types
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user