RESOLVED FIXED 94755
[CSS Shaders] Create constants for vertex attribute sizes and offsets
https://bugs.webkit.org/show_bug.cgi?id=94755
Summary [CSS Shaders] Create constants for vertex attribute sizes and offsets
Max Vujovic
Reported 2012-08-22 16:28:44 PDT
Right now, vertex attribute sizes are literal constants in CustomFilterMesh.cpp like this: static const unsigned AttachedMeshVertexSize = 4 + // vec4 a_position 2 + // vec2 a_texCoord 2; // vec2 a_meshCoord It would be better to make them public members of CustomFilterMesh like this: static const unsigned PositionAttribSize = 4; static const unsigned TexAttribSize = 2; That way, we can use the constants when we bind the attributes in FECustomFilter::bindProgramAndBuffers.
Attachments
Patch (13.28 KB, patch)
2012-10-09 11:29 PDT, Max Vujovic
no flags
Max Vujovic
Comment 1 2012-10-09 11:29:02 PDT
WebKit Review Bot
Comment 2 2012-10-09 12:49:01 PDT
Comment on attachment 167797 [details] Patch Clearing flags on attachment: 167797 Committed r130797: <http://trac.webkit.org/changeset/130797>
WebKit Review Bot
Comment 3 2012-10-09 12:49:04 PDT
All reviewed patches have been landed. Closing bug.
Max Vujovic
Comment 4 2012-10-09 13:36:40 PDT
Thanks for the review, Dean!
Adam Barth
Comment 5 2012-10-09 14:06:18 PDT
The path for CustomFilterConstants.h in the build system doesn't match the path where you placed the file. Which is right?
Adam Barth
Comment 6 2012-10-09 14:07:44 PDT
I'm going to move the file to the filters directory. Please fix if that's not the right thing to do.
Max Vujovic
Comment 7 2012-10-09 14:23:18 PDT
(In reply to comment #6) > I'm going to move the file to the filters directory. Please fix if that's not the right thing to do. You're right. Thanks Adam!
Note You need to log in before you can comment on or make changes to this bug.