cubecl_hip_sys

Function hipTexRefGetFormat

Source
pub unsafe extern "C" fn hipTexRefGetFormat(
    pFormat: *mut hipArray_Format,
    pNumChannels: *mut c_int,
    texRef: *const textureReference,
) -> hipError_t
Expand description

@brief Gets texture format for a texture reference.

@param [out] pFormat Pointer of the format. @param [out] pNumChannels Pointer of number of channels. @param [in] texRef Pointer of texture reference.

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported

@warning This API is deprecated.