CUresult cuTexRefGetFormat ( CUarray_format pFormat,
int *  pNumPackedComponents,
CUtexref  hTexRef 
)

Returns in *pFormat and *pNumPackedComponents the format and number of components of the CUDA array bound to the texture reference hTexRef. If pFormat or pNumPackedComponents is NULL, it will be ignored.

Parameters:
pFormat - Returned format
pNumPackedComponents - Returned number of components
hTexRef - Texture reference
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
See also:
cuTexRefCreate, cuTexRefDestroy, cuTexRefSetAddress, cuTexRefSetAddress2D, cuTexRefSetAddressMode, cuTexRefSetArray, cuTexRefSetFilterMode, cuTexRefSetFlags, cuTexRefSetFormat, cuTexRefGetAddress, cuTexRefGetAddressMode, cuTexRefGetArray, cuTexRefGetFilterMode, cuTexRefGetFlags


Generated by Doxygen on Mon Mar 30 23:16:13 2009 for NVIDIA CUDA Library  NVIDIA