pub unsafe extern "C" fn cudaGetTextureObjectResourceViewDesc(
pResViewDesc: *mut cudaResourceViewDesc,
texObject: cudaTextureObject_t,
) -> cudaError_tExpand description
Returns a texture object’s resource view descriptor.
Returns the resource view descriptor for the texture object specified by texObject. If no resource view was specified, cudaError_t::CUDA_ERROR_INVALID_VALUE is returned.
Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.
Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.
§Parameters
pResViewDesc: Resource view descriptor.texObject: Texture object.
§Return value
See also: cudaCreateTextureObject, cuTexObjectGetResourceViewDesc.