diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-11 06:32:12 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-06 01:35:51 +0200 |
commit | 04cdecb7a114471fec50deab86bcd160ec85feb4 (patch) | |
tree | 69af6a51405451420ac7b80cf6d5b43f50b4e73f /src/video_core/renderer_opengl/gl_state.h | |
parent | gl_rasterizer: Implement image bindings (diff) | |
download | yuzu-04cdecb7a114471fec50deab86bcd160ec85feb4.tar yuzu-04cdecb7a114471fec50deab86bcd160ec85feb4.tar.gz yuzu-04cdecb7a114471fec50deab86bcd160ec85feb4.tar.bz2 yuzu-04cdecb7a114471fec50deab86bcd160ec85feb4.tar.lz yuzu-04cdecb7a114471fec50deab86bcd160ec85feb4.tar.xz yuzu-04cdecb7a114471fec50deab86bcd160ec85feb4.tar.zst yuzu-04cdecb7a114471fec50deab86bcd160ec85feb4.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index 9748d60e2..949b13051 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -118,22 +118,8 @@ public: GLenum operation; } logic_op; - // 3 texture units - one for each that is used in PICA fragment shader emulation - struct TextureUnit { - GLuint texture; // GL_TEXTURE_BINDING_2D - GLuint sampler; // GL_SAMPLER_BINDING - - void Unbind() { - texture = 0; - } - - void Reset() { - Unbind(); - sampler = 0; - } - }; - std::array<TextureUnit, Tegra::Engines::Maxwell3D::Regs::NumTextureSamplers> texture_units; - + std::array<GLuint, Tegra::Engines::Maxwell3D::Regs::NumTextureSamplers> textures{}; + std::array<GLuint, Tegra::Engines::Maxwell3D::Regs::NumTextureSamplers> samplers{}; std::array<GLuint, Tegra::Engines::Maxwell3D::Regs::NumImages> images{}; struct { |