Class GPUTasksContext
GPU tasks context
Inheritance
GPUTasksContext
Assembly: FlaxEngine.dll
File: Engine/Graphics/Async/GPUTasksContext.h
Syntax
public class GPUTasksContext
Constructors
~GPUTasksContext()
GPUTasksContext(GPUDevice* device)
Initializes a new instance of the GPUTasksContext class.
Declaration
public GPUTasksContext(GPUDevice* device)
Parameters
GPUDevice
device
The graphics device. |
Fields
_currentSyncPoint
Declaration
protected GPUSyncPoint _currentSyncPoint
Field Value
GPUSyncPoint
|
_locker
Declaration
protected CriticalSection _locker
Field Value
CriticalSection
|
_tasksSyncing
Declaration
protected Array<GPUTask* , InlinedAllocation<64>> _tasksSyncing
Field Value
Array<GPUTask , InlinedAllocation<64>>
|
_totalTasksDoneCount
Declaration
protected int32 _totalTasksDoneCount = 0
Field Value
int32
|
GPU
The GPU commands context used for tasks execution (can be only copy/upload without graphics capabilities on some platforms).
Declaration
public GPUContext* GPU
Field Value
GPUContext
|
Methods
GetCurrentSyncPoint()
Gets current synchronization point of that context (CPU position, GPU has some latency)
Declaration
public GPUSyncPoint GetCurrentSyncPoint() const
Returns
GPUSyncPoint
|
GetDevice()
GetTotalTasksDoneCount()
Gets total amount of tasks done by this context
Declaration
public int32 GetTotalTasksDoneCount() const
Returns
int32
|
OnCancelSync(GPUTask* task)
OnFrameBegin()
Declaration
public void OnFrameBegin()
OnFrameEnd()
Declaration
public void OnFrameEnd()