RavEngine
Loading...
Searching...
No Matches
PhysicsTaskDispatcher.hpp
1#pragma once
2#include "PhysXDefines.h"
3#include <task/PxCpuDispatcher.h>
4
5namespace RavEngine{
7public:
8 // invoked by PhysX to enqueue a new task
9 void submitTask( physx::PxBaseTask& task ) final;
10 uint32_t getWorkerCount() const final;
11
12 virtual ~PhysicsTaskDispatcher(){}
13
14};
15}
Definition PhysicsTaskDispatcher.hpp:6
uint32_t getWorkerCount() const final
Returns the number of available worker threads for this dispatcher.
Definition PhysicsTaskDispatcher.cpp:24
void submitTask(physx::PxBaseTask &task) final
Called by the TaskManager when a task is to be queued for execution.
Definition PhysicsTaskDispatcher.cpp:8
Base class of all task types.
Definition PxTask.h:45
A CpuDispatcher is responsible for scheduling the execution of tasks passed to it by the SDK.
Definition PxCpuDispatcher.h:50
Definition Animation.hpp:6