1/*
2 * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3 *
4 * NVIDIA CORPORATION and its licensors retain all intellectual property
5 * and proprietary rights in and to this software, related documentation
6 * and any modifications thereto. Any use, reproduction, disclosure or
7 * distribution of this software and related documentation without an express
8 * license agreement from NVIDIA CORPORATION is strictly prohibited.
9 */
10
11#ifndef PX_SPU_DISPATCHER_H
12#define PX_SPU_DISPATCHER_H
13
14#include "foundation/Px.h"
15
16#ifndef PX_DOXYGEN
17namespace physx
18{
19#endif
20
21class PxSpuTask;
22
23/**
24 \brief A PxSpuDispatcher
25
26 A PxSpuDispatcher is responsible for scheduling the execution of SPU tasks passed to it by the SDK.
27
28 @see PxSpuTask
29 @see PxTaskManager
30*/
31class PxSpuDispatcher
32{
33public:
34 /**
35 \brief Called by the TaskManager when an SPU task is to be queued for execution.
36
37 Upon receiving a task, the dispatcher should schedule the task
38 to run on any available SPUs. After the task has been run,
39 it should call the release() method and discard it's pointer.
40
41 \param[in] task The task to be run.
42
43 @see PxSpuTask
44 */
45 virtual void submitTask( PxSpuTask& task ) = 0;
46
47 virtual ~PxSpuDispatcher() {}
48};
49
50#ifndef PX_DOXYGEN
51} // end physx namespace
52#endif
53
54#endif
55