summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorazhirnov <zh1dron@gmail.com>2020-11-25 16:05:15 +0000
committerazhirnov <zh1dron@gmail.com>2020-11-25 16:05:15 +0000
commit96d39d3be6c2a1e94070f73c62fa85ccf86ddca8 (patch)
tree507383f96c67adb285dd1fed28c02c6dc810eea4 /Graphics/GraphicsEngine
parentMerge branch 'master' into ray_tracing_2 (diff)
downloadDiligentCore-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.hpp6
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