pub unsafe extern "C" fn hipBindTexture2D(
offset: *mut usize,
tex: *const textureReference,
devPtr: *const c_void,
desc: *const hipChannelFormatDesc,
width: usize,
height: usize,
pitch: usize,
) -> hipError_t
Expand description
@brief Binds a 2D memory area to a texture.
@param [in] offset Offset in bytes. @param [in] tex Texture to bind. @param [in] devPtr Pointer of 2D memory area on the device. @param [in] desc Pointer of channel format descriptor. @param [in] width Width in texel units. @param [in] height Height in texel units. @param [in] pitch Pitch in bytes.
@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported
@warning This API is deprecated.