MCPcopy Create free account
hub / github.com/Inori/GPCS4 / createInstance

Method createInstance

GPCS4/Graphics/Violet/VltGraphics.cpp:131–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 2

getPipelineHandleMethod · 0.95
compilePipelineMethod · 0.95

Calls 3

validatePipelineStateMethod · 0.95
createPipelineMethod · 0.95
emplace_backMethod · 0.80

Tested by

no test coverage detected