From 96d39d3be6c2a1e94070f73c62fa85ccf86ddca8 Mon Sep 17 00:00:00 2001 From: azhirnov Date: Wed, 25 Nov 2020 19:05:15 +0300 Subject: Added support for VK_KHR_acceleration_structure and VK_KHR_ray_tracing_pipeline --- Graphics/GraphicsEngine/include/DeviceContextBase.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Graphics/GraphicsEngine') 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::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 -- cgit v1.2.3