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.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/shader_recompiler/environment.h b/src/shader_recompiler/environment.h
index 1fcaa56dd..6dec4b255 100644
--- a/src/shader_recompiler/environment.h
+++ b/src/shader_recompiler/environment.h
@@ -3,8 +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#include "shader_recompiler/program_header.h"
7#include "shader_recompiler/stage.h"
8 8
9namespace Shader { 9namespace Shader {
10 10
@@ -14,9 +14,9 @@ public:
14 14
15 [[nodiscard]] virtual u64 ReadInstruction(u32 address) = 0; 15 [[nodiscard]] virtual u64 ReadInstruction(u32 address) = 0;
16 16
17 [[nodiscard]] virtual u32 TextureBoundBuffer() = 0; 17 [[nodiscard]] virtual u32 TextureBoundBuffer() const = 0;
18 18
19 [[nodiscard]] virtual std::array<u32, 3> WorkgroupSize() = 0; 19 [[nodiscard]] virtual std::array<u32, 3> WorkgroupSize() const = 0;
20 20
21 [[nodiscard]] const ProgramHeader& SPH() const noexcept { 21 [[nodiscard]] const ProgramHeader& SPH() const noexcept {
22 return sph; 22 return sph;
@@ -26,9 +26,14 @@ public:
26 return stage; 26 return stage;
27 } 27 }
28 28
29 [[nodiscard]] u32 StartAddress() const noexcept {
30 return start_address;
31 }
32
29protected: 33protected:
30 ProgramHeader sph{}; 34 ProgramHeader sph{};
31 Stage stage{}; 35 Stage stage{};
36 u32 start_address{};
32}; 37};
33 38
34} // namespace Shader 39} // namespace Shader