From 8522b86199fc6fb7238946081acecde986c20957 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 20 Dec 2020 21:05:55 -0800 Subject: Removed SBTTransitionMode from TraceRaysAttribs --- Graphics/GraphicsEngine/include/DeviceContextBase.hpp | 4 ++-- Graphics/GraphicsEngine/interface/DeviceContext.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp index ba028dd3..8c4c685c 100644 --- a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp +++ b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp @@ -1648,9 +1648,9 @@ bool DeviceContextBase::TraceRays(const Tra return false; } - if (m_pActiveRenderPass != nullptr && Attribs.SBTTransitionMode == RESOURCE_STATE_TRANSITION_MODE_TRANSITION) + if (m_pActiveRenderPass != nullptr) { - LOG_ERROR_MESSAGE("IDeviceContext::TraceRays command uses resource state transition and must be performed outside of render pass"); + LOG_ERROR_MESSAGE("IDeviceContext::TraceRays must be performed outside of render pass"); return false; } diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h index 73e2640c..fa9ca273 100644 --- a/Graphics/GraphicsEngine/interface/DeviceContext.h +++ b/Graphics/GraphicsEngine/interface/DeviceContext.h @@ -1229,10 +1229,7 @@ struct TraceRaysAttribs Uint32 DimensionX DEFAULT_INITIALIZER(1); ///< The number of rays dispatched in X direction. Uint32 DimensionY DEFAULT_INITIALIZER(1); ///< The number of rays dispatched in Y direction. Uint32 DimensionZ DEFAULT_INITIALIZER(1); ///< The number of rays dispatched in Z direction. - - /// Shader binding table buffer state transition mode (see Diligent::RESOURCE_STATE_TRANSITION_MODE). - RESOURCE_STATE_TRANSITION_MODE SBTTransitionMode DEFAULT_INITIALIZER(RESOURCE_STATE_TRANSITION_MODE_NONE); - + #if DILIGENT_CPP_INTERFACE TraceRaysAttribs() noexcept {} #endif @@ -2198,6 +2195,9 @@ DILIGENT_BEGIN_INTERFACE(IDeviceContext, IObject) /// Executes a trace rays command. /// \param [in] Attribs - Trace rays command attributes, see Diligent::TraceRaysAttribs for details. + /// + /// \remarks The method is not thread-safe. An application must externally synchronize the access + /// to the shader binding table passed as an argument to the function. VIRTUAL void METHOD(TraceRays)(THIS_ const TraceRaysAttribs REF Attribs) PURE; }; -- cgit v1.2.3