{!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} Method AddUpload | Entities Graphics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddUpload

    AddUpload(void*, int, int, int)

    Adds a new pending upload operation to execute when you call SparseUploader.EndAndCommit.

    Declaration
    public void AddUpload(void* src, int size, int offsetInBytes, int repeatCount = 1)
    Parameters
    Type Name Description
    void* src

    The source pointer of data to upload.

    int size

    The amount of data, in bytes, to read from the source pointer.

    int offsetInBytes

    The destination offset of the data in the GPU buffer.

    int repeatCount

    The number of times to repeat the source data in the destination buffer when uploading.

    Remarks

    When this operation executes, the SparseUploader copies data from the source pointer.

    AddUpload<T>(T, int, int)

    Adds a new pending upload operation to execute when you call SparseUploader.EndAndCommit.

    Declaration
    public void AddUpload<T>(T val, int offsetInBytes, int repeatCount = 1) where T : unmanaged
    Parameters
    Type Name Description
    T val

    The source data to upload.

    int offsetInBytes

    The destination offset of the data in the GPU buffer.

    int repeatCount

    The number of times to repeat the source data in the destination buffer when uploading.

    Type Parameters
    Name Description
    T

    Any unmanaged simple type.

    Remarks

    When this operation executes, the SparseUploader copies data from the source value.

    AddUpload<T>(NativeArray<T>, int, int)

    Adds a new pending upload operation to execute when you call SparseUploader.EndAndCommit.

    Declaration
    public void AddUpload<T>(NativeArray<T> array, int offsetInBytes, int repeatCount = 1) where T : unmanaged
    Parameters
    Type Name Description
    NativeArray<T> array

    The source array of data to upload.

    int offsetInBytes

    The destination offset of the data in the GPU buffer.

    int repeatCount

    The number of times to repeat the source data in the destination buffer when uploading.

    Type Parameters
    Name Description
    T

    Any unmanaged simple type.

    Remarks

    When this operation executes, the SparseUploader copies data from the source array.

    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)