diff options
| author | 2018-04-04 23:04:24 +0200 | |
|---|---|---|
| committer | 2018-04-04 23:04:24 +0200 | |
| commit | cfc28e0c1ad8321525c3f2fa26ece3a95ad9dfd0 (patch) | |
| tree | bafa0a7b19ae567a0095cea300fbeb8772932aa8 /src | |
| parent | renderer_opengl.h: Update from citra to yuzu (diff) | |
| download | yuzu-cfc28e0c1ad8321525c3f2fa26ece3a95ad9dfd0.tar.gz yuzu-cfc28e0c1ad8321525c3f2fa26ece3a95ad9dfd0.tar.xz yuzu-cfc28e0c1ad8321525c3f2fa26ece3a95ad9dfd0.zip | |
gl_rasterizer_cache.h: Update from citra to yuzu
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 1f660d30c..37b1dae80 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h | |||
| @@ -303,12 +303,12 @@ public: | |||
| 303 | void CopySurface(const Surface& src_surface, const Surface& dst_surface, | 303 | void CopySurface(const Surface& src_surface, const Surface& dst_surface, |
| 304 | SurfaceInterval copy_interval); | 304 | SurfaceInterval copy_interval); |
| 305 | 305 | ||
| 306 | /// Load a texture from 3DS memory to OpenGL and cache it (if not already cached) | 306 | /// Load a texture from Switch memory to OpenGL and cache it (if not already cached) |
| 307 | Surface GetSurface(const SurfaceParams& params, ScaleMatch match_res_scale, | 307 | Surface GetSurface(const SurfaceParams& params, ScaleMatch match_res_scale, |
| 308 | bool load_if_create); | 308 | bool load_if_create); |
| 309 | 309 | ||
| 310 | /// Attempt to find a subrect (resolution scaled) of a surface, otherwise loads a texture from | 310 | /// Attempt to find a subrect (resolution scaled) of a surface, otherwise loads a texture from |
| 311 | /// 3DS memory to OpenGL and caches it (if not already cached) | 311 | /// Switch memory to OpenGL and caches it (if not already cached) |
| 312 | SurfaceRect_Tuple GetSurfaceSubRect(const SurfaceParams& params, ScaleMatch match_res_scale, | 312 | SurfaceRect_Tuple GetSurfaceSubRect(const SurfaceParams& params, ScaleMatch match_res_scale, |
| 313 | bool load_if_create); | 313 | bool load_if_create); |
| 314 | 314 | ||
| @@ -328,7 +328,7 @@ public: | |||
| 328 | /// Write any cached resources overlapping the region back to memory (if dirty) | 328 | /// Write any cached resources overlapping the region back to memory (if dirty) |
| 329 | void FlushRegion(VAddr addr, u64 size, Surface flush_surface = nullptr); | 329 | void FlushRegion(VAddr addr, u64 size, Surface flush_surface = nullptr); |
| 330 | 330 | ||
| 331 | /// Mark region as being invalidated by region_owner (nullptr if 3DS memory) | 331 | /// Mark region as being invalidated by region_owner (nullptr if Switch memory) |
| 332 | void InvalidateRegion(VAddr addr, u64 size, const Surface& region_owner); | 332 | void InvalidateRegion(VAddr addr, u64 size, const Surface& region_owner); |
| 333 | 333 | ||
| 334 | /// Flush all cached resources tracked by this cache manager | 334 | /// Flush all cached resources tracked by this cache manager |