Add support for Volume textures to have residency changed as regular textures

This commit is contained in:
Wojciech Figat
2022-04-21 12:36:16 +02:00
parent 60d2670e2e
commit 0a458d94c4
11 changed files with 50 additions and 57 deletions

View File

@@ -813,5 +813,5 @@ void GPUTexture::SetResidentMipLevels(int32 count)
if (_residentMipLevels == count || !IsRegularTexture())
return;
_residentMipLevels = count;
onResidentMipsChanged();
OnResidentMipsChanged();
}

View File

@@ -567,12 +567,12 @@ public:
/// Sets the number of resident mipmap levels in the texture (already uploaded to the GPU).
/// </summary>
API_PROPERTY() void SetResidentMipLevels(int32 count);
protected:
virtual bool OnInit() = 0;
uint64 calculateMemoryUsage() const;
virtual void onResidentMipsChanged() = 0;
virtual void OnResidentMipsChanged() = 0;
public: