File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Graphics/GraphicsTools/src Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1226,10 +1226,19 @@ template <>
12261226struct ReloadablePipelineState ::CreateInfoWrapper<GraphicsPipelineStateCreateInfo> : CreateInfoWrapperBase<GraphicsPipelineStateCreateInfo>
12271227{
12281228 CreateInfoWrapper (const GraphicsPipelineStateCreateInfo& CI) :
1229- CreateInfoWrapperBase<GraphicsPipelineStateCreateInfo>{CI}
1229+ CreateInfoWrapperBase<GraphicsPipelineStateCreateInfo>{CI},
1230+ m_LayoutElements{CI.GraphicsPipeline .InputLayout .LayoutElements , CI.GraphicsPipeline .InputLayout .LayoutElements + CI.GraphicsPipeline .InputLayout .NumElements }
12301231 {
12311232 m_Objects.emplace_back (CI.GraphicsPipeline .pRenderPass );
1233+
1234+ for (auto & Elem : m_LayoutElements)
1235+ Elem.HLSLSemantic = m_Strings.emplace (Elem.HLSLSemantic != nullptr ? Elem.HLSLSemantic : LayoutElement{}.HLSLSemantic ).first ->c_str ();
1236+
1237+ m_CI.GraphicsPipeline .InputLayout .LayoutElements = m_LayoutElements.data ();
12321238 }
1239+
1240+ private:
1241+ std::vector<LayoutElement> m_LayoutElements;
12331242};
12341243
12351244template <>
You can’t perform that action at this time.
0 commit comments