Search Results for

    Show / Hide Table of Contents

    Class GPUTasksContext

    GPU tasks context

    Inheritance
    GPUTasksContext
    Assembly: FlaxEngine.dll
    File: Engine/Graphics/Async/GPUTasksContext.h
    Syntax
    public class GPUTasksContext

    Constructors

    ~GPUTasksContext()

    Finalizes an instance of the GPUTasksContext class.

    Declaration
    public ~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()

    Gets graphics device handle

    Declaration
    public GPUDevice* GetDevice() const
    Returns
    GPUDevice

    GetTotalTasksDoneCount()

    Gets total amount of tasks done by this context

    Declaration
    public int32 GetTotalTasksDoneCount() const
    Returns
    int32

    OnCancelSync(GPUTask* task)

    Declaration
    public void OnCancelSync(GPUTask* task)
    Parameters
    GPUTask task

    OnFrameBegin()

    Declaration
    public void OnFrameBegin()

    OnFrameEnd()

    Declaration
    public void OnFrameEnd()

    Run(GPUTask* task)

    Perform given task

    Declaration
    public void Run(GPUTask* task)
    Parameters
    GPUTask task

    Task to do

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ~GPUTasksContext()
      • GPUTasksContext(GPUDevice* device)
    • Fields
      • _currentSyncPoint
      • _locker
      • _tasksSyncing
      • _totalTasksDoneCount
      • GPU
    • Methods
      • GetCurrentSyncPoint()
      • GetDevice()
      • GetTotalTasksDoneCount()
      • OnCancelSync(GPUTask* task)
      • OnFrameBegin()
      • OnFrameEnd()
      • Run(GPUTask* task)
    Back to top Copyright © 2012-2024 Wojciech Figat