summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/environment.h')
-rw-r--r--src/shader_recompiler/environment.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/shader_recompiler/environment.h b/src/shader_recompiler/environment.h
index 0fcb68050..1fcaa56dd 100644
--- a/src/shader_recompiler/environment.h
+++ b/src/shader_recompiler/environment.h
@@ -3,6 +3,8 @@
3#include <array> 3#include <array>
4 4
5#include "common/common_types.h" 5#include "common/common_types.h"
6#include "shader_recompiler/stage.h"
7#include "shader_recompiler/program_header.h"
6 8
7namespace Shader { 9namespace Shader {
8 10
@@ -15,6 +17,18 @@ public:
15 [[nodiscard]] virtual u32 TextureBoundBuffer() = 0; 17 [[nodiscard]] virtual u32 TextureBoundBuffer() = 0;
16 18
17 [[nodiscard]] virtual std::array<u32, 3> WorkgroupSize() = 0; 19 [[nodiscard]] virtual std::array<u32, 3> WorkgroupSize() = 0;
20
21 [[nodiscard]] const ProgramHeader& SPH() const noexcept {
22 return sph;
23 }
24
25 [[nodiscard]] Stage ShaderStage() const noexcept {
26 return stage;
27 }
28
29protected:
30 ProgramHeader sph{};
31 Stage stage{};
18}; 32};
19 33
20} // namespace Shader 34} // namespace Shader