ComputeNode
from panda3d.core import ComputeNode
- class ComputeNode
Bases:
Bases:
PandaNode
A special node, the sole purpose of which is to invoke a dispatch operation on the assigned compute shader.
Inheritance diagram
- __init__(name: str)
Creates a
ComputeNode
with the given name. UseaddDispatch()
and also assign a shader using aShaderAttrib
.
- addDispatch(num_groups: LVecBase3i)
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.
- addDispatch(num_groups_x: int, num_groups_y: int, num_groups_z: int)
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()
Removes all dispatch commands.
- property dispatches Sequence[LVecBase3i]
Returns/Sets the group counts of the nth dispatch associated with this object.
- static getClassType() TypeHandle
- getDispatch(i: int) LVecBase3i
Returns the group counts of the nth dispatch associated with this object.
- getNumDispatches() int
Returns the number of times
addDispatch()
has been called on this object.
- insertDispatch(i: int, num_groups: LVecBase3i)
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.
- setDispatch(i: int, num_groups: LVecBase3i)
Sets the group counts of the nth dispatch associated with this object.