From 9411711453738341acc10dec8be88675fafd3155 Mon Sep 17 00:00:00 2001 From: azhirnov Date: Wed, 10 Mar 2021 02:33:41 +0300 Subject: Direct3D11: added resource signature --- Graphics/GraphicsEngine/include/DeviceContextBase.hpp | 2 ++ Graphics/GraphicsEngine/include/PipelineStateBase.hpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp index 70356e75..630071f4 100644 --- a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp +++ b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp @@ -246,6 +246,8 @@ public: /// resets render targets if it is. bool UnbindTextureFromFramebuffer(TextureImplType* pTexture, bool bShowMessage); + bool HasActiveRenderPass() const { return m_pActiveRenderPass != nullptr; } + protected: /// Caches the render target and depth stencil views. Returns true if any view is different /// from the cached value and false otherwise. diff --git a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp index e8743e0f..869e0af0 100644 --- a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp +++ b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp @@ -461,6 +461,11 @@ public: return true; } + SHADER_TYPE GetActiveShaderStages() const + { + return m_ActiveShaderStages; + } + protected: using TNameToGroupIndexMap = std::unordered_map; -- cgit v1.2.3