MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / RenderThread

Function RenderThread

BakingLab/MeshBaker.cpp:1234–1253  ·  view source on GitHub ↗

Entry point for the ground truth render thread

Source from the content-addressed store, hash-verified

1232
1233// Entry point for the ground truth render thread
1234static uint32 __stdcall RenderThread(void* data)
1235{
1236 RenderThreadData* threadData = reinterpret_cast<RenderThreadData*>(data);
1237 const MeshBaker* meshBaker = threadData->Baker;
1238
1239 RenderThreadContext context;
1240
1241 while(meshBaker->killRenderThreads == false)
1242 {
1243 const uint64 currTag = meshBaker->renderTag;
1244 if(context.RenderTag != currTag)
1245 context.Init(threadData->RenderBuffer, threadData->RenderWeightBuffer, threadData->Samples,
1246 threadData->CurrTile, threadData->Baker, currTag);
1247
1248 if(RenderDriver(context) == false)
1249 Sleep(5);
1250 }
1251
1252 return 0;
1253}
1254
1255// == MeshBaker ===================================================================================
1256

Callers

nothing calls this directly

Calls 2

RenderDriverFunction · 0.85
InitMethod · 0.45

Tested by

no test coverage detected