diff options
Diffstat (limited to 'src/video_core/shader_environment.h')
| -rw-r--r-- | src/video_core/shader_environment.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/shader_environment.h b/src/video_core/shader_environment.h index 6640e53d0..aae762b27 100644 --- a/src/video_core/shader_environment.h +++ b/src/video_core/shader_environment.h | |||
| @@ -57,6 +57,8 @@ public: | |||
| 57 | 57 | ||
| 58 | [[nodiscard]] u64 CalculateHash() const; | 58 | [[nodiscard]] u64 CalculateHash() const; |
| 59 | 59 | ||
| 60 | void Dump(u64 hash) override; | ||
| 61 | |||
| 60 | void Serialize(std::ofstream& file) const; | 62 | void Serialize(std::ofstream& file) const; |
| 61 | 63 | ||
| 62 | protected: | 64 | protected: |
| @@ -82,6 +84,7 @@ protected: | |||
| 82 | 84 | ||
| 83 | u32 cached_lowest = std::numeric_limits<u32>::max(); | 85 | u32 cached_lowest = std::numeric_limits<u32>::max(); |
| 84 | u32 cached_highest = 0; | 86 | u32 cached_highest = 0; |
| 87 | u32 initial_offset = 0; | ||
| 85 | 88 | ||
| 86 | bool has_unbound_instructions = false; | 89 | bool has_unbound_instructions = false; |
| 87 | }; | 90 | }; |
| @@ -149,6 +152,8 @@ public: | |||
| 149 | 152 | ||
| 150 | [[nodiscard]] std::array<u32, 3> WorkgroupSize() const override; | 153 | [[nodiscard]] std::array<u32, 3> WorkgroupSize() const override; |
| 151 | 154 | ||
| 155 | void Dump(u64 hash) override; | ||
| 156 | |||
| 152 | private: | 157 | private: |
| 153 | std::unique_ptr<u64[]> code; | 158 | std::unique_ptr<u64[]> code; |
| 154 | std::unordered_map<u32, Shader::TextureType> texture_types; | 159 | std::unordered_map<u32, Shader::TextureType> texture_types; |
| @@ -159,6 +164,7 @@ private: | |||
| 159 | u32 texture_bound{}; | 164 | u32 texture_bound{}; |
| 160 | u32 read_lowest{}; | 165 | u32 read_lowest{}; |
| 161 | u32 read_highest{}; | 166 | u32 read_highest{}; |
| 167 | u32 initial_offset{}; | ||
| 162 | }; | 168 | }; |
| 163 | 169 | ||
| 164 | void SerializePipeline(std::span<const char> key, std::span<const GenericEnvironment* const> envs, | 170 | void SerializePipeline(std::span<const char> key, std::span<const GenericEnvironment* const> envs, |