summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-07-27 02:16:18 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-02 19:21:40 +0000
commit8798aa2e94602372a61c362d5c3f288cc07388c9 (patch)
tree9ef14b8e949cac5dd65d74ddb2b81ebdd43c7e43 /Graphics/GraphicsEngine
parentImplemented SubpassDependencyDesc struct (diff)
downloadDiligentCore-8798aa2e94602372a61c362d5c3f288cc07388c9.tar.gz
DiligentCore-8798aa2e94602372a61c362d5c3f288cc07388c9.zip
Added BeginRenderPass, NextSubpass, and EndRenderPass device context methods
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/DeviceContext.h25
1 files changed, 25 insertions, 0 deletions
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.