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/TestCopyTexData.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/TestCopyTexData.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestCopyTexData.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Tests/TestApp/src/TestCopyTexData.cpp b/Tests/TestApp/src/TestCopyTexData.cpp index 01e0274..2be5c7f 100644 --- a/Tests/TestApp/src/TestCopyTexData.cpp +++ b/Tests/TestApp/src/TestCopyTexData.cpp @@ -108,10 +108,11 @@ void TestCopyTexData::Test2DTexture( TEXTURE_FORMAT Format ) m_pDevice->CreateTexture( TexDesc, InitData, &pSrcTex ); m_pDevice->CreateTexture( TexDesc, TextureData(), &pDstTex ); - pDstTex->CopyData(m_pContext, pSrcTex, + m_pContext->CopyTexture(pSrcTex, 2, // Src mip 0, // Src slice nullptr, // Box + pDstTex, 1, // dst mip 0, // dst slice 32, 16, 0 // XYZ offset @@ -122,10 +123,11 @@ void TestCopyTexData::Test2DTexture( TEXTURE_FORMAT Format ) SrcBox.MaxX = 19; SrcBox.MinY = 1; SrcBox.MaxY = 32; - pDstTex->CopyData(m_pContext, pSrcTex, + m_pContext->CopyTexture(pSrcTex, 2, // Src mip 0, // Src slice &SrcBox, // Box + pDstTex, 1, // dst mip 0, // dst slice 32, 16, 0 // XYZ offset @@ -166,10 +168,11 @@ void TestCopyTexData::Test2DTexArray( TEXTURE_FORMAT Format ) m_pDevice->CreateTexture( TexDesc, InitData, &pSrcTex ); m_pDevice->CreateTexture( TexDesc, TextureData(), &pDstTex ); - pDstTex->CopyData(m_pContext, pSrcTex, + m_pContext->CopyTexture(pSrcTex, 2, // Src mip 3, // Src slice nullptr, // Box + pDstTex, 1, // dst mip 6, // dst slice 32, 16, 0 // XYZ offset @@ -180,10 +183,11 @@ void TestCopyTexData::Test2DTexArray( TEXTURE_FORMAT Format ) SrcBox.MaxX = 19; SrcBox.MinY = 1; SrcBox.MaxY = 32; - pDstTex->CopyData(m_pContext, pSrcTex, + m_pContext->CopyTexture(pSrcTex, 2, // Src mip 3, // Src slice &SrcBox, // Box + pDstTex, 1, // dst mip 5, // dst slice 32, 16, 0 // XYZ offset @@ -217,10 +221,11 @@ void TestCopyTexData::Test3DTexture( TEXTURE_FORMAT Format ) m_pDevice->CreateTexture( TexDesc, InitData, &pSrcTex ); m_pDevice->CreateTexture( TexDesc, TextureData(), &pDstTex ); - pDstTex->CopyData(m_pContext, pSrcTex, + m_pContext->CopyTexture(pSrcTex, 2, // Src mip 0, // Src slice nullptr, // Box + pDstTex, 1, // dst mip 0, // dst slice 16, 8, 0 // XYZ offset @@ -231,10 +236,11 @@ void TestCopyTexData::Test3DTexture( TEXTURE_FORMAT Format ) SrcBox.MaxX = 19; SrcBox.MinY = 1; SrcBox.MaxY = 32; - pDstTex->CopyData(m_pContext, pSrcTex, + m_pContext->CopyTexture(pSrcTex, 1, // Src mip 0, // Src slice &SrcBox, // Box + pDstTex, 0, // dst mip 0, // dst slice 32, 16, 0 // XYZ offset |
