This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

mxGPUGetData (C)

Raw pointer to underlying data

C Syntax

#include "gpu/mxGPUArray.h"
void* mxGPUGetData(mxGPUArray const * const mgp)



Pointer to an mxGPUArray on the GPU. The target gpuArray must be full, not sparse.


Pointer to data.


mxGPUGetData returns a raw pointer to the underlying data. Cast this pointer to the type of data that you want to use on the device. It is your responsibility to check that the data inside the array has the appropriate type, for which you can use mxGPUGetClassID.

Was this topic helpful?