[idd] keep the textures mapped until overwrite for future re-use

This commit is contained in:
Geoffrey McRae
2023-04-14 13:26:08 +10:00
parent 0c176acf94
commit 80b9bda59d
2 changed files with 19 additions and 10 deletions

View File

@@ -38,6 +38,7 @@ private:
int height = 0;
DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN;
Microsoft::WRL::ComPtr<ID3D11Texture2D> tex;
D3D11_MAPPED_SUBRESOURCE map = {};
};
StagingTexture m_cpuTex[STAGING_TEXTURES] = {};