How to reproduce:
- Open the attached project "StagingTexturesRepro.zip"
- Open the Player Settings (Edit > Project Settings... > Player)
- Make sure the Graphics API is set to DirectX 11
- Open the Build Settings (Edit > Build Settings...) and Build
- Open the RenderDoc and launch the Player
- Set the RenderDoc to capture 10 sequential frames after 1 second
- Click on “Capture After Delay”
- Switch to the Player and click on the "Create T2DA" button
- Go back to RenderDoc and select one of the frames after the button was clicked
- Check the Resource Inspector (Render Doc > Window > Resource Inspector) and notice the many “2D Texture XXXX” textures. These are the staging textures.
Expected result: The staging Textures are automatically released
Actual result: The staging Textures are not released
Reproducible with: 2019.4.38f1, 2020.3.35f1, 2021.3.4f1, 2022.1.4f1, 2022.2.0a16
Tested on: Windows 10 Enterprise