aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Store a reference to the WebGLRenderingContext in WebGLObjectAnthony Ramine2018-07-241-8/+6
|
* Invalidate all WebGLUniformLocation values on program relinkAnthony Ramine2018-07-191-2/+10
|
* Implement gl.getUniform()Anthony Ramine2018-07-181-3/+79
|
* Use active uniforms data to implement gl.uniform* checksAnthony Ramine2018-07-171-202/+336
|
* Store active uniforms on the DOM sideAnthony Ramine2018-07-161-6/+1
|
* Properly implement the checks for gl.renderbufferStorage (fixes #20563)Anthony Ramine2018-07-091-17/+4
|
* Implement instanced WebGL drawing calls (part of #20791)Anthony Ramine2018-07-081-10/+176
|
* Correctly implement the vertex buffer checks in drawArraysAnthony Ramine2018-07-081-34/+84
| | | | | This is half of #20599. The check for drawElements is a bit more complex to implement.
* Return an empty typed array from gl.getParameter(gl.COMPRESSED_TEXTURE_FORMATS)Anthony Ramine2018-07-081-1/+11
|
* Implement gl.getParameter(gl.MAX_VIEWPORT_DIMS)Anthony Ramine2018-07-081-0/+11
|
* Return typed arrays from gl.getParameter (fixes #20655)Anthony Ramine2018-07-081-19/+32
|
* Fix gl.getShaderSource and gl.getShaderInfoLogAnthony Ramine2018-07-081-2/+4
| | | | | It only returns null if there was an error, and the only error isn't implemented yet.
* Pass more GL limits to the ANGLE shader compilerAnthony Ramine2018-07-081-1/+6
|
* Make gl.useProgram(null) do the right thingAnthony Ramine2018-07-051-4/+5
|
* Store active attribs in DOM and optimise active attributes APIsAnthony Ramine2018-07-051-14/+23
|
* Fix gl.linkProgram() signatureAnthony Ramine2018-07-051-6/+3
|
* Store vertex attribs data in DOM and optimise GetVertexAttribAnthony Ramine2018-07-051-91/+140
|
* Rename VertexAttribs::set_from to VertexAttribs::clone_fromAnthony Ramine2018-07-051-1/+1
|
* Refactor some vertex attrib checksAnthony Ramine2018-07-051-14/+10
|
* Introduce VertexAttribDataAnthony Ramine2018-07-051-9/+22
|
* Rename BoundAttribBuffers to VertexAttribs and make it store a sliceAnthony Ramine2018-07-051-37/+40
|
* Implement EXT_blend_minmaxAnthony Ramine2018-06-221-20/+20
|
* Auto merge of #21072 - servo:webgl, r=emiliobors-servo2018-06-201-18/+73
|\ | | | | | | | | | | | | | | Implement checks for vertex attribs enabled as arrays without a bound buffer <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21072) <!-- Reviewable:end -->
| * Implement checks for vertex attribs enabled as arrays without a bound bufferAnthony Ramine2018-06-201-18/+73
| |
* | Auto merge of #20699 - simartin:issue_20593, r=noxbors-servo2018-06-181-1/+30
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #20593: Implement proper checks in WebGLRenderingContext's getFramebufferAttachmentParameter(). Add missing input checks. --- - [X] `./mach build -d` does not report any errors - [X] `./mach build-geckolib` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20593 - [X] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20699) <!-- Reviewable:end -->
| * Issue #20593: Implement proper checks in WebGLRenderingContext's ↵Simon Martin2018-05-311-1/+30
| | | | | | | | getFramebufferAttachmentParameter().
* | Implement EXT_texture_filter_anisotropicAnthony Ramine2018-06-061-36/+47
| |
* | Auto merge of #20884 - jdm:more-limits, r=avadacatavrabors-servo2018-05-311-1/+30
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't forward GL parameter gets for constant limits. This avoids IPC traffic for unchanging constants that are determined when the GL context is created. These changes require https://github.com/emilio/rust-offscreen-rendering-context/pull/123. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20876. - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20884) <!-- Reviewable:end -->
| * | Don't forward GL parameter gets for constant limits.Josh Matthews2018-05-311-1/+30
| |/
* / Don't panic when tearing down a WebGL context and the thead is unreachable.Josh Matthews2018-05-291-1/+1
|/ | | This avoids some cascading double-panics when there are errors in the WebGL rendering thread.
* Implement most of the unsupported parameters in gl.getParameter()Anthony Ramine2018-05-241-0/+15
| | | | | | | | | | | | Fixes #20536. Fixes #20537. Fixes #20538. Fixes #20544. Fixes #20545. Fixes #20546. Fixes #20548. Fixes #20549. Fixes #20551.
* Auto merge of #20669 - simartin:issue_20623, r=jdmbors-servo2018-05-201-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #20623: Check the input to WebGLRenderingContext's clear(). Validate the input to this function as per specifications. --- - [X] `./mach build -d` does not report any errors - [X] `./mach build-geckolib` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20623 - [X] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20669) <!-- Reviewable:end -->
| * Issue #20623: Check the input to WebGLRenderingContext's clear().Simon Martin2018-04-211-0/+3
| |
* | webgl: Add getParameter(UNPACK_PREMULTIPLY_ALPHA_WEBGL) support.Eric Anholt2018-05-071-0/+4
| |
* | webgl: Add getParameter(UNPACK_FlIP_Y_WEBGL) support.Eric Anholt2018-05-071-0/+4
| |
* | webgl: Drop a silly check for 0 in GetTexParameter.Eric Anholt2018-05-051-7/+1
| | | | | | | | | | | | 0 is not among the valid values for a wrap mode or filter, so it won't ever be returned unless the driver is broken, and even if it was a valid value we would want to pass it through.
* | Update to gleam 0.5Anthony Ramine2018-05-051-68/+94
| |
* | Implement WebGL GetRenderbufferParameterFausto Núñez Alberro2018-04-241-0/+39
|/ | | | This needed a bump of gleam to version 0.4.33
* Implement gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE)Matt McCoy2018-04-171-0/+8
|
* Check the bound buffer element array only for count > 0 in gl.drawElementsAnthony Ramine2018-04-161-11/+13
| | | | See https://www.khronos.org/registry/webgl/specs/latest/1.0/#6.2
* Check mode first in gl.drawElementsAnthony Ramine2018-04-161-10/+10
|
* Emit InvalidEnum for invalid targets passed to gl.renderbufferStorageAnthony Ramine2018-04-061-1/+1
|
* Properly check for invalid targets in gl.BindFramebufferAnthony Ramine2018-04-061-6/+1
| | | | It should always emit InvalidEnum, not InvalidOperation.
* Remove SAMPLE_COVERAGE_INVERT from WebGLRenderingContext::validate_feature_enumAnthony Ramine2018-04-051-1/+1
| | | | This constant is not mentioned in the docs of glEnable or glIsEnabled.
* Mention #20534 near the enable/disable/isEnabled WebGL methodsAnthony Ramine2018-04-051-1/+3
|
* Properly clamp arguments to WebGLRenderingContext.depthRangeAnthony Ramine2018-04-051-7/+2
|
* Manually clamp the argument of WebGLRenderingContext.clearDepthAnthony Ramine2018-04-051-1/+1
| | | | Better be safe than to feed stuff to some GPU driver that wouldn't clamp it.
* Properly allow more than FUNC_ADD in blendEquationSeparateAnthony Ramine2018-04-041-5/+13
|
* Properly allow FUNC_SUBTRACT and FUNC_REVERSE_SUBTRACT in blendEquationAnthony Ramine2018-04-041-4/+7
|
* Cache BUFFER_USAGE value on the DOM sideAnthony Ramine2018-04-041-18/+8
|