Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

15.5. Summary

When it comes to cross-platform 3-D rendering, OpenGL has little competition. You can find it used frequently in games, scientific visualization, and computer-aided design (CAD). The fact that this rendering can be accelerated with OpenCL is, in my opinion, OpenCL’s most important benefit. The goal of this chapter is to show how this acceleration works in code.

The central concept is data sharing. OpenGL and OpenCL don’t transfer data between themselves—they read and write to the same memory. To make this sharing possible, applications create OpenCL memory objects from OpenGL objects. More precisely, the host application creates buffer objects from VBOs and image objects from textures and renderbuffer objects.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint