cuGLGetMappedArray ( CUinteropObject  hObject,
unsigned int  level,
unsigned int  slice,
CUarray pArray 
)

This function returns a CUarray in pArray corresponding to the requested mipmap level and slice of the specified image resource hObject. The CUarray may then be used to read or write the data associated with the image resource. The resource must be mapped when this function is called.

CUDA_ERROR_INVALID_HANDLE is returned if hObject is not a valid handle to an interop image resource. CUDA_ERROR_INVALID_VALUE is returned if either of level or slice is invalid for the specified image. CUDA_ERROR_NOT_MAPPED is returned if the specified resource is not currently mapped.

Parameters:
hObject - The handle of the image resource to be modified
level - Specifies the mipmap level to be mapped
slice - Specifies the slice of a multi-slice image to be mapped. For a 2D texture, this must be zero.
pArray - Returned array corresponding to level and slice
Returns:
CUDA_SUCCESS, CUDA_ERROR_INVALID_HANDLE, CUDA_ERROR_ALREADY_MAPPED, CUDA_ERROR_INVALID_CONTEXT,
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cuGLCtxCreate, cuGLInit, cuGLMapBufferObject, cuGLRegisterBufferObject, cuGLUnregisterBufferObject, cuGLUnmapBufferObject, cuGLMapBufferObjectAsync, cuGLUnmapBufferObjectAsync, cuWGLGetDevice


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA