Class GPUTasksManager
Graphics Device work manager.
Inheritance
GPUTasksManager
Assembly: FlaxEngine.dll
File: Engine/Graphics/Async/GPUTasksManager.h
Syntax
public class GPUTasksManager : public Object, public NonCopyable
Constructors
GPUTasksManager()
Declaration
public GPUTasksManager()
Methods
Dispose()
Clears asynchronous resources loading queue and cancels all tasks.
Declaration
public void Dispose()
FrameBegin()
On begin rendering frame.
Declaration
public void FrameBegin()
FrameEnd()
On end rendering frame.
Declaration
public void FrameEnd()
GetExecutor()
Gets the GPU tasks executor.
Declaration
public GPUTasksExecutor* GetExecutor() const
Returns
|
GPUTasksExecutor
|
GetTaskCount()
Gets the amount of enqueued tasks to perform.
Declaration
public int32 GetTaskCount() const
Returns
|
int32
|
RequestWork(GPUTask* *buffer, int32 maxCount)
Requests work to do. Should be used only by GPUTasksExecutor.
Declaration
public int32 RequestWork(GPUTask* *buffer, int32 maxCount)
Parameters
|
GPUTask
buffer
The output buffer. |
|
int32
maxCount
The maximum allowed amount of tasks to get. |
Returns
|
int32
The amount of tasks added to the buffer. |
SetExecutor(GPUTasksExecutor* value)
Sets the GPU tasks executor.
Declaration
public void SetExecutor(GPUTasksExecutor* value)
Parameters
|
GPUTasksExecutor
value
The tasks executor. |
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const override
Returns
|
String
|