Update WR + shaders (switch to untyped UBO for CI).

This commit is contained in:
Glenn Watson 2016-09-01 11:44:26 +10:00
parent bbfe38e35f
commit 31d055dced
18 changed files with 375 additions and 197 deletions

View file

@ -3,18 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
struct Rectangle {
PrimitiveInfo info;
vec4 color;
Clip clip;
};
layout(std140) uniform Items {
Rectangle rects[WR_MAX_PRIM_ITEMS];
};
void main(void) {
Rectangle rect = rects[gl_InstanceID];
RectangleClip rect = fetch_rectangle_clip(gl_InstanceID);
VertexInfo vi = write_vertex(rect.info);
vClipRect = vec4(rect.clip.rect.xy, rect.clip.rect.xy + rect.clip.rect.zw);