23 _cull_name(copy._cull_name),
24 _cull_stage(copy._cull_stage),
25 _draw_name(copy._draw_name),
26 _draw_stage(copy._draw_stage),
27 _cull_sorting(copy._cull_sorting)
36 INLINE
void GraphicsThreadingModel::
38 _cull_name = copy._cull_name;
39 _cull_stage = copy._cull_stage;
40 _draw_name = copy._draw_name;
41 _draw_stage = copy._draw_stage;
42 _cull_sorting = copy._cull_sorting;
66 _cull_name = cull_name;
105 _draw_name = draw_name;
132 return _cull_sorting;
147 _cull_sorting = cull_sorting;
160 return _cull_name.empty() && _draw_name.empty();
181 INLINE
void GraphicsThreadingModel::
182 output(ostream &out)
const {
188 threading_model.output(out);
string get_model() const
Returns the string that describes the threading model.
void set_cull_name(const string &cull_name)
Changes the name of the thread that will handle culling in this model.
void set_draw_name(const string &cull_name)
Changes the name of the thread that will handle drawing in this model.
GraphicsThreadingModel(const string &model=string())
The threading model accepts a string representing the names of the two threads that will process cull...
int get_cull_stage() const
Returns the pipeline stage from which the cull thread should access data.
bool get_cull_sorting() const
Returns true if the model involves a separate cull pass, or false if culling happens implicitly...
int get_draw_stage() const
Returns the pipeline stage from which the draw thread should access data.
const string & get_cull_name() const
Returns the name of the thread that will handle culling in this model.
const string & get_draw_name() const
Returns the name of the thread that will handle sending the actual graphics primitives to the graphic...
This represents the user's specification of how a particular frame is handled by the various threads...
void set_cull_sorting(bool cull_sorting)
Changes the flag that indicates whether the threading model involves a separate cull pass...
bool is_single_threaded() const
Returns true if the threading model is a single-threaded model, or false if it involves threads...
bool is_default() const
Returns true if the threading model is the default, cull-then-draw single-threaded model...