From 0a900a97c070cd97999eaf4d771328949ddde86f Mon Sep 17 00:00:00 2001 From: Istvan Kiss Date: Sat, 9 Nov 2024 18:49:28 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: randyh62 <42045079+randyh62@users.noreply.github.com> --- docs/how-to/hip_runtime_api/opengl_interop.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/how-to/hip_runtime_api/opengl_interop.rst b/docs/how-to/hip_runtime_api/opengl_interop.rst index ec0ad9c972..00ae889c0e 100644 --- a/docs/how-to/hip_runtime_api/opengl_interop.rst +++ b/docs/how-to/hip_runtime_api/opengl_interop.rst @@ -10,7 +10,7 @@ OpenGL interoperability The HIP--OpenGL interoperation involves mapping OpenGL resources, such as buffers and textures, for HIP access. This mapping process enables HIP to -utilize these resources directly, bypassing the need for data transfers between +utilize these resources directly, bypassing the need for costly data transfers between the CPU and GPU. This capability is useful in applications that require both intensive GPU computation and real-time visualization. @@ -36,20 +36,20 @@ framebuffer in a cycle until the window is not closed. .. note:: The more recent recent OpenGL functions loaded with `OpenGL loader `_, - as these are not loaded by default on all platforms. The use of custom loader + as these are not loaded by default on all platforms. The use of a custom loader shown in the following example .. literalinclude:: ../../tools/example_codes/opengl_interop.hip :start-after: // [Sphinx opengl functions load start] :end-before: // [Sphinx opengl functions load end] -The OpenGL buffer is imported to HIP using as the following way: +The OpenGL buffer is imported to HIP 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] -The imported pointer manipulated in the sinewave kernel as the following way: +The imported pointer is manipulated in the sinewave kernel as shown in the following example: .. literalinclude:: ../../tools/example_codes/opengl_interop.hip :start-after: /// [Sphinx sinewave kernel start] @@ -59,7 +59,7 @@ The imported pointer manipulated in the sinewave kernel as the following way: :start-after: // [Sphinx buffer use in kernel start] :end-before: // [Sphinx buffer use in kernel end] -The OpenGL buffer is imported to HIP using as the following way: +The OpenGL buffer is imported to HIP in the following way: .. literalinclude:: ../../tools/example_codes/opengl_interop.hip :start-after: // [Sphinx buffer register and get start]