summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-11-24 23:45:15 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-11-24 23:45:15 +0000
commitdf67308c3b1236ff4c9445a17393f665e1ddd452 (patch)
treed7f21995a5154546234865764111da6a90cceee8 /Graphics/GraphicsTools
parentMoved/renamed `IBuffer::UpdateData()` to `IDeviceContext::UpdateBuffer()` (diff)
downloadDiligentCore-df67308c3b1236ff4c9445a17393f665e1ddd452.tar.gz
DiligentCore-df67308c3b1236ff4c9445a17393f665e1ddd452.zip
Renamed/moved ITexture::UpdateData() to IDeviceContext::UpdateTexture()
Renamed/moved IBuffer::CopyData() to IDeviceContext::CopyTexture()
Diffstat (limited to 'Graphics/GraphicsTools')
-rw-r--r--Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp2
-rw-r--r--Graphics/GraphicsTools/src/TextureUploaderGL.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp b/Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp
index 6fe124c6..8d824343 100644
--- a/Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp
+++ b/Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp
@@ -181,7 +181,7 @@ namespace Diligent
Box DstBox;
DstBox.MaxX = TexDesc.Width;
DstBox.MaxY = TexDesc.Height;
- OperationInfo.pDstTexture->UpdateData(pContext, OperationInfo.DstMip, OperationInfo.DstSlice, DstBox, SubResData);
+ pContext->UpdateTexture(OperationInfo.pDstTexture, OperationInfo.DstMip, OperationInfo.DstSlice, DstBox, SubResData);
pBuffer->SignalCopyScheduled();
}
break;
diff --git a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp
index 0c1dbdad..ef0bac67 100644
--- a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp
+++ b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp
@@ -206,7 +206,7 @@ namespace Diligent
const auto &TexDesc = OperationInfo.pDstTexture->GetDesc();
DstBox.MaxX = TexDesc.Width;
DstBox.MaxY = TexDesc.Height;
- OperationInfo.pDstTexture->UpdateData(pContext, OperationInfo.DstMip, OperationInfo.DstSlice, DstBox, SubResData);
+ pContext->UpdateTexture(OperationInfo.pDstTexture, OperationInfo.DstMip, OperationInfo.DstSlice, DstBox, SubResData);
pBuffer->SignalCopyScheduled();
}
break;