| 129 | } |
| 130 | |
| 131 | VltGraphicsPipelineInstance* VltGraphicsPipeline::createInstance( |
| 132 | const VltGraphicsPipelineStateInfo& state) |
| 133 | { |
| 134 | // If the pipeline state vector is invalid, don't try |
| 135 | // to create a new pipeline, it won't work anyway. |
| 136 | if (!this->validatePipelineState(state)) |
| 137 | return nullptr; |
| 138 | |
| 139 | VkPipeline newPipelineHandle = this->createPipeline(state); |
| 140 | |
| 141 | m_pipeMgr->m_numGraphicsPipelines += 1; |
| 142 | return &m_pipelines.emplace_back( |
| 143 | state, |
| 144 | newPipelineHandle); |
| 145 | } |
| 146 | |
| 147 | VltGraphicsPipelineInstance* VltGraphicsPipeline::findInstance( |
| 148 | const VltGraphicsPipelineStateInfo& state) |
no test coverage detected