From 3d752f6be53fef66a96410a34fcdab0c0c6b5b22 Mon Sep 17 00:00:00 2001 From: Istvan Kiss Date: Tue, 12 Nov 2024 19:16:41 +0100 Subject: [PATCH] WIP --- docs/how-to/hip_runtime_api/opengl_interop.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/how-to/hip_runtime_api/opengl_interop.rst b/docs/how-to/hip_runtime_api/opengl_interop.rst index 0c86483297..9b4d5a7355 100644 --- a/docs/how-to/hip_runtime_api/opengl_interop.rst +++ b/docs/how-to/hip_runtime_api/opengl_interop.rst @@ -67,9 +67,10 @@ The imported pointer is manipulated in the sinewave kernel as shown in the follo :end-before: // [Sphinx buffer use in kernel end] :language: cpp -The OpenGL buffer is imported to HIP in the following way: +The HIP graphics resource that is imported from the OpenGL buffer has to be +unmap and unregister in the following way: .. literalinclude:: ../../tools/example_codes/opengl_interop.hip - :start-after: // [Sphinx buffer register and get start] - :end-before: // [Sphinx buffer register and get end] + :start-after: // [Sphinx unregister start] + :end-before: // [Sphinx unregister end] :language: cpp