Search Results for

    Show / Hide Table of Contents

    Class GPUUploadBufferTask

    GPU buffer upload task.

    Inheritance
    Object
    Task
    GPUTask
    GPUUploadBufferTask
    Inherited Members
    Task::_cancelFlag
    Task::_continueWith
    Task::_state
    Task::Cancel()
    Task::CancelAll(Array<T* , AllocationType>& tasks)
    GPUTask::CancelSync()
    Task::ContinueWith(Task* task)
    Task::ContinueWith(const Action& action, Object* target=nullptr)
    Task::ContinueWith(const Function<void()>& action, Object* target=nullptr)
    Task::ContinueWith(const Function<bool()>& action, Object* target=nullptr)
    GPUTask::DECLARE_ENUM_4(Result, Ok, Failed, MissingResources, MissingData)
    GPUTask::DECLARE_ENUM_EX_4(Type, byte, 0, Custom, CopyResource, UploadTexture, UploadBuffer)
    Object::DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
    Object::DeleteObjectNow()
    GPUTask::Enqueue()
    GPUTask::Execute(GPUTasksContext* context)
    Task::Execute()
    Object::Flags
    Task::GetContinueWithTask()
    Task::GetState()
    GPUTask::GetSyncPoint()
    GPUTask::GetType()
    GPUTask::GPUTask(const Type type, byte syncLatency=GPU_ASYNC_LATENCY)
    Task::IsCanceled()
    Task::IsCancelRequested()
    Task::IsEnded()
    Task::IsFailed()
    Task::IsFinished()
    Task::IsQueued()
    Task::IsRunning()
    GPUTask::IsSyncing()
    NonCopyable::NonCopyable()
    NonCopyable::NonCopyable(const NonCopyable& )
    GPUTask::OnCancel()
    Object::OnDeleteObject()
    Task::OnFail()
    Task::OnFinish()
    Task::OnStart()
    GPUTask::OnSync()
    NonCopyable::operator=(const NonCopyable& )
    GPUTask::Run()
    Task::SetState(TaskState state)
    Task::Start()
    Task::StartNew(Task* task)
    Task::StartNew(const Function<void()>& action, Object* target=nullptr)
    Task::StartNew(Function<void()>::Signature action, Object* target=nullptr)
    Task::StartNew(T* callee)
    Task::StartNew(const Function<bool()>& action, Object* target=nullptr)
    Task::StartNew(Function<bool()>::Signature& action, Object* target=nullptr)
    GPUTask::Sync()
    GPUTask::ToString()
    Task::Wait(const TimeSpan& timeout)
    Task::Wait(double timeoutMilliseconds=-1)
    Task::WaitAll(const Span<Task* >& tasks, double timeoutMilliseconds=-1)
    Task::WaitAll(const Array<T* , AllocationType>& tasks, double timeoutMilliseconds=-1)
    Object::~Object()
    Assembly: FlaxEngine.dll
    File: Engine/Graphics/Async/Tasks/GPUUploadBufferTask.h
    Syntax
    public class GPUUploadBufferTask : public GPUTask

    Constructors

    GPUUploadBufferTask(GPUBuffer* buffer, int32 offset, Span<byte> data, bool copyData)

    Initializes a new instance of the GPUUploadBufferTask class.

    Declaration
    public GPUUploadBufferTask(GPUBuffer* buffer, int32 offset, Span<byte> data, bool copyData)
    Parameters
    GPUBuffer buffer

    The target buffer.

    int32 offset

    The target buffer offset to copy data to. The default value is 0.

    Span<byte> data

    The data to upload.

    bool copyData

    True if copy data to the temporary buffer, otherwise the input data will be used directly. Then ensure it is valid during the copy operation period (for the next few frames).

    Fields

    _buffer

    Declaration
    protected BufferReference _buffer
    Field Value
    BufferReference

    _data

    Declaration
    protected BytesContainer _data
    Field Value
    BytesContainer

    _offset

    Declaration
    protected int32 _offset
    Field Value
    int32

    Methods

    HasReference(Object* resource)

    Determines whether the specified object has reference to the given object.

    Declaration
    public virtual bool HasReference(Object* resource) const override
    Parameters
    Object obj

    The object.

    Returns
    bool

    True if the specified object has reference to the given object, otherwise false.

    Overrides
    Task::HasReference(Object* obj)

    OnEnd()

    Declaration
    protected virtual void OnEnd() override
    Overrides
    Task::OnEnd()

    run(GPUTasksContext* context)

    Declaration
    protected virtual Result run(GPUTasksContext* context) override
    Parameters
    GPUTasksContext context

    Returns
    Result

    Overrides
    GPUTask::run(GPUTasksContext* context)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat