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