diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-18 23:26:52 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-18 23:28:23 +0100 |
commit | da0aa4da6bc853c7afcc735a1cb68917feeefd42 (patch) | |
tree | 62a52db6d684ed7acbbb065c33193a0b382ddacb /src/video_core/renderer_opengl/gl_state.h | |
parent | Merge pull request #3173 from yuzu-emu/bunnei-spscqueue (diff) | |
download | yuzu-da0aa4da6bc853c7afcc735a1cb68917feeefd42.tar yuzu-da0aa4da6bc853c7afcc735a1cb68917feeefd42.tar.gz yuzu-da0aa4da6bc853c7afcc735a1cb68917feeefd42.tar.bz2 yuzu-da0aa4da6bc853c7afcc735a1cb68917feeefd42.tar.lz yuzu-da0aa4da6bc853c7afcc735a1cb68917feeefd42.tar.xz yuzu-da0aa4da6bc853c7afcc735a1cb68917feeefd42.tar.zst yuzu-da0aa4da6bc853c7afcc735a1cb68917feeefd42.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index 0b5895084..fb180f302 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -48,6 +48,8 @@ public: GLuint index = 0; } primitive_restart; // GL_PRIMITIVE_RESTART + bool rasterizer_discard = false; // GL_RASTERIZER_DISCARD + struct ColorMask { GLboolean red_enabled = GL_TRUE; GLboolean green_enabled = GL_TRUE; @@ -56,6 +58,7 @@ public: }; std::array<ColorMask, Tegra::Engines::Maxwell3D::Regs::NumRenderTargets> color_mask; // GL_COLOR_WRITEMASK + struct { bool test_enabled = false; // GL_STENCIL_TEST struct { @@ -174,6 +177,7 @@ public: void ApplyMultisample(); void ApplySRgb(); void ApplyCulling(); + void ApplyRasterizerDiscard(); void ApplyColorMask(); void ApplyDepth(); void ApplyPrimitiveRestart(); |