Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
neon60 committed Nov 18, 2024
1 parent 6b847c4 commit dccba86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/how-to/hip_runtime_api/opengl_interop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dccba86

Please sign in to comment.