gecko-dev/gfx/wr/swgl
Dzmitry Malyshau 1be0f732d4 Bug 1640960 - Remove aPosition from all shaders, except debug ones r=gw,jrmuizel
we only draw quads, and for quads we have a fixed vertex buffer with positions.
If we get stop using instancing, we'll no longer have the luxury of 4 vertices there.
Given that they are trivial to compute, it seems simpler to just do that in the shader today.
So this PR is a required step on the way to instance-less rendering.

It appears that we are hitting a driver bug with Intel on macOS, where scissored clears don't work properly if we render without per-vertex attributes.
It doesn't make a ton of sense, but switching to quad clears appears to fix it for me. Added the corresponding entry to the wiki - https://github.com/servo/webrender/wiki/Driver-issues#bug-1652763---glitches-on-macos-intel-with-clears

Differential Revision: https://phabricator.services.mozilla.com/D83391
2020-07-23 05:49:14 +00:00
..
src Bug 1640960 - Remove aPosition from all shaders, except debug ones r=gw,jrmuizel 2020-07-23 05:49:14 +00:00
Cargo.toml Bug 1646741 - Update gleam to 0.12. r=kvark 2020-06-18 18:11:13 +00:00
README.md Bug 1612941 - import glsl-to-cxx and swgl into Gecko tree. r=jrmuizel 2020-03-13 18:24:35 +00:00
build.rs Bug 1632025 - fix SWGL shader key parsing. r=jimb 2020-04-22 03:39:21 +00:00

README.md

swgl

Software OpenGL implementation for WebRender