25 template<
class CycleDataType>
37 template<
class CycleDataType>
49 template<
class CycleDataType>
52 PipelineCyclerBase::operator = (copy);
60 template<
class CycleDataType>
71 template<
class CycleDataType>
82 template<
class CycleDataType>
93 template<
class CycleDataType>
104 template<
class CycleDataType>
115 template<
class CycleDataType>
127 template<
class CycleDataType>
138 template<
class CycleDataType>
149 template<
class CycleDataType>
161 template<
class CycleDataType>
164 bool force_to_0,
Thread *current_thread) {
173 template<
class CycleDataType>
184 template<
class CycleDataType>
201 template<
class CycleDataType>
207 #else // !DO_PIPELINING
217 template<
class CycleDataType>
229 template<
class CycleDataType>
233 _typed_data(copy._typed_data)
242 template<
class CycleDataType>
245 _typed_data = copy._typed_data;
253 template<
class CycleDataType>
264 template<
class CycleDataType>
275 template<
class CycleDataType>
286 template<
class CycleDataType>
297 template<
class CycleDataType>
308 template<
class CycleDataType>
319 template<
class CycleDataType>
330 template<
class CycleDataType>
341 template<
class CycleDataType>
352 template<
class CycleDataType>
363 template<
class CycleDataType>
374 template<
class CycleDataType>
390 template<
class CycleDataType>
393 return (CycleDataType *)&_typed_data;
397 #endif // DO_PIPELINING
CycleData * write_stage(int pipeline_stage, Thread *current_thread)
Returns a pointer suitable for writing to the nth stage of the pipeline.
CycleData * write_upstream(bool force_to_0, Thread *current_thread)
This special variant on write() will automatically propagate changes back to upstream pipeline stages...
This class maintains different copies of a page of data between stages of the graphics pipeline (or a...
CycleDataType * elevate_read(const CycleDataType *pointer, Thread *current_thread)
See PipelineCyclerBase::elevate_read().
This is the trivial, non-threaded implementation of PipelineCyclerBase.
CycleDataType * elevate_read_stage_upstream(int pipeline_stage, const CycleDataType *pointer, bool force_to_0, Thread *current_thread)
See PipelineCyclerBase::elevate_read_stage_upstream().
CycleDataType * elevate_read_stage(int pipeline_stage, const CycleDataType *pointer, Thread *current_thread)
See PipelineCyclerBase::elevate_read_stage().
CycleData * elevate_read_stage(int pipeline_stage, const CycleData *pointer, Thread *current_thread)
Elevates a currently-held read pointer into a write pointer.
const CycleData * read_stage(int pipeline_stage, Thread *current_thread) const
Returns a const CycleData pointer, filled with the data for the indicated pipeline stage...
CycleData * write(Thread *current_thread)
Returns a non-const CycleData pointer, filled with a unique copy of the data for the current stage of...
const CycleData * read(Thread *current_thread) const
Returns a const CycleData pointer, filled with the data for the current stage of the pipeline as seen...
const CycleData * read_stage_unlocked(int pipeline_stage) const
Returns a const CycleData pointer, filled with the data for the indicated stage of the pipeline...
CycleData * write_stage_upstream(int pipeline_stage, bool force_to_0, Thread *current_thread)
Returns a pointer suitable for writing to the nth stage of the pipeline.
CycleDataType * write_stage_upstream(int pipeline_stage, bool force_to_0, Thread *current_thread)
See PipelineCyclerBase::write_stage_upstream().
CycleDataType * cheat() const
Returns a pointer without counting it.
const CycleDataType * read(Thread *current_thread) const
See PipelineCyclerBase::read().
CycleData * elevate_read(const CycleData *pointer, Thread *current_thread)
Elevates a currently-held read pointer into a write pointer.
CycleDataType * write_stage(int pipeline_stage, Thread *current_thread)
See PipelineCyclerBase::write_stage().
This class manages a staged pipeline of data, for instance the render pipeline, so that each stage of...
CycleDataType * write(Thread *current_thread)
See PipelineCyclerBase::write().
CycleDataType * elevate_read_upstream(const CycleDataType *pointer, bool force_to_0, Thread *current_thread)
See PipelineCyclerBase::elevate_read_upstream().
CycleData * cheat() const
Returns a pointer without counting it.
A thread; that is, a lightweight process.
CycleDataType * write_upstream(bool force_to_0, Thread *current_thread)
See PipelineCyclerBase::write_upstream().
const CycleDataType * read_unlocked(Thread *current_thread) const
See PipelineCyclerBase::read_unlocked().
const CycleDataType * read_stage(int pipeline_stage, Thread *current_thread) const
See PipelineCyclerBase::read_stage().
CycleData * elevate_read_stage_upstream(int pipeline_stage, const CycleData *pointer, bool force_to_0, Thread *current_thread)
Elevates a currently-held read pointer into a write pointer.
CycleData * elevate_read_upstream(const CycleData *pointer, bool force_to_0, Thread *current_thread)
Elevates a currently-held read pointer into a write pointer, like elevate_read(), but also propagates...
const CycleDataType * read_stage_unlocked(int pipeline_stage) const
See PipelineCyclerBase::read_stage_unlocked().
const CycleData * read_unlocked(Thread *current_thread) const
Returns a const CycleData pointer, filled with the data for the current stage of the pipeline as seen...