MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / LoadSerialized

Method LoadSerialized

src/slg/renderstate.cpp:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44RenderState *RenderState::LoadSerialized(const std::string &fileName) {
45 SerializationInputFile sif(fileName);
46
47 RenderState *renderState;
48 sif.GetArchive() >> renderState;
49
50 if (!sif.IsGood())
51 throw runtime_error("Error while loading serialized render state: " + fileName);
52
53 return renderState;
54}
55
56void RenderState::SaveSerialized(const std::string &fileName) {
57 SLG_LOG("Saving render state: " << fileName);

Callers

nothing calls this directly

Calls 1

IsGoodMethod · 0.80

Tested by

no test coverage detected