32 INLINE
void add_dispatch(
int num_groups_x,
int num_groups_y,
int num_groups_z);
36 INLINE
void set_dispatch(
size_t i,
const LVecBase3i &num_groups);
53 virtual void output(std::ostream &out)
const;
56 class EXPCL_PANDA_PGRAPHNODES Dispatcher :
public CallbackObject {
57 friend class ComputeNode;
59 ALLOC_DELETED_CHAIN(Dispatcher);
61 Dispatcher(
const Dispatcher ©);
65 typedef pvector<LVecBase3i> Dispatches;
67 class EXPCL_PANDA_PGRAPHNODES CData :
public CycleData {
70 INLINE CData(
const CData ©);
75 return CallbackNode::get_class_type();
78 Dispatches _dispatches;
89 PT(Dispatcher) _dispatcher;
103 static void init_type() {
104 PandaNode::init_type();
106 PandaNode::get_class_type());
108 virtual TypeHandle get_type()
const {
109 return get_class_type();
111 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
114 static TypeHandle _type_handle;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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.
virtual TypeHandle get_parent_type() const
Returns the type of the container that owns the CycleData.
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is called by make_from_bam to read in all of the relevant data from the BamFil...
virtual void do_callback(CallbackData *cbdata)
Asks the GSG to dispatch the compute shader.
get_dispatch
Returns the group counts of the nth dispatch associated with this object.
void add_dispatch(const LVecBase3i &num_groups)
Adds a dispatch command with the given number of work groups in the X, Y, and Z dimensions.
get_num_dispatches
Returns the number of times add_dispatch has been called on this object.
void clear_dispatches()
Removes all dispatch commands.
ComputeNode(const std::string &name)
Creates a ComputeNode with the given name.
insert_dispatch
Inserts a dispatch command with the given number of work groups in the X, Y, and Z dimensions at the ...
virtual void output(std::ostream &out) const
Writes a brief description of the node to the indicated output stream.
remove_dispatch
Erases the given dispatch index from the list.
set_dispatch
Sets the group counts of the nth dispatch associated with this object.
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
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 bool is_renderable() const
Returns true if there is some value to visiting this particular node during the cull traversal for an...
static void register_with_read_factory()
Tells the BamReader how to create objects of type PandaNode.
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
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,...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
This class maintains different copies of a page of data between stages of the graphics pipeline (or a...