mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 21:07:52 +00:00
texture_cache/surface_params: Make GetNumLayers public
This commit is contained in:
parent
43fc793439
commit
2b2712fa95
1 changed files with 5 additions and 4 deletions
|
@ -209,6 +209,11 @@ public:
|
||||||
return target == VideoCore::Surface::SurfaceTarget::TextureBuffer;
|
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.
|
/// Returns the debug name of the texture for use in graphic debuggers.
|
||||||
std::string TargetName() const;
|
std::string TargetName() const;
|
||||||
|
|
||||||
|
@ -287,10 +292,6 @@ private:
|
||||||
/// Returns the size of a layer
|
/// Returns the size of a layer
|
||||||
std::size_t GetLayerSize(bool as_host_size, bool uncompressed) const;
|
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.
|
/// Returns true if these parameters are from a layered surface.
|
||||||
bool IsLayered() const;
|
bool IsLayered() const;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue