SWDEV-368153 - Extern hipCreateSurfaceObject & hipDestroySurfaceObject. (#3238)

Change-Id: I9e0bed78d3983eaacda843362984ef4ae0d3b0b6
Cette révision appartient à :
ROCm CI Service Account
2023-06-28 21:53:25 +05:30
révisé par GitHub
Parent 7aa4cd6862
révision 4e19382402
+33 -36
Voir le fichier
@@ -7701,7 +7701,40 @@ hipError_t hipGraphicsUnregisterResource(hipGraphicsResource_t resource);
* @} * @}
*/ */
/**
*-------------------------------------------------------------------------------------------------
*-------------------------------------------------------------------------------------------------
* @defgroup Surface Surface Object
* @{
*
* This section describes surface object functions of HIP runtime API.
*
* @note APIs in this section are under development.
*
*/
/**
* @brief Create a surface object.
*
* @param [out] pSurfObject Pointer of surface object to be created.
* @param [in] pResDesc Pointer of suface object descriptor.
*
* @returns #hipSuccess, #hipErrorInvalidValue
*
*/
hipError_t hipCreateSurfaceObject(hipSurfaceObject_t* pSurfObject, const hipResourceDesc* pResDesc);
/**
* @brief Destroy a surface object.
*
* @param [in] surfaceObject Surface object to be destroyed.
*
* @returns #hipSuccess, #hipErrorInvalidValue
*/
hipError_t hipDestroySurfaceObject(hipSurfaceObject_t surfaceObject);
// end of surface
/**
* @}
*/
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "c" */ } /* extern "c" */
#endif #endif
@@ -8058,42 +8091,6 @@ inline hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams* launchPara
unsigned int numDevices, unsigned int flags = 0) { unsigned int numDevices, unsigned int flags = 0) {
return hipExtLaunchMultiKernelMultiDevice(launchParamsList, numDevices, flags); return hipExtLaunchMultiKernelMultiDevice(launchParamsList, numDevices, flags);
} }
/**
*-------------------------------------------------------------------------------------------------
*-------------------------------------------------------------------------------------------------
* @defgroup Surface Surface Object
* @{
*
* This section describes surface object functions of HIP runtime API.
*
* @note APIs in this section are under development.
*
*/
/**
* @brief Create a surface object.
*
* @param [out] pSurfObject Pointer of surface object to be created.
* @param [in] pResDesc Pointer of suface object descriptor.
*
* @returns #hipSuccess, #hipErrorInvalidValue
*
*/
hipError_t hipCreateSurfaceObject(hipSurfaceObject_t* pSurfObject, const hipResourceDesc* pResDesc);
/**
* @brief Destroy a surface object.
*
* @param [in] surfaceObject Surface object to be destroyed.
*
* @returns #hipSuccess, #hipErrorInvalidValue
*/
hipError_t hipDestroySurfaceObject(hipSurfaceObject_t surfaceObject);
// end of surface
/**
* @}
*/
/** /**
* @brief Binds a memory area to a texture. * @brief Binds a memory area to a texture.
* *