diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-24 05:55:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 05:55:56 +0100 |
commit | e23543918b05bf1868d0312fb30f5070bb860364 (patch) | |
tree | 76748cf115ebbff4d17544e402d48f067d31ab9e /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #1692 from Hedges/GDBClean (diff) | |
parent | Add support for clear_flags register (diff) | |
download | yuzu-e23543918b05bf1868d0312fb30f5070bb860364.tar yuzu-e23543918b05bf1868d0312fb30f5070bb860364.tar.gz yuzu-e23543918b05bf1868d0312fb30f5070bb860364.tar.bz2 yuzu-e23543918b05bf1868d0312fb30f5070bb860364.tar.lz yuzu-e23543918b05bf1868d0312fb30f5070bb860364.tar.xz yuzu-e23543918b05bf1868d0312fb30f5070bb860364.tar.zst yuzu-e23543918b05bf1868d0312fb30f5070bb860364.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 6e78ab4cd..d3192c47d 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -91,19 +91,20 @@ private: void SyncWithConfig(const Tegra::Texture::TSCEntry& info); private: - Tegra::Texture::TextureFilter mag_filter; - Tegra::Texture::TextureFilter min_filter; - Tegra::Texture::TextureMipmapFilter mip_filter; - Tegra::Texture::WrapMode wrap_u; - Tegra::Texture::WrapMode wrap_v; - Tegra::Texture::WrapMode wrap_p; - bool uses_depth_compare; - Tegra::Texture::DepthCompareFunc depth_compare_func; - GLvec4 border_color; - float min_lod; - float max_lod; - float lod_bias; - float max_anisotropic; + Tegra::Texture::TextureFilter mag_filter = Tegra::Texture::TextureFilter::Nearest; + Tegra::Texture::TextureFilter min_filter = Tegra::Texture::TextureFilter::Nearest; + Tegra::Texture::TextureMipmapFilter mip_filter = Tegra::Texture::TextureMipmapFilter::None; + Tegra::Texture::WrapMode wrap_u = Tegra::Texture::WrapMode::ClampToEdge; + Tegra::Texture::WrapMode wrap_v = Tegra::Texture::WrapMode::ClampToEdge; + Tegra::Texture::WrapMode wrap_p = Tegra::Texture::WrapMode::ClampToEdge; + bool uses_depth_compare = false; + Tegra::Texture::DepthCompareFunc depth_compare_func = + Tegra::Texture::DepthCompareFunc::Always; + GLvec4 border_color = {}; + float min_lod = 0.0f; + float max_lod = 16.0f; + float lod_bias = 0.0f; + float max_anisotropic = 1.0f; }; /** @@ -171,7 +172,7 @@ private: void SyncMultiSampleState(); /// Syncs the scissor test state to match the guest state - void SyncScissorTest(); + void SyncScissorTest(OpenGLState& current_state); /// Syncs the transform feedback state to match the guest state void SyncTransformFeedback(); |