Hook up thread slices and eliminate some statics hiding in misc functions
This commit is contained in:
parent
f50532af8a
commit
d9e545a519
12 changed files with 150 additions and 72 deletions
|
|
@ -56,9 +56,10 @@
|
|||
|
||||
namespace swrenderer
|
||||
{
|
||||
RenderThread::RenderThread(RenderScene *scene)
|
||||
RenderThread::RenderThread(RenderScene *scene, bool mainThread)
|
||||
{
|
||||
Scene = scene;
|
||||
MainThread = mainThread;
|
||||
FrameMemory = std::make_unique<RenderMemory>();
|
||||
DrawQueue = std::make_shared<DrawerCommandQueue>(this);
|
||||
OpaquePass = std::make_unique<RenderOpaquePass>(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue