docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SwitchToFastMemory

    SwitchToFastMemory(CommandBuffer, float, FastMemoryFlags, bool)

    Switch the render target to fast memory on platform that have it.

    Declaration
    public void SwitchToFastMemory(CommandBuffer cmd, float residencyFraction = 1, FastMemoryFlags flags = FastMemoryFlags.SpillTop, bool copyContents = false)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer used for rendering.

    float residencyFraction

    How much of the render target is to be switched into fast memory (between 0 and 1).

    FastMemoryFlags flags

    Flag to determine what parts of the render target is spilled if not fully resident in fast memory.

    bool copyContents

    Whether the content of render target are copied or not when switching to fast memory.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)