From f77b4f705a185764f0291abb2f8cf3c2d71bf3bf Mon Sep 17 00:00:00 2001 From: Julia Jiang Date: Tue, 3 Oct 2023 15:43:07 -0400 Subject: [PATCH] SWDEV-425362 - Fix GL section on HIP API module Change-Id: I6824758a4744739a596a96e04053eec8e16516cc [ROCm/clr commit: 3eb46ae58885ca5b9321e4b3212702142e082bbf] --- .../hip/amd_detail/amd_hip_gl_interop.h | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_gl_interop.h b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_gl_interop.h index 5ab79c9a01..e5b6dc3a35 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_gl_interop.h +++ b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_gl_interop.h @@ -26,12 +26,12 @@ THE SOFTWARE. #if defined(__cplusplus) extern "C" { #endif + /** - *------------------------------------------------------------------------------------------------- - *------------------------------------------------------------------------------------------------- - * @defgroup GL OpenGL Interop - * @{ - * This section describes the OpenGL and graphics interoperability functions of HIP runtime API. + * + * @addtogroup GlobalDefs + * @{ + * */ /** @@ -50,7 +50,15 @@ typedef enum hipGLDeviceList { typedef unsigned int GLuint; /** GLenum as uint.*/ typedef unsigned int GLenum; +/* +* @} +*/ +/** + * @ingroup GL + * @{ + * + */ /** * @brief Queries devices associated with the current OpenGL context. * @@ -58,9 +66,9 @@ typedef unsigned int GLenum; * @param [out] pHipDevices - Pointer of devices on the current OpenGL context. * @param [in] hipDeviceCount - Size of device. * @param [in] deviceList - The setting of devices. It could be either hipGLDeviceListCurrentFrame - * for the devices used to render the current frame, or hipGLDeviceListAll for all devices. + * for the devices used to render the current frame, or hipGLDeviceListAll for all devices. * The default setting is Invalid deviceList value. - * + * * @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported * */ @@ -85,13 +93,15 @@ hipError_t hipGraphicsGLRegisterBuffer(hipGraphicsResource** resource, GLuint bu * @param [in] image - Image to be registered. * @param [in] target - Valid target value Id. * @param [in] flags - Register flags. - * + * * @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorUnknown, #hipErrorInvalidResourceHandle * */ hipError_t hipGraphicsGLRegisterImage(hipGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags); - +/* +* @} +*/ #if defined(__cplusplus) } #endif /* __cplusplus */