Fix delay on virtual GPU texture upload
This commit is contained in:
@@ -252,6 +252,7 @@ protected:
|
||||
|
||||
void OnSync() override
|
||||
{
|
||||
// Update residency
|
||||
_newTexture->SetResidentMipLevels(_uploadedMipCount);
|
||||
Swap(_streamingTexture->_texture, _newTexture);
|
||||
SAFE_DELETE_GPU_RESOURCE(_newTexture);
|
||||
@@ -409,6 +410,8 @@ protected:
|
||||
dataSource += dataPerSlice;
|
||||
}
|
||||
|
||||
UpdateResidency(texture);
|
||||
|
||||
return Result::Ok;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user