diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-08-03 12:18:35 +0100 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-08-03 15:30:27 +0100 |
commit | dfb7fc8293a528d6c8cc2abef7fac5a6a7bf2883 (patch) | |
tree | faf1c9bce2d7159b0f9b7bb3cdd08be7f47f7847 /src/video_core/shader_environment.h | |
parent | 096644c01cb8cd30589d5f168fdabaac5aad174a (diff) |
Fix shader dumps with nvdisasm
skip fragment shaders when rasterizer is disabled
initialize env_ptrs
Diffstat (limited to 'src/video_core/shader_environment.h')
-rw-r--r-- | src/video_core/shader_environment.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader_environment.h b/src/video_core/shader_environment.h index a0f61cbda0..b90f3d44e2 100644 --- a/src/video_core/shader_environment.h +++ b/src/video_core/shader_environment.h @@ -58,7 +58,7 @@ public: [[nodiscard]] u64 CalculateHash() const; - void Dump(u64 hash) override; + void Dump(u64 pipeline_hash, u64 shader_hash) override; void Serialize(std::ofstream& file) const; @@ -188,10 +188,10 @@ public: return cbuf_replacements.size() != 0; } - void Dump(u64 hash) override; + void Dump(u64 pipeline_hash, u64 shader_hash) override; private: - std::unique_ptr<u64[]> code; + std::vector<u64> code; std::unordered_map<u32, Shader::TextureType> texture_types; std::unordered_map<u32, Shader::TexturePixelFormat> texture_pixel_formats; std::unordered_map<u64, u32> cbuf_values; |