diff options
author | wwylele <wwylele@gmail.com> | 2017-08-22 08:49:53 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2017-08-25 06:26:45 +0200 |
commit | addbcd5784c8195f49cecc20834537c80d1c8c72 (patch) | |
tree | 1a21dffd2eed5d337f6687739ea163503e298bf8 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | SwRasterizer: implement custom clip plane (diff) | |
download | yuzu-addbcd5784c8195f49cecc20834537c80d1c8c72.tar yuzu-addbcd5784c8195f49cecc20834537c80d1c8c72.tar.gz yuzu-addbcd5784c8195f49cecc20834537c80d1c8c72.tar.bz2 yuzu-addbcd5784c8195f49cecc20834537c80d1c8c72.tar.lz yuzu-addbcd5784c8195f49cecc20834537c80d1c8c72.tar.xz yuzu-addbcd5784c8195f49cecc20834537c80d1c8c72.tar.zst yuzu-addbcd5784c8195f49cecc20834537c80d1c8c72.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 78e218efe..46c62961c 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -151,14 +151,21 @@ private: LightSrc light_src[8]; alignas(16) GLvec4 const_color[6]; // A vec4 color for each of the six tev stages alignas(16) GLvec4 tev_combiner_buffer_color; + alignas(16) GLvec4 clip_coef; }; static_assert( - sizeof(UniformData) == 0x460, + sizeof(UniformData) == 0x470, "The size of the UniformData structure has changed, update the structure in the shader"); static_assert(sizeof(UniformData) < 16384, "UniformData structure must be less than 16kb as per the OpenGL spec"); + /// Syncs the clip enabled status to match the PICA register + void SyncClipEnabled(); + + /// Syncs the clip coefficients to match the PICA register + void SyncClipCoef(); + /// Sets the OpenGL shader in accordance with the current PICA register state void SetShader(); |