cubecl_hip_sys

Function hipTexRefSetAddress2D

Source
pub unsafe extern "C" fn hipTexRefSetAddress2D(
    texRef: *mut textureReference,
    desc: *const HIP_ARRAY_DESCRIPTOR,
    dptr: hipDeviceptr_t,
    Pitch: usize,
) -> hipError_t
Expand description

@brief Set a bind an address as a 2D texture reference.

@param [in] texRef Pointer of texture reference. @param [in] desc Pointer of array descriptor. @param [in] dptr Pointer of device address to bind. @param [in] Pitch Pitch in bytes.

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported

@warning This API is deprecated.