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.