{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct SparseUploader | Entities Graphics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SparseUploader

    Provides utility methods that you can use to upload data into GPU memory.

    Namespace: Unity.Rendering
    Assembly: solution.dll
    Syntax
    public struct SparseUploader
    Remarks

    To add uploads from jobs, use a ThreadedSparseUploader which you can create using SparseUploader.Begin. If you add uploads from jobs, the ThreadedSparseUploader submits them to the GPU in a series of compute shader dispatches when you call SparseUploader.EndAndCommit.

    Constructors

    Name Description
    SparseUploader(GraphicsBuffer, int)

    Constructs a new sparse uploader with the specified buffer as the target.

    Methods

    Name Description
    Begin(int, int, int)

    Begins a new upload frame and returns a new ThreadedSparseUploader that is valid until the next call to SparseUploader.EndAndCommit.

    ComputeStats()

    Calculates statistics about the current and previous frame uploads.

    Dispose()

    Disposes of the SparseUploader.

    EndAndCommit(ThreadedSparseUploader)

    Ends an upload frame and dispatches any upload operations added to the passed in ThreadedSparseUploader.

    FrameCleanup()

    Cleans up internal data and recovers buffers into the free buffer pool.

    ReplaceBuffer(GraphicsBuffer, bool)

    Replaces the destination GPU buffer with a new one.

    In This Article
    Back to top
    Copyright © 2023 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)