mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Update WR + shaders (switch to untyped UBO for CI).
This commit is contained in:
parent
bbfe38e35f
commit
31d055dced
18 changed files with 375 additions and 197 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue