|
|
@@ -41,6 +41,17 @@ add_dispatch(int num_groups_x, int num_groups_y, int num_groups_z) {
|
|
|
add_dispatch(num_groups);
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: ComputeNode::clear_dispatches
|
|
|
+// Access: Published
|
|
|
+// Description: Removes all dispatch commands.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+INLINE void ComputeNode::
|
|
|
+clear_dispatches() {
|
|
|
+ Dispatcher::CDWriter cdata(_dispatcher->_cycler);
|
|
|
+ cdata->_dispatches.clear();
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: ComputeNode::get_num_dispatches
|
|
|
// Access: Published
|