Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / shared / StaticSwitchWithStaticConditionalBreak.asm.frag
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 OpName %x "x"
10 OpDecorate %sk_FragColor RelaxedPrecision
11 OpDecorate %sk_FragColor Location 0
12 OpDecorate %sk_FragColor Index 0
13 OpDecorate %sk_Clockwise BuiltIn FrontFacing
14 OpDecorate %26 RelaxedPrecision
15 %float = OpTypeFloat 32
16 %v4float = OpTypeVector %float 4
17 %_ptr_Output_v4float = OpTypePointer Output %v4float
18 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
19 %bool = OpTypeBool
20 %_ptr_Input_bool = OpTypePointer Input %bool
21 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
22 %void = OpTypeVoid
23 %11 = OpTypeFunction %void
24 %_ptr_Function_float = OpTypePointer Function %float
25 %float_0 = OpConstant %float 0
26 %int = OpTypeInt 32 1
27 %int_0 = OpConstant %int 0
28 %float_1 = OpConstant %float 1
29 %main = OpFunction %void None %11
30 %12 = OpLabel
31 %x = OpVariable %_ptr_Function_float Function
32 OpStore %x %float_0
33 OpSelectionMerge %18 None
34 OpSwitch %int_0 %18 0 %19 1 %20
35 %19 = OpLabel
36 OpStore %x %float_0
37 %22 = OpFOrdLessThan %bool %float_0 %float_1
38 OpSelectionMerge %24 None
39 OpBranchConditional %22 %23 %24
40 %23 = OpLabel
41 OpBranch %18
42 %24 = OpLabel
43 OpBranch %20
44 %20 = OpLabel
45 OpStore %x %float_1
46 OpBranch %18
47 %18 = OpLabel
48 %25 = OpLoad %float %x
49 %26 = OpCompositeConstruct %v4float %25 %25 %25 %25
50 OpStore %sk_FragColor %26
51 OpReturn
52 OpFunctionEnd