Return texture ID directly from the image viewer replay driver

* The proxy replay driver might not report an 'internal' ID that doesn't
  have a true live ID, so instead we take responsibility for reporting
  it. The proxy will still return its details when prompted.
This commit is contained in:
baldurk
2017-07-06 11:51:03 +01:00
parent 96201c4762
commit e8c39c956a
+1 -1
View File
@@ -135,7 +135,7 @@ public:
{
return m_Proxy->ApplyCustomShader(shader, m_TextureID, mip, arrayIdx, sampleIdx, typeHint);
}
vector<ResourceId> GetTextures() { return m_Proxy->GetTextures(); }
vector<ResourceId> GetTextures() { return {m_TextureID}; }
TextureDescription GetTexture(ResourceId id) { return m_Proxy->GetTexture(m_TextureID); }
byte *GetTextureData(ResourceId tex, uint32_t arrayIdx, uint32_t mip,
const GetTextureDataParams &params, size_t &dataSize)