docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Initialize

    Initialize(int, int, bool, int)

    Initialize a Scratchpad.

    Declaration
    [ExcludeFromBurstCompatTesting("Accesses managed delegate")]
    public void Initialize(int numScratchpadAllocators, int initialSizeInBytes = 32768, bool isGlobal = false, int globalIndex = 0)
    Parameters
    Type Name Description
    int numScratchpadAllocators

    The number of ScratchpadAllocators the created Scratchpad should contain.

    int initialSizeInBytes

    The initial size of the Scratchpad in bytes. Set to 32,768 by default.

    bool isGlobal

    Flag indicating if the allocator is a global allocator.

    int globalIndex

    Base index into the global function table of the allocator to be created.

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