xref: /aosp_15_r20/external/skia/src/sksl/sksl_frag.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1// defines built-in interfaces supported by SkSL fragment shaders
2
3// See "enum SpvBuiltIn_" in ./spirv.h
4layout(builtin=15) in float4 sk_FragCoord;
5layout(builtin=17) in bool sk_Clockwise;  // Similar to gl_FrontFacing, but defined in device space.
6layout(builtin=20) in uint sk_SampleMaskIn;
7layout(builtin=10020) out uint sk_SampleMask;
8
9layout(location=0,index=0,builtin=10001) out half4 sk_FragColor;
10layout(builtin=10008) in half4 sk_LastFragColor;
11layout(location=0,index=1,builtin=10012) out half4 sk_SecondaryFragColor;
12