| 1772 | } |
| 1773 | |
| 1774 | PBR_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 | |
| 1784 | IPipelineState* PBR_Renderer::GetPSO(PsoHashMapType& PsoHashMap, |
| 1785 | const GraphicsPipelineDesc& GraphicsDesc, |
no outgoing calls
no test coverage detected