diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-11-06 05:43:17 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-11-06 05:43:17 +0000 |
| commit | db5cfe224b9ff00234b29ff097262bc7377b90c4 (patch) | |
| tree | e903167999d17f714223d00466fb4e9ace05c811 /Graphics/GraphicsEngineD3D12 | |
| parent | Renamed StringPool::Release to StringPool::Clear (diff) | |
| download | DiligentCore-db5cfe224b9ff00234b29ff097262bc7377b90c4.tar.gz DiligentCore-db5cfe224b9ff00234b29ff097262bc7377b90c4.zip | |
Refactored BufferBase
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp | 4 |
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); |
