Skip to content

Commit 4df6896

Browse files
PipelineStateBase: added GetRenderTargetMask method
1 parent f9de166 commit 4df6896

File tree

2 files changed

+88
-62
lines changed

2 files changed

+88
-62
lines changed

Graphics/GraphicsEngine/include/PipelineStateBase.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ void ExtractShaders(const TilePipelineStateCreateInfo& CreateInfo,
360360
VERIFY_EXPR(!ShaderStages.empty());
361361
}
362362

363+
Uint32 GetRenderTargetMask(const GraphicsPipelineDesc& GraphicsPipeline) noexcept;
364+
363365
} // namespace PipelineStateUtils
364366

365367
/// Template class implementing base functionality of the pipeline state object.
@@ -779,6 +781,11 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
779781
}
780782
#endif
781783

784+
Uint32 GetRenderTargetMask() const
785+
{
786+
return m_pGraphicsPipelineData ? GetRenderTargetMask(m_pGraphicsPipelineData->Desc) : 0;
787+
}
788+
782789
protected:
783790
using TNameToGroupIndexMap = std::unordered_map<HashMapStringKey, Uint32>;
784791

0 commit comments

Comments
 (0)