diff options
Diffstat (limited to 'src/video_core/shader_environment.h')
| -rw-r--r-- | src/video_core/shader_environment.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/video_core/shader_environment.h b/src/video_core/shader_environment.h index 37d712045..d26dbfaab 100644 --- a/src/video_core/shader_environment.h +++ b/src/video_core/shader_environment.h | |||
| @@ -29,22 +29,6 @@ class Memorymanager; | |||
| 29 | 29 | ||
| 30 | namespace VideoCommon { | 30 | namespace VideoCommon { |
| 31 | 31 | ||
| 32 | struct TextureHandle { | ||
| 33 | explicit TextureHandle(u32 data, bool via_header_index) { | ||
| 34 | if (via_header_index) { | ||
| 35 | image = data; | ||
| 36 | sampler = data; | ||
| 37 | } else { | ||
| 38 | const Tegra::Texture::TextureHandle handle{data}; | ||
| 39 | image = handle.tic_id; | ||
| 40 | sampler = via_header_index ? image : handle.tsc_id.Value(); | ||
| 41 | } | ||
| 42 | } | ||
| 43 | |||
| 44 | u32 image; | ||
| 45 | u32 sampler; | ||
| 46 | }; | ||
| 47 | |||
| 48 | class GenericEnvironment : public Shader::Environment { | 32 | class GenericEnvironment : public Shader::Environment { |
| 49 | public: | 33 | public: |
| 50 | explicit GenericEnvironment() = default; | 34 | explicit GenericEnvironment() = default; |