blob: 62f06e81bff4758067898535423741e9670ee6f2 [file] [log] [blame]
ethannicholasb3058bd2016-07-01 08:22:01 -07001STRINGIFY(
2
3// defines built-in interfaces supported by SkiaSL fragment shaders
4
5layout(builtin=15) in vec4 gl_FragCoord;
6
ethannicholas5961bc92016-10-12 06:39:56 -07007// 9999 is a temporary value that causes us to ignore these declarations beyond
8// adding them to the symbol table. This works fine in GLSL (where they do not
9// require any further handling) but will fail in SPIR-V. We'll have a better
10// solution for this soon.
11layout(builtin=9999) vec4 gl_LastFragData[1];
12layout(builtin=9999) vec4 gl_LastFragColor;
13layout(builtin=9999) vec4 gl_LastFragColorARM;
Ben Wagnerd9fcb232016-11-04 13:07:29 -040014layout(builtin=9999) int gl_SampleMaskIn[1];
15layout(builtin=9999) out int gl_SampleMask[1];
ethannicholas5961bc92016-10-12 06:39:56 -070016layout(builtin=9999) vec4 gl_SecondaryFragColorEXT;
jvanverth9df16b52016-10-11 10:03:56 -070017
ethannicholas5961bc92016-10-12 06:39:56 -070018layout(location=0,index=0,builtin=10001) out vec4 sk_FragColor;
19
20)