Write a CPlusPlus TOP
Make sure you've read through Write a CPlusPlus Plugin first for general information about writing a plugin for a CPlusPlus TOP.
The CPlusPlus TOP allows you to write C++ code to create a TOP that can output multiple textures. Currently you can create your output by filling a CPU memory buffer (
TOP_ExecuteMode::CPUMem) or by filling a
cudaArray buffer (
Most of the documentation is held in the header files for the C++ API. The samples also contain a lot of comments about the workflow.
The CPlusPlus TOP can be used with CUDA. See the CudaTOP example project included with the TouchDesigner installation for an example. Note that any CUDA operations that occur in your C++ code must occur on the main thread, between calls to
Write a CPlusPlus Plugin
Write a CPlusPlus CHOP