diff options
author | Jannik Vogel <email@jannikvogel.de> | 2016-04-19 00:53:42 +0200 |
---|---|---|
committer | Jannik Vogel <email@jannikvogel.de> | 2016-05-11 08:07:37 +0200 |
commit | 5a7306d6dfb04cf21990a58cddb5b03ca2541fa0 (patch) | |
tree | 293f1547afeba5b684d4cd73e0cd26cb81341839 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Rasterizer: Implement texture type 3 (diff) | |
download | yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.gz yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.bz2 yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.lz yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.xz yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.zst yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index b9315ed33..eed00011a 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -61,6 +61,8 @@ union PicaShaderConfig { state.alpha_test_func = regs.output_merger.alpha_test.enable ? regs.output_merger.alpha_test.func.Value() : Pica::Regs::CompareFunc::Always; + state.texture0_type = regs.texture0.type; + // Copy relevant tev stages fields. // We don't sync const_color here because of the high variance, it is a // shader uniform instead. @@ -170,6 +172,7 @@ union PicaShaderConfig { struct State { Pica::Regs::CompareFunc alpha_test_func; + Pica::Regs::TextureConfig::TextureType texture0_type; std::array<TevStageConfigRaw, 6> tev_stages; u8 combiner_buffer_input; @@ -281,6 +284,7 @@ private: tex_coord1[1] = v.tc1.y.ToFloat32(); tex_coord2[0] = v.tc2.x.ToFloat32(); tex_coord2[1] = v.tc2.y.ToFloat32(); + tex_coord0_w = v.tc0_w.ToFloat32(); normquat[0] = v.quat.x.ToFloat32(); normquat[1] = v.quat.y.ToFloat32(); normquat[2] = v.quat.z.ToFloat32(); @@ -301,6 +305,7 @@ private: GLfloat tex_coord0[2]; GLfloat tex_coord1[2]; GLfloat tex_coord2[2]; + GLfloat tex_coord0_w; GLfloat normquat[4]; GLfloat view[3]; }; |