diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-03-17 22:10:03 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 00:38:24 +0000 |
| commit | 0420f6816d6814aa674b129a86379c1b20ba0575 (patch) | |
| tree | f4278e847836582da8217861d0a57ab07e1b67b5 /Graphics/GraphicsEngineD3D12 | |
| parent | ShaderVariableManagerD3D11: some code updates (diff) | |
| download | DiligentCore-0420f6816d6814aa674b129a86379c1b20ba0575.tar.gz DiligentCore-0420f6816d6814aa674b129a86379c1b20ba0575.zip | |
Some more code improvemnts in D3D11 backend
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp index ec04acb9..9bd09ffe 100644 --- a/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp @@ -384,7 +384,7 @@ ID3D12Resource* BufferD3D12Impl::GetD3D12Buffer(Uint64& DataStartByteOffset, IDe auto* pd3d12Resource = GetD3D12Resource(); if (pd3d12Resource != nullptr) { - VERIFY(m_Desc.Usage != USAGE_DYNAMIC || (m_Desc.BindFlags | (BIND_SHADER_RESOURCE | BIND_UNORDERED_ACCESS)) != 0, "Expected non-dynamic buffer or a buffer with SRV or UAV bind flags"); + VERIFY(m_Desc.Usage != USAGE_DYNAMIC || (m_Desc.BindFlags & (BIND_SHADER_RESOURCE | BIND_UNORDERED_ACCESS)) != 0, "Expected non-dynamic buffer or a buffer with SRV or UAV bind flags"); DataStartByteOffset = 0; return pd3d12Resource; } |
