pub unsafe extern "C" fn cudaDeviceGetTexture1DLinearMaxWidth(
maxWidthInElements: *mut size_t,
fmtDesc: *const cudaChannelFormatDesc,
device: c_int,
) -> cudaError_tExpand description
Returns the maximum number of elements allocatable in a 1D linear texture for a given element size.
Returns in maxWidthInElements the maximum number of elements allocatable in a 1D linear texture for given format descriptor fmtDesc.
Note that this function may also return error codes from previous, asynchronous launches.
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
maxWidthInElements: Returns maximum number of texture elements allocatable for givenfmtDesc.fmtDesc: Texture format description.
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_UNSUPPORTED_LIMITcudaError_t::CUDA_ERROR_INVALID_VALUE
See also: cuDeviceGetTexture1DLinearMaxWidth.