diff options
| author | azhirnov <zh1dron@gmail.com> | 2020-11-18 02:01:18 +0000 |
|---|---|---|
| committer | azhirnov <zh1dron@gmail.com> | 2020-11-18 02:01:18 +0000 |
| commit | a8d6acd496404dc5b01df997ad9d07504d6ccf1b (patch) | |
| tree | 47bde1f0dad761bc82299fb7d3dee6c5a6af5e8b /Graphics/GraphicsEngineD3DBase | |
| parent | Merge branch 'master' into ray_tracing_2 (diff) | |
| download | DiligentCore-a8d6acd496404dc5b01df997ad9d07504d6ccf1b.tar.gz DiligentCore-a8d6acd496404dc5b01df997ad9d07504d6ccf1b.zip | |
Removed SWAP_CHAIN_USAGE_UNORDERED_ACCESS, fixed shader group checks
Diffstat (limited to 'Graphics/GraphicsEngineD3DBase')
| -rw-r--r-- | Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.hpp b/Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.hpp index 701361d1..f26bcc5e 100644 --- a/Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.hpp +++ b/Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.hpp @@ -157,6 +157,7 @@ protected: swapChainDesc.SampleDesc.Quality = 0; DEV_CHECK_ERR(m_SwapChainDesc.Usage != 0, "No swap chain usage flags defined"); + static_assert(SWAP_CHAIN_USAGE_LAST == SWAP_CHAIN_USAGE_COPY_SOURCE, "Please update this function to handle the new swapchain usage"); swapChainDesc.BufferUsage = 0; if (m_SwapChainDesc.Usage & SWAP_CHAIN_USAGE_RENDER_TARGET) swapChainDesc.BufferUsage |= DXGI_USAGE_RENDER_TARGET_OUTPUT; |
