xref: /aosp_15_r20/external/skia/tests/sksl/workarounds/MustDeclareFragmentFrontFacing.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
5               OpExecutionMode %main OriginUpperLeft
6               OpName %sk_FragColor "sk_FragColor"
7               OpName %sk_Clockwise "sk_Clockwise"
8               OpName %main "main"
9               OpDecorate %sk_FragColor RelaxedPrecision
10               OpDecorate %sk_FragColor Location 0
11               OpDecorate %sk_FragColor Index 0
12               OpDecorate %sk_Clockwise BuiltIn FrontFacing
13      %float = OpTypeFloat 32
14    %v4float = OpTypeVector %float 4
15%_ptr_Output_v4float = OpTypePointer Output %v4float
16%sk_FragColor = OpVariable %_ptr_Output_v4float Output
17       %bool = OpTypeBool
18%_ptr_Input_bool = OpTypePointer Input %bool
19%sk_Clockwise = OpVariable %_ptr_Input_bool Input
20       %void = OpTypeVoid
21         %11 = OpTypeFunction %void
22    %float_1 = OpConstant %float 1
23         %14 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
24       %main = OpFunction %void None %11
25         %12 = OpLabel
26               OpStore %sk_FragColor %14
27               OpReturn
28               OpFunctionEnd
29