Skip to content
Snippets Groups Projects
Commit 8f037b74 authored by Mark Winter's avatar Mark Winter
Browse files

Documentation for script commands

parent 6b48b06d
No related branches found
No related tags found
No related merge requests found
// This file is used to register commands that are callable via script languages
SCR_BEGIN_COMMANDS
/////////////////
// SCRIPT_COMMAND_DEF:
// Add new wrapped commands here
/////////////////
// SCR_CMD(Name, Params, CudaFunc) -
// Autogenerates script command `Name` info based on parameters,
// automatically creates typed stub functions that call `CudaFunc`
// in CudaImageProcessing project.
// NOTE: the ScriptCommand_`Name` class must be created in a header with a help
// string definition. For examples see ScrCmd*.h files.
/////////////////
// SCR_CMD_NOPROC(Name, Params)
// Autogenerated script command `Name` info based on parameters,
// no automatic cuda calls are made.
// NOTE: the ScriptCommand_`Name` class must be created in a header with a help
// string definition as well as an execute or process<OutT,InT> function definition.
/////////////////
// These are default commands defined for all script wrappers.
SCR_CMD_NOPROC(Help, SCR_PARAMS(SCR_OPTIONAL(SCR_SCALAR(std::string), command, "")))
//SCR_CMD_NOPROC(Info, SCR_PARAMS(SCR_OUTPUT(SCR_STRUCT, cmdInfo)))
......@@ -7,7 +25,6 @@ SCR_BEGIN_COMMANDS
// SCR_OUTPUT(SCR_STRUCT, memStats)))
//SCR_CMD_NOPROC(DeviceStats, SCR_PARAMS(SCR_OUTPUT(SCR_STRUCT, deviceStatsArray)))
// Additional specific wrapped commands should be added here.
SCR_CMD(Closure, SCR_PARAMS
(
SCR_INPUT(SCR_IMAGE(SCR_DYNAMIC), imageIn),
......@@ -16,7 +33,9 @@ SCR_BEGIN_COMMANDS
SCR_OPTIONAL(SCR_SCALAR(int), numIterations, 1),
SCR_OPTIONAL(SCR_SCALAR(int), device, -1)
),
closure
cClosure
)
/////////////////
SCR_END_COMMANDS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment