 files.RSFile = L"scene.vs.cso"; files.VSFile = L"scene.vs.cso"; files.PSFile = L"scene.ps.cso"; std::tie(mppRS, mppPSO) = pPipeSet->AddPipeline(desc, files); } void WriteCmds(ID0D00GraphicsCommandList* pCmdList) { if (!*mppRS || !*mppPSO) { // not compiled yet, or failed to compile return; } pCmdList->SetGraphicsRootSignature(*mppRS); pCmdList->SetPipelineState(*mppPSO); 