Closed
Bug 1048745
Opened 9 years ago
Closed 8 years ago
WebGL2 - Implement Uniforms and Attributes
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
People
(Reporter: u480271, Assigned: u480271)
References
Details
(Keywords: dev-doc-complete)
Attachments
(8 files)
17.39 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
8.24 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
26.86 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
2.91 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
36.35 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
5.08 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
37.80 KB,
patch
|
jgilbert
:
review+
smaug
:
review+
|
Details | Diff | Splinter Review |
4.01 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
Updated•9 years ago
|
Keywords: dev-doc-needed
Attachment #8493660 -
Flags: review?(bjacob)
Attachment #8493661 -
Flags: review?(bjacob)
Attachment #8493662 -
Flags: review?(bjacob)
Keywords: leave-open
Updated•9 years ago
|
Attachment #8493660 -
Flags: review?(bjacob) → review+
Updated•9 years ago
|
Attachment #8493661 -
Flags: review?(bjacob) → review+
Updated•9 years ago
|
Attachment #8493662 -
Flags: review?(bjacob) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/e7f0c0d7fc44 https://hg.mozilla.org/integration/mozilla-inbound/rev/15a03bd9042f https://hg.mozilla.org/integration/mozilla-inbound/rev/ff9851d1520d
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e7f0c0d7fc44 https://hg.mozilla.org/mozilla-central/rev/15a03bd9042f https://hg.mozilla.org/mozilla-central/rev/ff9851d1520d
Attachment #8524365 -
Flags: review?(jgilbert)
Updated•9 years ago
|
Attachment #8524365 -
Flags: review?(jgilbert) → review+
Attachment #8527391 -
Flags: review?(jgilbert)
Attachment #8527429 -
Flags: review?(jgilbert)
Updated•9 years ago
|
Attachment #8527429 -
Flags: review?(jgilbert) → review+
Comment 11•9 years ago
|
||
Comment on attachment 8527391 [details] [diff] [review] [WebGL2] Integer vertex attributes Review of attachment 8527391 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/canvas/WebGLContext.h @@ +141,5 @@ > class WebGLIntOrFloat { > enum { > Int, > + Float, > + Unsigned Uint ::: dom/canvas/WebGLContextValidate.cpp @@ +1634,5 @@ > + GLsizei requiredAlignment = 0; > + if (!ValidateAttribPointerType(integerMode, type, &requiredAlignment, info)) > + return false; > + > + // requiredAlignment should always be a power of two. Assert it.
Attachment #8527391 -
Flags: review?(jgilbert) → review+
Assignee | ||
Comment 14•8 years ago
|
||
Assignee | ||
Comment 15•8 years ago
|
||
Comment on attachment 8579163 [details] [diff] [review] WebGL2 - Uniform with GLuint and non-square UniformMatrix. r=jgilbert I cleaned this up and made it like the WebGL1 functions. Sorry it turned out to be more changes than I expected.
Attachment #8579163 -
Flags: review?(jgilbert)
Comment 16•8 years ago
|
||
Comment on attachment 8579163 [details] [diff] [review] WebGL2 - Uniform with GLuint and non-square UniformMatrix. r=jgilbert Review of attachment 8579163 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/canvas/WebGL1ContextUniforms.cpp @@ +41,5 @@ > + ErrorInvalidValue("%s: transpose must be FALSE as per the " > + "OpenGL ES 2.0 spec", info); > + } > + > + return !transpose; It's more clear if you keep `return false` in the branch, and leave `return true` outside of it. ::: dom/canvas/WebGLUniformLocation.cpp @@ +49,5 @@ > > static bool > IsUniformSetterTypeValid(GLenum setterType, GLenum uniformType) > { > + // The order of the values in this switch match table 2.10 from "the order [...] matches" :) @@ +98,5 @@ > + case LOCAL_GL_SAMPLER_2D_SHADOW: > + case LOCAL_GL_SAMPLER_2D_ARRAY: > + case LOCAL_GL_SAMPLER_2D_ARRAY_SHADOW: > + case LOCAL_GL_SAMPLER_CUBE_SHADOW: > + /**/ I don't think we need these comments as spacers. Just a blank line would be fine.
Attachment #8579163 -
Flags: review?(jgilbert) → review+
Assignee | ||
Comment 17•8 years ago
|
||
Comment on attachment 8579163 [details] [diff] [review] WebGL2 - Uniform with GLuint and non-square UniformMatrix. r=jgilbert Olli, I added TypedArray variants to the .webidl to match the WebGL 2 spec. These were missing from the spec when I first implemented webidl for WebGL 2.
Attachment #8579163 -
Flags: review?(bugs)
Comment 18•8 years ago
|
||
I'm not seeing void uniform1uiv(WebGLUniformLocation? location, Uint32Array value); etc in the spec.
Comment 19•8 years ago
|
||
Comment on attachment 8579163 [details] [diff] [review] WebGL2 - Uniform with GLuint and non-square UniformMatrix. r=jgilbert (I would of course prefer to see Mozilla coding style being used in C++ but perhaps all this code needs to be converted to the right style in a different bug). But r- until it is explain why we add these methods if those aren't in the spec. Or am I looking at some old version of the spec? https://www.khronos.org/registry/webgl/specs/latest/2.0/
Attachment #8579163 -
Flags: review?(bugs) → review-
Comment 20•8 years ago
|
||
Comment on attachment 8579163 [details] [diff] [review] WebGL2 - Uniform with GLuint and non-square UniformMatrix. r=jgilbert Or, perhaps conditional r+ is fine. So, please explain why those methods are added and why they aren't in the spec yet. (I assume they will be in the spec)
Attachment #8579163 -
Flags: review- → review+
Assignee | ||
Comment 21•8 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #20) > Comment on attachment 8579163 [details] [diff] [review] > WebGL2 - Uniform with GLuint and non-square UniformMatrix. r=jgilbert > > Or, perhaps conditional r+ is fine. > So, please explain why those methods are added and why they aren't in the > spec yet. (I assume they will be in the spec) I've asked for the spec to be updated to accept TypedArrays. Until that makes it to the latest draft, I'll split this patch to land the changes that don't rely upon webidl changes.
Assignee | ||
Comment 22•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dfe2490b2b2b https://hg.mozilla.org/integration/mozilla-inbound/rev/4dae2d1f59ff
https://hg.mozilla.org/mozilla-central/rev/dfe2490b2b2b https://hg.mozilla.org/mozilla-central/rev/4dae2d1f59ff
Assignee | ||
Comment 24•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ddf60eb38236
Assignee | ||
Comment 26•8 years ago
|
||
Attachment #8593720 -
Flags: review?(jgilbert)
Updated•8 years ago
|
Attachment #8593720 -
Flags: review?(jgilbert) → review+
Comment 29•8 years ago
|
||
Is there anything left that needs to be done here?
Flags: needinfo?(dglastonbury)
Assignee | ||
Comment 30•8 years ago
|
||
Just ran the conformance tests and I don't think so. I'll remove the leave-open and close.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(dglastonbury)
Keywords: leave-open
Resolution: --- → FIXED
Comment 31•7 years ago
|
||
https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext#Uniforms_and_attributes
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•