cubecl_hip_sys

Function hipCreateTextureObject

Source
pub unsafe extern "C" fn hipCreateTextureObject(
    pTexObject: *mut hipTextureObject_t,
    pResDesc: *const hipResourceDesc,
    pTexDesc: *const hipTextureDesc,
    pResViewDesc: *const hipResourceViewDesc,
) -> hipError_t
Expand description

@brief Creates a texture object.

@param [out] pTexObject pointer to the texture object to create @param [in] pResDesc pointer to resource descriptor @param [in] pTexDesc pointer to texture descriptor @param [in] pResViewDesc pointer to resource view descriptor

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported, #hipErrorOutOfMemory

@note 3D liner filter isn’t supported on GFX90A boards, on which the API @p hipCreateTextureObject will return hipErrorNotSupported.