Subdivision refinement encapsulation layer. More...
#include <kernelBatchDispatcher.h>
Static Public Member Functions | |
template<class CONTROLLER , class CONTEXT > | |
static void | Apply (CONTROLLER *controller, CONTEXT *context, KernelBatchVector const &batches, int maxlevel) |
Launches the processing of a vector of kernel batches this is a convenient API for controllers which don't have any user defined kernels. More... | |
Static Protected Member Functions | |
template<class CONTROLLER , class CONTEXT > | |
static bool | ApplyKernel (CONTROLLER *controller, CONTEXT *context, KernelBatch const &batch) |
Launches the processing of a kernel batch returns true if the batch is handled, otherwise returns false (i.e. user defined kernel) More... | |
Subdivision refinement encapsulation layer.
The kernel dispatcher allows client code to customize parts or the entire computation process. This pattern aims at hiding the logic specific to the subdivision algorithms and expose a simplified access to minimalistic compute kernels. By default, meshes revert to a default dispatcher that implements single-threaded CPU kernels.
Note : the caller is responsible for deleting a custom dispatcher
Definition at line 54 of file kernelBatchDispatcher.h.
|
static |
Launches the processing of a vector of kernel batches this is a convenient API for controllers which don't have any user defined kernels.
controller | refinement controller implementation (vertex array) |
context | refinement context implementation (subdivision tables) passed to the controller. |
batches | batches of kernels that need to be processed |
maxlevel | process vertex batches up to this level |
Definition at line 129 of file kernelBatchDispatcher.h.
|
staticprotected |
Launches the processing of a kernel batch returns true if the batch is handled, otherwise returns false (i.e. user defined kernel)
controller | refinement controller implementation |
context | refinement context implementation |
batch | a batch of kernel that need to be processed |
Definition at line 104 of file kernelBatchDispatcher.h.