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

    Show / Hide Table of Contents

    Method AddMatrixUploadAndInverse

    AddMatrixUploadAndInverse(void*, int, int, int, MatrixType, MatrixType)

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

    Declaration
    public void AddMatrixUploadAndInverse(void* src, int numMatrices, int offset, int offsetInverse, ThreadedSparseUploader.MatrixType srcType, ThreadedSparseUploader.MatrixType dstType)
    Parameters
    Type Name Description
    void* src

    A pointer to a memory area that contains matrices of the type specified by srcType.

    int numMatrices

    The number of matrices to upload.

    int offset

    The destination offset of the copy part of the upload operation.

    int offsetInverse

    The destination offset of the inverse part of the upload operation.

    ThreadedSparseUploader.MatrixType srcType

    The source matrix format.

    ThreadedSparseUploader.MatrixType dstType

    The destination matrix format.

    Remarks

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

    The upload operation automatically inverts matrices during the upload operation and it then stores the inverted matrices in a separate offset in the GPU buffer.

    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)