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

Issue 543015: Added simple vertex shader demo.... (Closed)

Created:
10 years, 11 months ago by alokp
Modified:
9 years, 6 months ago
Reviewers:
greggman
CC:
chromium-reviews_googlegroups.com, apatrick_chromium
Visibility:
Public.

Description

Added simple vertex shader demo. I had to make the following modifications to third-party code: - Changed client-side vertex array to VBO - Used GL_UNSIGNED_SHORT instead of GL_UNSIGNED_INT in glDrawElements because GL_UNSIGNED_INT is not supported for by OpenGL ES 2.0 for indices BUG=26099 TEST=Run simple_vertex_shader executable, you should see a rotating cube. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36127

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -31 lines) Patch
M gpu/demos/demos.gyp View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A gpu/demos/simple_vertex_shader/main.cc View 1 chunk +67 lines, -0 lines 0 comments Download
M third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.h View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c View 1 2 6 chunks +22 lines, -19 lines 2 comments Download
M third_party/gles2_book/Common/Include/esUtil.h View 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/gles2_book/Common/Source/esShapes.c View 2 6 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
alokp
Hi Gregg, Could you quickly check if I am missing something. The same demo is ...
10 years, 11 months ago (2010-01-11 21:28:51 UTC) #1
greggman
On Mon, Jan 11, 2010 at 1:28 PM, <alokp@chromium.org> wrote: > Reviewers: greggman, > > ...
10 years, 11 months ago (2010-01-11 22:54:03 UTC) #2
greggman
PS: This bug is listed in the errata page for the GL ES 2.0 book ...
10 years, 11 months ago (2010-01-11 23:14:17 UTC) #3
alokp
Hi Gregg, Changing int to short did the trick. Thanks for catching it. Should we ...
10 years, 11 months ago (2010-01-12 17:14:05 UTC) #4
greggman
There was a bug I fixed yesterday that was preventing errors from being reported correctly. ...
10 years, 11 months ago (2010-01-12 17:34:35 UTC) #5
alokp
Please re-review. I still need to update mvp matrix every frame, but I will do ...
10 years, 11 months ago (2010-01-12 17:35:49 UTC) #6
alokp
Hi Gregg, Could you please review this. I am kinda blocked. Thanks.
10 years, 11 months ago (2010-01-13 02:55:45 UTC) #7
greggman
LGTM http://codereview.chromium.org/543015/diff/9001/9005 File third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c (right): http://codereview.chromium.org/543015/diff/9001/9005#newcode128 third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c:128: glEnableVertexAttribArray ( userData->positionLoc ); Any particular reason you ...
10 years, 11 months ago (2010-01-13 03:10:43 UTC) #8
alokp
10 years, 11 months ago (2010-01-13 03:52:59 UTC) #9
http://codereview.chromium.org/543015/diff/9001/9005
File third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c
(right):

http://codereview.chromium.org/543015/diff/9001/9005#newcode128
third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c:128:
glEnableVertexAttribArray ( userData->positionLoc );
no particular reason. does it matter?

Powered by Google App Engine
This is Rietveld 408576698