Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::PlateScheduler Class Reference

#include <PlateScheduler.h>

Inheritance diagram for ph::PlateScheduler:
ph::WorkScheduler ph::IWorkDispatcher

Public Member Functions

 PlateScheduler ()
 
 PlateScheduler (std::size_t numWorkers, const WorkUnit &totalWorkUnit)
 
- Public Member Functions inherited from ph::WorkScheduler
 WorkScheduler ()
 A scheduler with no work load.
 
 WorkScheduler (std::size_t numWorkers, const WorkUnit &totalWorkUnit)
 A scheduler with specific number of workers and work load.
 
bool dispatch (WorkUnit *out_workUnit) override
 Get some amount of work.
 
bool schedule (WorkUnit *out_workUnit)
 Get some amount of work.
 
void scheduleAll (std::vector< WorkUnit > &out_workUnits)
 
void submit (const WorkUnit &workUnit)
 
float getScheduledFraction () const
 
float getSubmittedFraction () const
 
bool isExhausted () const
 Checks if all works had been scheduled.
 
- Public Member Functions inherited from ph::IWorkDispatcher
virtual ~IWorkDispatcher ()=default
 

Additional Inherited Members

- Protected Attributes inherited from ph::WorkScheduler
std::size_t m_numWorkers
 
WorkUnit m_totalWorkUnit
 
std::size_t m_totalVolume
 
std::size_t m_scheduledVolume
 
std::size_t m_submittedVolume
 

Detailed Description

Schedules a complete region, without any planar division, to each worker. Only work depth is distributed among workers.

Constructor & Destructor Documentation

◆ PlateScheduler() [1/2]

ph::PlateScheduler::PlateScheduler ( )
inline

◆ PlateScheduler() [2/2]

ph::PlateScheduler::PlateScheduler ( std::size_t numWorkers,
const WorkUnit & totalWorkUnit )
inline

The documentation for this class was generated from the following file: