ComputeNode

from panda3d.core import ComputeNode
class ComputeNode

Bases: PandaNode

A special node, the sole purpose of which is to invoke a dispatch operation on the assigned compute shader.

Inheritance diagram

Inheritance diagram of ComputeNode

__init__(*args, **kwargs)
addDispatch()

C++ Interface: add_dispatch(const ComputeNode self, const LVecBase3i num_groups) add_dispatch(const ComputeNode self, int num_groups_x, int num_groups_y, int num_groups_z)

/**
  • Adds a dispatch command with the given number of work groups in the X, Y,

  • and Z dimensions. Any of these values may be set to 1 if the respective

  • dimension should not be used.

*/

/**
  • Adds a dispatch command with the given number of work groups in the X, Y,

  • and Z dimensions. Any of these values may be set to 1 if the respective

  • dimension should not be used.

*/

add_dispatch()

C++ Interface: add_dispatch(const ComputeNode self, const LVecBase3i num_groups) add_dispatch(const ComputeNode self, int num_groups_x, int num_groups_y, int num_groups_z)

/**
  • Adds a dispatch command with the given number of work groups in the X, Y,

  • and Z dimensions. Any of these values may be set to 1 if the respective

  • dimension should not be used.

*/

/**
  • Adds a dispatch command with the given number of work groups in the X, Y,

  • and Z dimensions. Any of these values may be set to 1 if the respective

  • dimension should not be used.

*/

clearDispatches()

C++ Interface: clear_dispatches(const ComputeNode self)

/**
  • Removes all dispatch commands.

*/

clear_dispatches()

C++ Interface: clear_dispatches(const ComputeNode self)

/**
  • Removes all dispatch commands.

*/

dispatches
getClassType()

C++ Interface: get_class_type()

getDispatch()

C++ Interface: get_dispatch(ComputeNode self, int i)

/**
  • Returns the group counts of the nth dispatch associated with this object.

*/

getDispatches()
getNumDispatches()

C++ Interface: get_num_dispatches(ComputeNode self)

/**
  • Returns the number of times add_dispatch has been called on this object.

*/

get_class_type()

C++ Interface: get_class_type()

get_dispatch()

C++ Interface: get_dispatch(ComputeNode self, int i)

/**
  • Returns the group counts of the nth dispatch associated with this object.

*/

get_dispatches()
get_num_dispatches()

C++ Interface: get_num_dispatches(ComputeNode self)

/**
  • Returns the number of times add_dispatch has been called on this object.

*/

insertDispatch()

C++ Interface: insert_dispatch(const ComputeNode self, int i, const LVecBase3i num_groups)

/**
  • Inserts a dispatch command with the given number of work groups in the X,

  • Y, and Z dimensions at the given position in the list of dispatch commands.

  • Any of these values may be set to 1 if the respective dimension should not

  • be used.

*/

insert_dispatch()

C++ Interface: insert_dispatch(const ComputeNode self, int i, const LVecBase3i num_groups)

/**
  • Inserts a dispatch command with the given number of work groups in the X,

  • Y, and Z dimensions at the given position in the list of dispatch commands.

  • Any of these values may be set to 1 if the respective dimension should not

  • be used.

*/

removeDispatch()

C++ Interface: remove_dispatch(const ComputeNode self, int i)

/**
  • Erases the given dispatch index from the list.

*/

remove_dispatch()

C++ Interface: remove_dispatch(const ComputeNode self, int i)

/**
  • Erases the given dispatch index from the list.

*/

setDispatch()

C++ Interface: set_dispatch(const ComputeNode self, int i, const LVecBase3i num_groups)

/**
  • Sets the group counts of the nth dispatch associated with this object.

*/

set_dispatch()

C++ Interface: set_dispatch(const ComputeNode self, int i, const LVecBase3i num_groups)

/**
  • Sets the group counts of the nth dispatch associated with this object.

*/