Search Results for

    Show / Hide Table of Contents

    Class GPUUploadTextureMipTask

    GPU texture mip upload task.

    Inheritance
    Object
    Task
    GPUTask
    GPUUploadTextureMipTask
    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()
    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/GPUUploadTextureMipTask.h
    Syntax
    public class GPUUploadTextureMipTask : public GPUTask

    Constructors

    GPUUploadTextureMipTask(GPUTexture* texture, int32 mipIndex, Span<byte> data, int32 rowPitch, int32 slicePitch, bool copyData)

    Initializes a new instance of the GPUUploadTextureMipTask class.

    Declaration
    public GPUUploadTextureMipTask(GPUTexture* texture, int32 mipIndex, Span<byte> data, int32 rowPitch, int32 slicePitch, bool copyData)
    Parameters
    GPUTexture texture

    The target texture.

    int32 mipIndex

    The target texture mip data.

    Span<byte> data

    The data to upload.

    int32 rowPitch

    The data row pitch.

    int32 slicePitch

    The data slice pitch.

    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

    _data

    Declaration
    protected BytesContainer _data
    Field Value
    BytesContainer

    _mipIndex

    Declaration
    protected int32 _mipIndex
    Field Value
    int32

    _rowPitch

    Declaration
    protected int32 _rowPitch
    Field Value
    int32

    _slicePitch

    Declaration
    protected int32 _slicePitch
    Field Value
    int32

    _texture

    Declaration
    protected GPUTextureReference _texture
    Field Value
    GPUTextureReference

    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()

    OnSync()

    Declaration
    protected virtual void OnSync() override
    Overrides
    GPUTask::OnSync()

    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