summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-01 02:47:37 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-02 19:21:40 +0000
commitc778652b7fd834aeee7ca046d1a8d1e1d0a9f5e4 (patch)
tree8e9816af59dad2077e5214b44994b5cf34d3bd49 /Graphics/GraphicsEngine
parentAdded BeginRenderPass, NextSubpass, and EndRenderPass device context methods (diff)
downloadDiligentCore-c778652b7fd834aeee7ca046d1a8d1e1d0a9f5e4.tar.gz
DiligentCore-c778652b7fd834aeee7ca046d1a8d1e1d0a9f5e4.zip
PipelineStateVkImpl: creating implicit IRenderPass object instead of Vulkan render pass
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/PipelineStateBase.hpp2
-rw-r--r--Graphics/GraphicsEngine/interface/PipelineState.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp
index 6d70f4da..dbb974b2 100644
--- a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp
+++ b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp
@@ -389,6 +389,8 @@ protected:
RefCntAutoPtr<IShader> m_pHS; ///< Strong reference to the hull shader
RefCntAutoPtr<IShader> m_pCS; ///< Strong reference to the compute shader
+ RefCntAutoPtr<IRenderPass> m_pRenderPass; ///< Strong reference to the render pass object
+
IShader* m_ppShaders[5] = {}; ///< Array of pointers to the shaders used by this PSO
size_t m_ShaderResourceLayoutHash = 0; ///< Hash computed from the shader resource layout
diff --git a/Graphics/GraphicsEngine/interface/PipelineState.h b/Graphics/GraphicsEngine/interface/PipelineState.h
index 5e99a392..4079a66a 100644
--- a/Graphics/GraphicsEngine/interface/PipelineState.h
+++ b/Graphics/GraphicsEngine/interface/PipelineState.h
@@ -43,6 +43,7 @@
#include "ShaderResourceVariable.h"
#include "Shader.h"
#include "Sampler.h"
+#include "RenderPass.h"
DILIGENT_BEGIN_NAMESPACE(Diligent)