18 #include "pandabase.h"
19 #include "pandaNode.h"
20 #include "callbackObject.h"
21 #include "callbackNode.h"
22 #include "pointerTo.h"
34 INLINE
void add_dispatch(
const LVecBase3i &num_groups);
35 INLINE
void add_dispatch(
int num_groups_x,
int num_groups_y,
int num_groups_z);
37 INLINE
int get_num_dispatches()
const;
38 INLINE
const LVecBase3i &get_dispatch(
int i)
const;
39 INLINE
void clear_dispatches();
41 MAKE_SEQ(get_dispatches, get_num_dispatches, get_dispatch);
52 virtual void output(ostream &out)
const;
69 INLINE CData(
const CData ©);
74 return CallbackNode::get_class_type();
88 PT(Dispatcher) _dispatcher;
91 static
void register_with_read_factory();
102 static void init_type() {
103 PandaNode::init_type();
104 register_type(_type_handle,
"ComputeNode",
105 PandaNode::get_class_type());
108 return get_class_type();
110 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
116 #include "computeNode.I"
A basic node of the scene graph or data graph.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
A single page of data maintained by a PipelineCycler.
Base class for objects that can be written to and read from Bam files.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is a generic data block that is passed along to a CallbackObject when a callback is made...
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
virtual bool safe_to_combine() const
Returns true if it is generally safe to combine this particular kind of PandaNode with other kinds of...
virtual TypeHandle get_parent_type() const
Returns the type of the container that owns the CycleData.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual void add_for_draw(CullTraverser *trav, CullTraverserData &data)
Adds the node's contents to the CullResult we are building up during the cull traversal, so that it will be drawn at render time.
virtual bool is_renderable() const
Returns true if there is some value to visiting this particular node during the cull traversal for an...
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
A special node, the sole purpose of which is to invoke a dispatch operation on the assigned compute s...
This is a generic object that can be assigned to a callback at various points in the rendering proces...
This is the base class for all three-component vectors and points.
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling...