aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* | Make remove_premultiplied_alpha mutate its inputAnthony Ramine2018-09-081-16/+15
| |
* | Make premultiply_pixels mutate its inputAnthony Ramine2018-09-081-46/+28
| |
* | Use byte channels to send textures to the WebGL threadAnthony Ramine2018-09-081-10/+10
| |
* | Use ipc::bytes_channel in ReadPixelsAnthony Ramine2018-09-081-3/+3
| |
* | Simplify WebGLRenderingContext::get_image_dataAnthony Ramine2018-09-081-8/+8
| |
* | Use a bytes channel in BufferDataAnthony Ramine2018-09-071-14/+23
| | | | | | | | This means we don't need to copy the input ArrayBuffer at all on the DOM side.
* | Simplify WebGLBuffer::buffer_dataAnthony Ramine2018-09-071-14/+5
| | | | | | | | | | There is no need to pass the target to that buffer method, given the buffer has been retrieved by looking up the one bound to that target in the context.
* | Make validate_framebuffer return a WebGLResult<()>Anthony Ramine2018-09-061-40/+15
| |
* | Use WebGLResult for returns of instanced draw methodsAnthony Ramine2018-09-061-46/+27
| |
* | Support unions of objects in overloadsAnthony Ramine2018-08-301-35/+14
| | | | | | | | Part of #20513, implementing the parts useful for WebGL.
* | Fix gl.isBuffer for buffers that are marked for deletion but still attachedAnthony Ramine2018-08-301-1/+1
| |
* | Always emit INVALID_OPERATION on null element buffers in drawElementsAnthony Ramine2018-08-301-7/+9
| |
* | Fix the error for invalid arrays passed to gl.vertexAttrib*v()Anthony Ramine2018-08-301-4/+8
| |
* | Fix the build for NLLSimon Sapin2018-08-241-3/+3
| | | | | | | | | | | | Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build` https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7
* | Properly check limit in gl.activeTexture()Anthony Ramine2018-08-231-139/+153
| |
* | Revert "Fix the build for NLL"Josh Matthews2018-08-071-3/+3
| | | | | | | | This reverts commit d1733aa5029c5b97390a236d94eed916ddb64577.
* | Fix the build for NLLSimon Sapin2018-08-081-3/+3
|/ | | | | | Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build` https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7
* Merge code from Draw* and Draw*Instanced methodsAnthony Ramine2018-08-021-122/+22
| | | | | This made me realise we weren't supporting OES_element_index_uint in the ANGLE_instanced_arrays extension.
* Auto merge of #21324 - servo:webgl, r=emiliobors-servo2018-08-021-9/+18
|\ | | | | | | | | | | | | | | Properly set initial values for WebGL texture filters <!-- 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/21324) <!-- Reviewable:end -->
| * Use the DOM cache for gl.getTexParameter(gl.TEXTURE_*_FILTER)Anthony Ramine2018-08-021-9/+18
| | | | | | | | Part of #20596.
* | Auto merge of #21313 - jdm:glstuff, r=noxbors-servo2018-08-021-3/+16
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Framebuffer and renderbuffer fixes This commits address two separate panics that occur when running the framebuffer-object-attachment.html test. The test still panics due to another framebuffer completion status problem, so the overall test results don't demonstrate any improvement. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21252 - [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/21313) <!-- Reviewable:end -->
| * webgl: Emulate some renderbuffer formats in non-GLES.Josh Matthews2018-08-021-3/+16
| |
* | Always use a WebGLVertexArrayObject to handle vertex attribsAnthony Ramine2018-08-021-316/+148
|/ | | | This lets us clean up how buffers are reference-counted.
* Properly check for context ownership of objects passed to gl.is*()Anthony Ramine2018-07-311-6/+14
|
* Simplify gl.getShaderParameter() (fixes #20562)Anthony Ramine2018-07-311-12/+8
| | | | | | The expectation change is due to the shader now using its DOM-side compile status. It is actually a bug for the shader to think it actually compiled successfully, but at least it does so consistently now.
* Fix program and shader lifetime cycleAnthony Ramine2018-07-311-9/+20
|
* Cache which capabilities are enabled in the context (fixes #20534)Anthony Ramine2018-07-251-25/+75
| | | | This is needed for #20555.
* Properly check for GL object ownership (fixes #21133)Anthony Ramine2018-07-241-16/+81
|
* 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
|