hipDeviceGetTexture1DLinearMaxWidth

Function hipDeviceGetTexture1DLinearMaxWidth 

Source
pub unsafe extern "C" fn hipDeviceGetTexture1DLinearMaxWidth(
    max_width: *mut usize,
    desc: *const hipChannelFormatDesc,
    device: c_int,
) -> hipError_t
Expand description

@brief Gets the maximum width for 1D linear textures on the specified device

This function queries the maximum width, in elements, of 1D linear textures that can be allocated on the specified device. The maximum width depends on the texture element size and the hardware limitations of the device.

@param [out] max_width Maximum width, in elements, of 1D linear textures that the device can support @param [in] desc Requested channel format @param [in] device Device index to query for maximum 1D texture width

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDevice

@see hipDeviceGetAttribute, hipMalloc, hipTexRefSetAddressMode