Search Results for

    Show / Hide Table of Contents

    Class RenderTargetPool

    Utility for pooling render target resources with reusing and sharing resources during rendering.

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

    Methods

    Flush(bool force=false, int32 framesOffset=-1)

    Flushes the temporary render targets.

    Declaration
    public static void Flush(bool force=false, int32 framesOffset=-1)
    Parameters
    bool force

    True if release unused render targets by force, otherwise will use a few frames of delay.

    int32 framesOffset

    Amount of previous frames that should persist in the pool after flush. Resources used more than given value wil be freed. Use value of -1 to auto pick default duration.

    Get(const GPUTextureDescription& desc)

    Gets a temporary render target.

    Declaration
    public static GPUTexture* Get(const GPUTextureDescription& desc)
    Parameters
    GPUTextureDescription desc

    The texture description.

    Returns
    GPUTexture

    The allocated render target or reused one.

    Release(GPUTexture* rt)

    Releases a temporary render target.

    Declaration
    public static void Release(GPUTexture* rt)
    Parameters
    GPUTexture rt

    The reference to temporary target to release.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat