SWDEV-425362 - Fix GL section on HIP API module
Change-Id: I6824758a4744739a596a96e04053eec8e16516cc
[ROCm/clr commit: 3eb46ae588]
Bu işleme şunda yer alıyor:
işlemeyi yapan:
Julia Jiang
ebeveyn
fadcf07d9d
işleme
f77b4f705a
@@ -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 */
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle