blob: 86db5d2c24ce6108c98931b8df02a84071930ba2 [file] [log] [blame]
Ethan Nicholas79707652017-11-16 11:20:11 -05001STRINGIFY(
ethannicholasb3058bd2016-07-01 08:22:01 -07002
3// defines built-in interfaces supported by SkiaSL vertex shaders
4
Ethan Nicholas52cad152017-02-16 16:37:32 -05005out sk_PerVertex {
Ethan Nicholasbed683a2017-09-26 14:23:59 -04006 layout(builtin=0) float4 sk_Position;
7 layout(builtin=1) float sk_PointSize;
Ethan Nicholas8aa45692017-09-20 11:24:15 -04008 layout(builtin=3) float sk_ClipDistance[1];
ethannicholasb3058bd2016-07-01 08:22:01 -07009};
10
Ethan Nicholas9eded2c2018-03-22 10:10:44 -040011layout(builtin=42) in int sk_VertexID;
12layout(builtin=43) in int sk_InstanceID;
Ethan Nicholasa51740c2017-02-07 14:53:32 -050013
Ethan Nicholas79707652017-11-16 11:20:11 -050014)