blob: 8dc5200f359eb1d9e8193bfc5d213fcf8893858f [file] [log] [blame]
// defines built-in interfaces supported by SkiaSL fragment shaders
// See "enum SpvBuiltIn_" in ./spirv.h
layout(builtin=15) in float4 sk_FragCoord;
layout(builtin=17) in bool sk_Clockwise; // Similar to gl_FrontFacing, but defined in device space.
layout(builtin=20) out int sk_SampleMask[1];
// 9999 is a sentinel value that causes us to ignore these declarations, beyond adding them to the
// symbol table.
layout(builtin=9999) out half4 gl_SecondaryFragColorEXT;
layout(location=0,index=0,builtin=10001) out half4 sk_FragColor;
layout(builtin=10008) half4 sk_LastFragColor;
layout(builtin=10011) half sk_Width;
layout(builtin=10012) half sk_Height;