MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / GetPsoCacheAccessor

Method GetPsoCacheAccessor

PBR/src/PBR_Renderer.cpp:1774–1782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1772}
1773
1774PBR_Renderer::PsoCacheAccessor PBR_Renderer::GetPsoCacheAccessor(const GraphicsPipelineDesc& GraphicsDesc)
1775{
1776 VERIFY(GraphicsDesc.InputLayout == InputLayoutDesc{}, "Input layout is ignored. It is defined in create info");
1777
1778 auto it = m_PSOs.find(GraphicsDesc);
1779 if (it == m_PSOs.end())
1780 it = m_PSOs.emplace(GraphicsDesc, PsoHashMapType{}).first;
1781 return {*this, it->second, it->first};
1782}
1783
1784IPipelineState* PBR_Renderer::GetPSO(PsoHashMapType& PsoHashMap,
1785 const GraphicsPipelineDesc& GraphicsDesc,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected