19 _cull_name(copy._cull_name),
20 _cull_stage(copy._cull_stage),
21 _draw_name(copy._draw_name),
22 _draw_stage(copy._draw_stage),
23 _cull_sorting(copy._cull_sorting)
30 INLINE
void GraphicsThreadingModel::
32 _cull_name = copy._cull_name;
33 _cull_stage = copy._cull_stage;
34 _draw_name = copy._draw_name;
35 _draw_stage = copy._draw_stage;
36 _cull_sorting = copy._cull_sorting;
54 _cull_name = cull_name;
84 _draw_name = draw_name;
105 return _cull_sorting;
116 _cull_sorting = cull_sorting;
126 return _cull_name.empty() && _draw_name.empty();
142 INLINE
void GraphicsThreadingModel::
143 output(std::ostream &out)
const {
147 INLINE std::ostream &
149 threading_model.output(out);
bool is_default() const
Returns true if the threading model is the default, cull-then-draw single- threaded model,...
bool get_cull_sorting() const
Returns true if the model involves a separate cull pass, or false if culling happens implicitly,...
std::string get_model() const
Returns the string that describes the threading model.
int get_cull_stage() const
Returns the pipeline stage from which the cull thread should access data.
const std::string & get_cull_name() const
Returns the name of the thread that will handle culling in this model.
void set_cull_name(const std::string &cull_name)
Changes the name of the thread that will handle culling in this model.
bool is_single_threaded() const
Returns true if the threading model is a single-threaded model, or false if it involves threads.
int get_draw_stage() const
Returns the pipeline stage from which the draw thread should access data.
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.
const std::string & get_draw_name() const
Returns the name of the thread that will handle sending the actual graphics primitives to the graphic...
void set_draw_name(const std::string &cull_name)
Changes the name of the thread that will handle drawing in this model.
GraphicsThreadingModel(const std::string &model=std::string())
The threading model accepts a string representing the names of the two threads that will process cull...