From 8798aa2e94602372a61c362d5c3f288cc07388c9 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 26 Jul 2020 19:16:18 -0700 Subject: Added BeginRenderPass, NextSubpass, and EndRenderPass device context methods --- Graphics/GraphicsEngine/interface/DeviceContext.h | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h index 79f8bd39..f0c4acf5 100644 --- a/Graphics/GraphicsEngine/interface/DeviceContext.h +++ b/Graphics/GraphicsEngine/interface/DeviceContext.h @@ -609,6 +609,16 @@ struct CopyTextureAttribs }; typedef struct CopyTextureAttribs CopyTextureAttribs; + +/// BeginRenderPass command attributes. + +/// This structure is used by IDeviceContext::BeginRenderPass(). +struct BeginRenderPassAttribs +{ + int TBD; +}; +typedef struct BeginRenderPassAttribs BeginRenderPassAttribs; + #define DILIGENT_INTERFACE_NAME IDeviceContext #include "../../../Primitives/interface/DefineInterfaceHelperMacros.h" @@ -864,6 +874,21 @@ DILIGENT_BEGIN_INTERFACE(IDeviceContext, IObject) RESOURCE_STATE_TRANSITION_MODE StateTransitionMode) PURE; + /// Begins a new render pass. + + /// \param [in] Attribs - The command attributes, see Diligent::BeginRenderPassAttribs for details. + VIRTUAL void METHOD(BeginRenderPass)(THIS_ + const BeginRenderPassAttribs REF Attribs) PURE; + + + /// Transitions to the next subpass in the render pass instance. + VIRTUAL void METHOD(NextSubpass)(THIS) PURE; + + + /// Ends current render pass. + VIRTUAL void METHOD(EndRenderPass)(THIS) PURE; + + /// Executes a draw command. /// \param [in] Attribs - Draw command attributes, see Diligent::DrawAttribs for details. -- cgit v1.2.3