blob: 31b911fa9d67ec16b4edb71feb432f9c8618aacd [file] [log] [blame]
// defines built-in interfaces supported by SkSL 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) in uint sk_SampleMaskIn;
layout(builtin=10020) out uint sk_SampleMask;
layout(location=0,index=0,builtin=10001) out half4 sk_FragColor;
layout(builtin=10008) in half4 sk_LastFragColor;
layout(location=0,index=1,builtin=10012) out half4 sk_SecondaryFragColor;