diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-09 03:10:12 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2019-03-21 03:36:02 +0100 |
commit | 21eb4cfa7f295205247397c117e1e2b4f6650d14 (patch) | |
tree | f8014a104d430905e81d2f5bd9414f30b8bb611b /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | gpu: Rewrite virtual memory manager using PageTable. (diff) | |
download | yuzu-21eb4cfa7f295205247397c117e1e2b4f6650d14.tar yuzu-21eb4cfa7f295205247397c117e1e2b4f6650d14.tar.gz yuzu-21eb4cfa7f295205247397c117e1e2b4f6650d14.tar.bz2 yuzu-21eb4cfa7f295205247397c117e1e2b4f6650d14.tar.lz yuzu-21eb4cfa7f295205247397c117e1e2b4f6650d14.tar.xz yuzu-21eb4cfa7f295205247397c117e1e2b4f6650d14.tar.zst yuzu-21eb4cfa7f295205247397c117e1e2b4f6650d14.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index d76bc0ee7..0efcafd07 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -109,6 +109,11 @@ struct SurfaceParams { return size; } + /// Returns true if the parameters constitute a valid rasterizer surface. + bool IsValid() const { + return gpu_addr && host_ptr && height && width; + } + /// Returns the exact size of the memory occupied by a layer in a texture in VRAM, including /// mipmaps. std::size_t LayerMemorySize() const { |