14#ifndef GRAPHICSTHREADINGMODEL_H
15#define GRAPHICSTHREADINGMODEL_H
43 INLINE
void output(std::ostream &out)
const;
49 std::string _cull_name;
51 std::string _draw_name;
This represents the user's specification of how a particular frame is handled by the various threads.
void set_draw_name(const std::string &cull_name)
Changes the name of the thread that will handle drawing in this model.
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,...
GraphicsThreadingModel(const std::string &model=std::string())
The threading model accepts a string representing the names of the two threads that will process cull...
bool is_single_threaded() const
Returns true if the threading model is a single-threaded model, or false if it involves threads.
void set_cull_name(const std::string &cull_name)
Changes the name of the thread that will handle culling in this model.
std::string get_model() const
Returns the string that describes the threading model.
const std::string & get_cull_name() const
Returns the name of the thread that will handle culling in this model.
bool is_default() const
Returns true if the threading model is the default, cull-then-draw single- threaded model,...
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...
int get_draw_stage() const
Returns the pipeline stage from which the draw thread should access data.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.