diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-04 06:12:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-04 06:12:46 +0200 |
commit | 81a44d38ee0a9df2cc89e363c43b38548a1fcfe7 (patch) | |
tree | 8f567cbd7f15670e34f2191ee0848f859c32b6ff /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #609 from Subv/clear_buffers (diff) | |
parent | GPU: Only configure the used framebuffers during clear. (diff) | |
download | yuzu-81a44d38ee0a9df2cc89e363c43b38548a1fcfe7.tar yuzu-81a44d38ee0a9df2cc89e363c43b38548a1fcfe7.tar.gz yuzu-81a44d38ee0a9df2cc89e363c43b38548a1fcfe7.tar.bz2 yuzu-81a44d38ee0a9df2cc89e363c43b38548a1fcfe7.tar.lz yuzu-81a44d38ee0a9df2cc89e363c43b38548a1fcfe7.tar.xz yuzu-81a44d38ee0a9df2cc89e363c43b38548a1fcfe7.tar.zst yuzu-81a44d38ee0a9df2cc89e363c43b38548a1fcfe7.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; |