diff options
| author | azhirnov <zh1dron@gmail.com> | 2021-03-09 23:33:41 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 00:38:21 +0000 |
| commit | 9411711453738341acc10dec8be88675fafd3155 (patch) | |
| tree | b61c05f63ba5d0efe2dea1fac323575fb68da6d6 /Graphics/GraphicsEngine | |
| parent | Reworked combined and immutable sampler validation in resource signature (diff) | |
| download | DiligentCore-9411711453738341acc10dec8be88675fafd3155.tar.gz DiligentCore-9411711453738341acc10dec8be88675fafd3155.zip | |
Direct3D11: added resource signature
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/DeviceContextBase.hpp | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngine/include/PipelineStateBase.hpp | 5 |
2 files changed, 7 insertions, 0 deletions
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<HashMapStringKey, Uint32, HashMapStringKey::Hasher>; |
