diff options
| author | bunnei <bunneidev@gmail.com> | 2020-01-16 19:19:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-16 19:19:26 -0500 |
| commit | e041f33569b887bfea757740be9474f3fe5b079f (patch) | |
| tree | a0b293c133678a02754b340a3da8a99f553d8df5 /src/video_core/texture_cache/surface_params.h | |
| parent | 30faf6a9648fc2fd3939c588094f2e571b2d3cc2 (diff) | |
| parent | f09cd52980724068a37fb99b1edd50e99d4d8703 (diff) | |
Merge pull request #3300 from ReinUsesLisp/vk-texture-cache
vk_texture_cache: Implement generic texture cache on Vulkan
Diffstat (limited to 'src/video_core/texture_cache/surface_params.h')
| -rw-r--r-- | src/video_core/texture_cache/surface_params.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/surface_params.h b/src/video_core/texture_cache/surface_params.h index 992b5c022..9256fd6d9 100644 --- a/src/video_core/texture_cache/surface_params.h +++ b/src/video_core/texture_cache/surface_params.h @@ -209,6 +209,11 @@ public: return target == VideoCore::Surface::SurfaceTarget::TextureBuffer; } + /// Returns the number of layers in the surface. + std::size_t GetNumLayers() const { + return is_layered ? depth : 1; + } + /// Returns the debug name of the texture for use in graphic debuggers. std::string TargetName() const; @@ -287,10 +292,6 @@ private: /// Returns the size of a layer std::size_t GetLayerSize(bool as_host_size, bool uncompressed) const; - std::size_t GetNumLayers() const { - return is_layered ? depth : 1; - } - /// Returns true if these parameters are from a layered surface. bool IsLayered() const; }; |
