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

A manager that distributes work. More...

#include <IWorkDispatcher.h>

Inheritance diagram for ph::IWorkDispatcher:
ph::DammertzDispatcher ph::WorkScheduler ph::GridScheduler ph::PlateScheduler ph::SpiralGridScheduler ph::SpiralScheduler ph::StripeScheduler ph::TileScheduler

Public Member Functions

virtual ~IWorkDispatcher ()=default
 
virtual bool dispatch (WorkUnit *out_workUnit)=0
 Get some amount of work.
 

Detailed Description

A manager that distributes work.

The dispatcher will deliver some amount of work on demand. The sizes of each delivered work and the total amount of work is implementation defined.

Constructor & Destructor Documentation

◆ ~IWorkDispatcher()

virtual ph::IWorkDispatcher::~IWorkDispatcher ( )
virtualdefault

Member Function Documentation

◆ dispatch()

virtual bool ph::IWorkDispatcher::dispatch ( WorkUnit * out_workUnit)
pure virtual

Get some amount of work.

The meaning of the work dimensions is depending on the use case.

Returns
True if work has been dispatched.

Implemented in ph::DammertzDispatcher, and ph::WorkScheduler.


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