diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-11-25 00:08:45 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-11-25 00:08:45 +0000 |
| commit | c125223b5cfbf25bb7da595424f9d9f98b50fb2b (patch) | |
| tree | ee51eb26af2eeba14b7f21448ee18b10620ecd2f /Tests/TestApp/src/TestTextureCreation.cpp | |
| parent | Moved/renamed `IBuffer::UpdateData()` to `IDeviceContext::UpdateBuffer()` (diff) | |
| download | DiligentEngine-c125223b5cfbf25bb7da595424f9d9f98b50fb2b.tar.gz DiligentEngine-c125223b5cfbf25bb7da595424f9d9f98b50fb2b.zip | |
Renamed/moved ITexture::UpdateData() to IDeviceContext::UpdateTexture()
Renamed/moved IBuffer::CopyData() to IDeviceContext::CopyTexture()
Updated parameter order of IDeviceContext::CopyBuffer()
Diffstat (limited to 'Tests/TestApp/src/TestTextureCreation.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestTextureCreation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestTextureCreation.cpp b/Tests/TestApp/src/TestTextureCreation.cpp index cfa4afd..d0b2ef3 100644 --- a/Tests/TestApp/src/TestTextureCreation.cpp +++ b/Tests/TestApp/src/TestTextureCreation.cpp @@ -273,7 +273,7 @@ private: { // In D3D11 if CopySubresourceRegion is used with Multisampled or D3D11_BIND_DEPTH_STENCIL Resources, // then the whole Subresource must be copied. - pTestTex->CopyData(m_pDeviceContext, pTestTex2, 0, 0, nullptr, 0, 0, 0,0,0); + m_pDeviceContext->CopyTexture(pTestTex2, 0, 0, nullptr, pTestTex, 0, 0, 0,0,0); } else { @@ -285,7 +285,7 @@ private: SrcBox.MaxY = std::max(TexDesc.Height/3, SrcBox.MinY+1); SrcBox.MaxZ = ( TexDesc.Type == RESOURCE_DIM_TEX_3D ) ? std::max(TexDesc.Depth/3, SrcBox.MinZ+1) : 1; //pTestTex2->UpdateData(m_pDeviceContext, 0, 0, DstBox, SubResources[0]); - pTestTex->CopyData(m_pDeviceContext, pTestTex2, 0, 0, &SrcBox, 0, 0, 0,0,0); + m_pDeviceContext->CopyTexture(pTestTex2, 0, 0, &SrcBox, pTestTex, 0, 0, 0,0,0); } } |
