texture_cache: Address feedback
This commit is contained in:
parent
223ca80753
commit
3f3c3ca5f9
4 changed files with 13 additions and 30 deletions
|
@ -236,10 +236,7 @@ CachedSurface::CachedSurface(const GPUVAddr gpu_addr, const SurfaceParams& param
|
|||
true);
|
||||
}
|
||||
|
||||
CachedSurface::~CachedSurface() {
|
||||
views.clear();
|
||||
main_view = nullptr;
|
||||
}
|
||||
CachedSurface::~CachedSurface() = default;
|
||||
|
||||
void CachedSurface::DownloadTexture(std::vector<u8>& staging_buffer) {
|
||||
MICROPROFILE_SCOPE(OpenGL_Texture_Download);
|
||||
|
|
|
@ -89,21 +89,6 @@ public:
|
|||
return surface.GetSurfaceParams();
|
||||
}
|
||||
|
||||
u32 GetWidth() const {
|
||||
const auto& owner_params = GetSurfaceParams();
|
||||
return owner_params.GetMipWidth(params.base_level);
|
||||
}
|
||||
|
||||
u32 GetHeight() const {
|
||||
const auto& owner_params = GetSurfaceParams();
|
||||
return owner_params.GetMipHeight(params.base_level);
|
||||
}
|
||||
|
||||
u32 GetDepth() const {
|
||||
const auto& owner_params = GetSurfaceParams();
|
||||
return owner_params.GetMipDepth(params.base_level);
|
||||
}
|
||||
|
||||
void ApplySwizzle(Tegra::Texture::SwizzleSource x_source,
|
||||
Tegra::Texture::SwizzleSource y_source,
|
||||
Tegra::Texture::SwizzleSource z_source,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue