diff options
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>; |
