From c778652b7fd834aeee7ca046d1a8d1e1d0a9f5e4 Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 31 Jul 2020 19:47:37 -0700 Subject: PipelineStateVkImpl: creating implicit IRenderPass object instead of Vulkan render pass --- Graphics/GraphicsEngine/include/PipelineStateBase.hpp | 2 ++ Graphics/GraphicsEngine/interface/PipelineState.h | 1 + 2 files changed, 3 insertions(+) (limited to 'Graphics/GraphicsEngine') 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 m_pHS; ///< Strong reference to the hull shader RefCntAutoPtr m_pCS; ///< Strong reference to the compute shader + RefCntAutoPtr 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) -- cgit v1.2.3