diff options
| author | 2021-05-23 04:28:34 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:30 -0400 | |
| commit | d621e96d0de212cc16897eadf71e8a1b2e1eb5dc (patch) | |
| tree | 8695f2f4dddf2564b63e4574d6616ccb0e79568c /src/video_core/shader_environment.h | |
| parent | spirv: Be aware of NAN unaware drivers (diff) | |
| download | yuzu-d621e96d0de212cc16897eadf71e8a1b2e1eb5dc.tar.gz yuzu-d621e96d0de212cc16897eadf71e8a1b2e1eb5dc.tar.xz yuzu-d621e96d0de212cc16897eadf71e8a1b2e1eb5dc.zip | |
shader: Initial OpenGL implementation
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; |