Entry point for the ground truth render thread
| 1232 | |
| 1233 | // Entry point for the ground truth render thread |
| 1234 | static 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 |
nothing calls this directly
no test coverage detected