diff options
| author | azhirnov <zh1dron@gmail.com> | 2020-11-25 16:05:15 +0000 |
|---|---|---|
| committer | azhirnov <zh1dron@gmail.com> | 2020-11-25 16:05:15 +0000 |
| commit | 96d39d3be6c2a1e94070f73c62fa85ccf86ddca8 (patch) | |
| tree | 507383f96c67adb285dd1fed28c02c6dc810eea4 /Graphics/GraphicsEngine | |
| parent | Merge branch 'master' into ray_tracing_2 (diff) | |
| download | DiligentCore-96d39d3be6c2a1e94070f73c62fa85ccf86ddca8.tar.gz DiligentCore-96d39d3be6c2a1e94070f73c62fa85ccf86ddca8.zip | |
Added support for VK_KHR_acceleration_structure and VK_KHR_ray_tracing_pipeline
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/DeviceContextBase.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp index 14a2d0eb..ced32db5 100644 --- a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp +++ b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp @@ -1636,6 +1636,12 @@ bool DeviceContextBase<BaseInterface, ImplementationTraits>::TraceRays(const Tra return false; } + if (m_pActiveRenderPass != nullptr && Attribs.SBTTransitionMode == RESOURCE_STATE_TRANSITION_MODE_TRANSITION) + { + LOG_ERROR_MESSAGE("IDeviceContext::TraceRays command uses resource state transition and must be performed outside of render pass"); + return false; + } + if (!VerifyTraceRaysAttribs(Attribs)) return false; #endif |
