mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 12:15:45 +00:00
shader: Unify shader stage types
This commit is contained in:
parent
0f092f17af
commit
c0705f79b8
15 changed files with 37 additions and 55 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue