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,19 +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 Image {
PrimitiveInfo info;
vec4 st_rect; // Location of the image texture in the texture atlas.
vec4 stretch_size_uvkind; // Size of the actual image.
Clip clip;
};
layout(std140) uniform Items {
Image images[WR_MAX_PRIM_ITEMS];
};
void main(void) {
Image image = images[gl_InstanceID];
ImageClip image = fetch_image_clip(gl_InstanceID);
VertexInfo vi = write_vertex(image.info);
vClipRect = vec4(image.clip.rect.xy, image.clip.rect.xy + image.clip.rect.zw);