summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-11-06 05:43:17 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-11-06 05:43:17 +0000
commitdb5cfe224b9ff00234b29ff097262bc7377b90c4 (patch)
treee903167999d17f714223d00466fb4e9ace05c811 /Graphics/GraphicsEngineD3D12
parentRenamed StringPool::Release to StringPool::Clear (diff)
downloadDiligentCore-db5cfe224b9ff00234b29ff097262bc7377b90c4.tar.gz
DiligentCore-db5cfe224b9ff00234b29ff097262bc7377b90c4.zip
Refactored BufferBase
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp
index 8e84b844..106c2336 100644
--- a/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp
@@ -348,7 +348,7 @@ void BufferD3D12Impl::CreateViewInternal(const BufferViewDesc& OrigViewDesc, IBu
void BufferD3D12Impl::CreateUAV(BufferViewDesc& UAVDesc, D3D12_CPU_DESCRIPTOR_HANDLE UAVDescriptor)
{
- CorrectBufferViewDesc(UAVDesc);
+ ValidateAndCorrectBufferViewDesc(m_Desc, UAVDesc);
D3D12_UNORDERED_ACCESS_VIEW_DESC D3D12_UAVDesc;
BufferViewDesc_to_D3D12_UAV_DESC(m_Desc, UAVDesc, D3D12_UAVDesc);
@@ -359,7 +359,7 @@ void BufferD3D12Impl::CreateUAV(BufferViewDesc& UAVDesc, D3D12_CPU_DESCRIPTOR_HA
void BufferD3D12Impl::CreateSRV(struct BufferViewDesc& SRVDesc, D3D12_CPU_DESCRIPTOR_HANDLE SRVDescriptor)
{
- CorrectBufferViewDesc(SRVDesc);
+ ValidateAndCorrectBufferViewDesc(m_Desc, SRVDesc);
D3D12_SHADER_RESOURCE_VIEW_DESC D3D12_SRVDesc;
BufferViewDesc_to_D3D12_SRV_DESC(m_Desc, SRVDesc, D3D12_SRVDesc);