2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-03-19 23:28:31 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-03-23 01:03:20 +01:00
|
|
|
#include "common/common_types.h"
|
|
|
|
|
2021-03-19 23:28:31 +01:00
|
|
|
namespace Shader {
|
|
|
|
|
2021-03-23 01:03:20 +01:00
|
|
|
enum class Stage : u32 {
|
2021-03-19 23:28:31 +01:00
|
|
|
VertexB,
|
|
|
|
TessellationControl,
|
|
|
|
TessellationEval,
|
|
|
|
Geometry,
|
|
|
|
Fragment,
|
2021-06-23 07:41:00 +02:00
|
|
|
|
|
|
|
Compute,
|
|
|
|
|
|
|
|
VertexA,
|
2021-03-19 23:28:31 +01:00
|
|
|
};
|
2021-06-23 07:41:00 +02:00
|
|
|
constexpr u32 MaxStageTypes = 6;
|
|
|
|
|
|
|
|
[[nodiscard]] constexpr Stage StageFromIndex(size_t index) noexcept {
|
|
|
|
return static_cast<Stage>(static_cast<size_t>(Stage::VertexB) + index);
|
|
|
|
}
|
2021-03-19 23:28:31 +01:00
|
|
|
|
|
|
|
} // namespace Shader
|