Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: native_client_sdk/src/doc/devguide/coding/3D-graphics.rst

Issue 2875303003: Add migration to WebAssembly information to PNaCl / NaCl docs. (Closed)
Patch Set: fix Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 .. _devguide-coding-3D-graphics: 1 .. _devguide-coding-3D-graphics:
2 2
3 .. include:: /migration/deprecation.inc
4
3 ########### 5 ###########
4 3D Graphics 6 3D Graphics
5 ########### 7 ###########
6 8
7 Native Client applications use the `OpenGL ES 2.0 9 Native Client applications use the `OpenGL ES 2.0
8 <http://en.wikipedia.org/wiki/OpenGL_ES>`_ API for 3D rendering. This document 10 <http://en.wikipedia.org/wiki/OpenGL_ES>`_ API for 3D rendering. This document
9 describes how to call the OpenGL ES 2.0 interface in a Native Client module and 11 describes how to call the OpenGL ES 2.0 interface in a Native Client module and
10 how to build an efficient rendering loop. It also explains how to validate GPU 12 how to build an efficient rendering loop. It also explains how to validate GPU
11 drivers and test for specific GPU capabilities, and provides tips to help ensure 13 drivers and test for specific GPU capabilities, and provides tips to help ensure
12 your rendering code runs efficiently. 14 your rendering code runs efficiently.
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 * **Don't read data from the GPU.** Don't call ``glReadPixels``, as it is slow. 523 * **Don't read data from the GPU.** Don't call ``glReadPixels``, as it is slow.
522 524
523 * **Don't update a small portion of a large buffer.** In the current OpenGL ES 525 * **Don't update a small portion of a large buffer.** In the current OpenGL ES
524 2.0 implementation when you update a portion of a buffer (with 526 2.0 implementation when you update a portion of a buffer (with
525 ``glSubBufferData`` for example) the entire buffer must be reprocessed. To 527 ``glSubBufferData`` for example) the entire buffer must be reprocessed. To
526 avoid this problem, keep static and dynamic data in different buffers. 528 avoid this problem, keep static and dynamic data in different buffers.
527 529
528 * **Don't call glDisable(GL_TEXTURE_2D).** This is an OpenGL ES 2.0 530 * **Don't call glDisable(GL_TEXTURE_2D).** This is an OpenGL ES 2.0
529 error. Each time it is called, an error messages will appear in Chrome's 531 error. Each time it is called, an error messages will appear in Chrome's
530 ``about:gpu`` tab. 532 ``about:gpu`` tab.
OLDNEW
« no previous file with comments | « native_client_sdk/src/doc/cpp-api-dev.rst ('k') | native_client_sdk/src/doc/devguide/coding/application-structure.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698