| 2286 | return blockFunction((cast<argType>::to(args[I]))...); |
| 2287 | } |
| 2288 | DAS_EVAL_ABI virtual vec4f eval ( Context & context ) override { |
| 2289 | DAS_PROFILE_NODE |
| 2290 | auto ba = (BlockArguments *) ( context.stack.bottom() + argumentsOffset ); |
| 2291 | using ResultType = typename remove_const<resType>::type; |
| 2292 | ResultType * result = (ResultType *) ba->copyOrMoveResult; |
| 2293 | using Indices = make_index_sequence<sizeof...(argType)>; |
| 2294 | *result = callBlockFunction(ba->arguments, Indices()); |
| 2295 | return cast<void *>::from(result); |
| 2296 | } |
| 2297 | BlockFn blockFunction; |
| 2298 | }; |
| 2299 | |