mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Added clear_dispatches() to ComputeNode
Signed-off-by: rdb <git@rdb.name>
This commit is contained in:
parent
9567247c9a
commit
0358abfc0e
@ -41,6 +41,17 @@ add_dispatch(int num_groups_x, int num_groups_y, int num_groups_z) {
|
|||||||
add_dispatch(num_groups);
|
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
|
// Function: ComputeNode::get_num_dispatches
|
||||||
// Access: Published
|
// Access: Published
|
||||||
|
@ -36,6 +36,8 @@ PUBLISHED:
|
|||||||
|
|
||||||
INLINE int get_num_dispatches() const;
|
INLINE int get_num_dispatches() const;
|
||||||
INLINE const LVecBase3i &get_dispatch(int i) const;
|
INLINE const LVecBase3i &get_dispatch(int i) const;
|
||||||
|
INLINE void clear_dispatches();
|
||||||
|
|
||||||
MAKE_SEQ(get_dispatches, get_num_dispatches, get_dispatch);
|
MAKE_SEQ(get_dispatches, get_num_dispatches, get_dispatch);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user