yuzu/src/shader_recompiler/stage.h

29 lines
546 B
C++
Raw Normal View History

// Copyright 2021 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
2021-03-23 00:03:20 +00:00
#include "common/common_types.h"
namespace Shader {
2021-03-23 00:03:20 +00:00
enum class Stage : u32 {
VertexB,
TessellationControl,
TessellationEval,
Geometry,
Fragment,
2021-06-23 06:41:00 +01:00
Compute,
VertexA,
};
2021-06-23 06:41:00 +01:00
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