MCPcopy Create free account
hub / github.com/begla/Intrinsic / shutdown

Method shutdown

IntrinsicCore/src/IntrinsicRendererRenderSystem.cpp:197–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195// <-
196
197void RenderSystem::shutdown()
198{
199 _INTR_ARRAY(uint8_t) pipelineData;
200
201 size_t pipelineDataSize;
202 vkGetPipelineCacheData(_vkDevice, _vkPipelineCache, &pipelineDataSize,
203 nullptr);
204
205 pipelineData.resize(pipelineDataSize);
206 vkGetPipelineCacheData(_vkDevice, _vkPipelineCache, &pipelineDataSize,
207 pipelineData.data());
208
209 _INTR_STRING pipelineCachePath = getPipelineCacheFilePath();
210 _INTR_OFSTREAM of(pipelineCachePath.c_str(), std::ofstream::binary);
211 of.write((const char*)pipelineData.data(), pipelineData.size());
212 of.close();
213}
214
215// <-
216

Callers

nothing calls this directly

Calls 4

getPipelineCacheFilePathFunction · 0.85
resizeMethod · 0.80
dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected