MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / LoadSurface

Method LoadSurface

Source/Engine/Content/Assets/MaterialFunction.cpp:76–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74#if COMPILE_WITH_MATERIAL_GRAPH
75
76BytesContainer MaterialFunction::LoadSurface()
77{
78 BytesContainer result;
79 if (WaitForLoaded())
80 return result;
81 ScopeLock lock(Locker);
82 if (HasChunk(0))
83 {
84 if (!LoadChunks(GET_CHUNK_FLAG(0)))
85 {
86 const auto surfaceChunk = GetChunk(0);
87 result.Copy(surfaceChunk->Data);
88 }
89 }
90 return result;
91}
92
93bool MaterialFunction::LoadSurface(MaterialGraph& graph, bool loadMeta)
94{

Callers

nothing calls this directly

Calls 6

HasChunkFunction · 0.85
GetChunkFunction · 0.85
CopyMethod · 0.45
GetMethod · 0.45
SizeMethod · 0.45
LoadMethod · 0.45

Tested by

no test coverage detected