| 320 | } |
| 321 | |
| 322 | AsyncEvent DeviceImpl::launchRendererKernel(const vec3ui &itemDims, |
| 323 | RendererKernel kernel, |
| 324 | ispc::Renderer *renderer, |
| 325 | ispc::FrameBuffer *fb, |
| 326 | ispc::Camera *camera, |
| 327 | ispc::World *world, |
| 328 | const uint32_t *taskIDs, |
| 329 | const FeatureFlags &ff) |
| 330 | { |
| 331 | // Create a command with event |
| 332 | auto eventImpl = std::make_shared<AsyncEventImpl>(); |
| 333 | CommandPtr cmd = std::unique_ptr<Command>(new CommandLaunchRenderKernel( |
| 334 | itemDims, kernel, renderer, fb, camera, world, taskIDs, ff, eventImpl)); |
| 335 | |
| 336 | // Put the command into the queue and signal the worker thread |
| 337 | scheduleCommand(std::move(cmd)); |
| 338 | return AsyncEvent(eventImpl); |
| 339 | } |
| 340 | |
| 341 | AsyncEvent DeviceImpl::launchFrameOpKernel(const vec2ui &itemDims, |
| 342 | FrameOpKernel kernel, |
no test coverage detected