summaryrefslogtreecommitdiff
path: root/src/video_core/shader_environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/shader_environment.h')
-rw-r--r--src/video_core/shader_environment.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/shader_environment.h b/src/video_core/shader_environment.h
index 8b3b8e9f5..a05833f38 100644
--- a/src/video_core/shader_environment.h
+++ b/src/video_core/shader_environment.h
@@ -85,6 +85,8 @@ protected:
85 u32 cached_highest = 0; 85 u32 cached_highest = 0;
86 u32 initial_offset = 0; 86 u32 initial_offset = 0;
87 87
88 u32 viewport_transform_state = 1;
89
88 bool has_unbound_instructions = false; 90 bool has_unbound_instructions = false;
89}; 91};
90 92
@@ -102,6 +104,8 @@ public:
102 104
103 Shader::TextureType ReadTextureType(u32 handle) override; 105 Shader::TextureType ReadTextureType(u32 handle) override;
104 106
107 u32 ReadViewportTransformState() override;
108
105private: 109private:
106 Tegra::Engines::Maxwell3D* maxwell3d{}; 110 Tegra::Engines::Maxwell3D* maxwell3d{};
107 size_t stage_index{}; 111 size_t stage_index{};
@@ -120,6 +124,8 @@ public:
120 124
121 Shader::TextureType ReadTextureType(u32 handle) override; 125 Shader::TextureType ReadTextureType(u32 handle) override;
122 126
127 u32 ReadViewportTransformState() override;
128
123private: 129private:
124 Tegra::Engines::KeplerCompute* kepler_compute{}; 130 Tegra::Engines::KeplerCompute* kepler_compute{};
125}; 131};
@@ -143,6 +149,8 @@ public:
143 149
144 [[nodiscard]] Shader::TextureType ReadTextureType(u32 handle) override; 150 [[nodiscard]] Shader::TextureType ReadTextureType(u32 handle) override;
145 151
152 [[nodiscard]] u32 ReadViewportTransformState() override;
153
146 [[nodiscard]] u32 LocalMemorySize() const override; 154 [[nodiscard]] u32 LocalMemorySize() const override;
147 155
148 [[nodiscard]] u32 SharedMemorySize() const override; 156 [[nodiscard]] u32 SharedMemorySize() const override;
@@ -164,6 +172,7 @@ private:
164 u32 read_lowest{}; 172 u32 read_lowest{};
165 u32 read_highest{}; 173 u32 read_highest{};
166 u32 initial_offset{}; 174 u32 initial_offset{};
175 u32 viewport_transform_state = 1;
167}; 176};
168 177
169void SerializePipeline(std::span<const char> key, std::span<const GenericEnvironment* const> envs, 178void SerializePipeline(std::span<const char> key, std::span<const GenericEnvironment* const> envs,