Search Results for

    Show / Hide Table of Contents

    Class RenderTask

    Allows to perform custom rendering using graphics pipeline.

    Inheritance
    System.Object
    Object
    RenderTask
    SceneRenderTask
    Inherited Members
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public class RenderTask : Object

    Constructors

    RenderTask()

    Initializes a new instance of the RenderTask.

    Declaration
    public RenderTask()

    Fields

    Tag

    The custom tag object value linked to the rendering task.

    Declaration
    public object Tag
    Field Value
    System.Object

    Properties

    CanDraw

    Determines whether this task can be rendered.

    Declaration
    [Unmanaged]
    public bool CanDraw { get; }
    Property Value
    System.Boolean

    Enabled

    Gets or sets a value indicating whether task is enabled.

    Declaration
    [Unmanaged]
    public bool Enabled { get; set; }
    Property Value
    System.Boolean

    FrameCount

    The amount of frames rendered by this task. It is auto incremented on task drawing.

    Declaration
    [Unmanaged]
    public int FrameCount { get; }
    Property Value
    System.Int32

    LastUsedFrame

    The index of the frame when this task was last time rendered.

    Declaration
    [Unmanaged]
    public ulong LastUsedFrame { get; }
    Property Value
    System.UInt64

    Order

    The order of the task. Used for tasks rendering order. Lower first, higher later.

    Declaration
    [Unmanaged]
    public int Order { get; set; }
    Property Value
    System.Int32

    Methods

    OnDraw()

    Called by graphics device to draw this task.

    Declaration
    [Unmanaged]
    public virtual void OnDraw()

    Resize(Int32, Int32)

    Changes the buffers and output size. Does nothing if size won't change. Called by window or user to resize rendering buffers.

    Declaration
    [Unmanaged]
    public virtual bool Resize(int width, int height)
    Parameters
    System.Int32 width

    The width.

    System.Int32 height

    The height.

    Returns
    System.Boolean

    True if cannot resize the buffers.

    Events

    Begin

    Action fired on task rendering begin.

    Declaration
    [Unmanaged]
    public event Action<RenderTask, GPUContext> Begin
    Event Type
    System.Action<RenderTask, GPUContext>

    End

    Action fired on task rendering end.

    Declaration
    [Unmanaged]
    public event Action<RenderTask, GPUContext> End
    Event Type
    System.Action<RenderTask, GPUContext>

    Present

    Action fired just after frame present.

    Declaration
    [Unmanaged]
    public event Action<RenderTask> Present
    Event Type
    System.Action<RenderTask>

    Render

    Action fired on task rendering.

    Declaration
    [Unmanaged]
    public event Action<RenderTask, GPUContext> Render
    Event Type
    System.Action<RenderTask, GPUContext>

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat