docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor ProfilingScope

    ProfilingScope(ProfilingSampler)

    Profiling Scope constructor

    Declaration
    public ProfilingScope(ProfilingSampler sampler)
    Parameters
    Type Name Description
    ProfilingSampler sampler

    Profiling Sampler to be used for this scope.

    ProfilingScope(CommandBuffer, ProfilingSampler)

    Profiling Scope constructor

    Declaration
    public ProfilingScope(CommandBuffer cmd, ProfilingSampler sampler)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer used to add markers and compute execution timings.

    ProfilingSampler sampler

    Profiling Sampler to be used for this scope.

    ProfilingScope(BaseCommandBuffer, ProfilingSampler)

    Profiling Scope constructor

    Declaration
    public ProfilingScope(BaseCommandBuffer cmd, ProfilingSampler sampler)
    Parameters
    Type Name Description
    BaseCommandBuffer cmd

    Command buffer used to add markers and compute execution timings.

    ProfilingSampler sampler

    Profiling Sampler to be used for this scope.

    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)