Add events for streamable resources residency changes tracking

This commit is contained in:
Wojciech Figat
2022-04-21 12:37:39 +02:00
parent 0a458d94c4
commit 5345d1f685
6 changed files with 27 additions and 7 deletions

View File

@@ -233,6 +233,7 @@ protected:
{
Swap(_streamingTexture->_texture, _newTexture);
_streamingTexture->GetTexture()->SetResidentMipLevels(_uploadedMipCount);
_streamingTexture->ResidencyChanged();
SAFE_DELETE_GPU_RESOURCE(_newTexture);
// Base
@@ -447,6 +448,7 @@ Task* StreamingTexture::CreateStreamingTask(int32 residency)
{
// Do the quick data release
_texture->ReleaseGPU();
ResidencyChanged();
}
else
{