diff options
author | Subv <subv2112@gmail.com> | 2018-07-04 05:32:59 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-04 05:32:59 +0200 |
commit | 5a9df3c6753e66519acaa13685abb89231e45ade (patch) | |
tree | 8f567cbd7f15670e34f2191ee0848f859c32b6ff /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #609 from Subv/clear_buffers (diff) | |
download | yuzu-5a9df3c6753e66519acaa13685abb89231e45ade.tar yuzu-5a9df3c6753e66519acaa13685abb89231e45ade.tar.gz yuzu-5a9df3c6753e66519acaa13685abb89231e45ade.tar.bz2 yuzu-5a9df3c6753e66519acaa13685abb89231e45ade.tar.lz yuzu-5a9df3c6753e66519acaa13685abb89231e45ade.tar.xz yuzu-5a9df3c6753e66519acaa13685abb89231e45ade.tar.zst yuzu-5a9df3c6753e66519acaa13685abb89231e45ade.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 7aaf371bd..8005a81b8 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -326,13 +326,18 @@ struct SurfaceParams { return addr <= (region_addr + region_size) && region_addr <= (addr + size_in_bytes); } - /// Creates SurfaceParams from a texture configation + /// Creates SurfaceParams from a texture configuration static SurfaceParams CreateForTexture(const Tegra::Texture::FullTextureInfo& config); - /// Creates SurfaceParams from a framebuffer configation + /// Creates SurfaceParams from a framebuffer configuration static SurfaceParams CreateForFramebuffer( const Tegra::Engines::Maxwell3D::Regs::RenderTargetConfig& config); + /// Creates SurfaceParams for a depth buffer configuration + static SurfaceParams CreateForDepthBuffer( + const Tegra::Engines::Maxwell3D::Regs::RenderTargetConfig& config, + Tegra::GPUVAddr zeta_address, Tegra::DepthFormat format); + Tegra::GPUVAddr addr; bool is_tiled; u32 block_height; |