ethannicholas | b3058bd | 2016-07-01 08:22:01 -0700 | [diff] [blame] | 1 | STRINGIFY( |
| 2 | |
| 3 | // defines built-in interfaces supported by SkiaSL fragment shaders |
| 4 | |
| 5 | layout(builtin=15) in vec4 gl_FragCoord; |
| 6 | |
ethannicholas | 5961bc9 | 2016-10-12 06:39:56 -0700 | [diff] [blame] | 7 | // 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. |
| 11 | layout(builtin=9999) vec4 gl_LastFragData[1]; |
| 12 | layout(builtin=9999) vec4 gl_LastFragColor; |
| 13 | layout(builtin=9999) vec4 gl_LastFragColorARM; |
Ben Wagner | d9fcb23 | 2016-11-04 13:07:29 -0400 | [diff] [blame] | 14 | layout(builtin=9999) int gl_SampleMaskIn[1]; |
| 15 | layout(builtin=9999) out int gl_SampleMask[1]; |
ethannicholas | 5961bc9 | 2016-10-12 06:39:56 -0700 | [diff] [blame] | 16 | layout(builtin=9999) vec4 gl_SecondaryFragColorEXT; |
jvanverth | 9df16b5 | 2016-10-11 10:03:56 -0700 | [diff] [blame] | 17 | |
ethannicholas | 5961bc9 | 2016-10-12 06:39:56 -0700 | [diff] [blame] | 18 | layout(location=0,index=0,builtin=10001) out vec4 sk_FragColor; |
| 19 | |
| 20 | ) |