cuGLSetImageMapRange ( CUinteropObject  hObject,
unsigned int  minLevel,
unsigned int  maxLevel,
unsigned int  minSlice,
unsigned int  maxSlice 
)

By default, mapping an image resource maps all 2D image arrays of the resource, including all mipmaps levels, all cubemap faces, and all slices of a 3D texture or 2D array texture. This function allows the specification of a subrange to be mapped. The subrange may be modified only when the resource is unmapped, and takes effect the next time the resource is mapped.

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 any of minLevel, maxLevel, minSlice or maxSlice are invalid for the specified image. CUDA_ERROR_ALREADY_MAPPED is returned if the specified resource is already mapped.

Parameters:
hObject - The handle of the image resource to be modified
minLevel - Specifies the lowest mipmap level to be mapped. For a renderbuffer, this must be zero.
maxLevel - Specifies the highest mipmap level to be mapped For a renderbuffer, this must be zero.
minSlice - Specifies the first slice of a multi-slice image to be mapped. For a 2D texture or renderbuffer, this must be zero.
maxSlice - Specifies the last slice of a multi-slice image to be mapped. For a 2D texture or renderbuffer, this must be zero.
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