Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / shared / EmptyBlocksES3.asm.frag
1 OpCapability Shader
2 %1 = OpExtInstImport "GLSL.std.450"
3 OpMemoryModel Logical GLSL450
4 OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5 OpExecutionMode %_entrypoint_v OriginUpperLeft
6 OpName %sk_FragColor "sk_FragColor"
7 OpName %sk_Clockwise "sk_Clockwise"
8 OpName %_UniformBuffer "_UniformBuffer"
9 OpMemberName %_UniformBuffer 0 "colorWhite"
10 OpName %_entrypoint_v "_entrypoint_v"
11 OpName %main "main"
12 OpName %color "color"
13 OpDecorate %sk_FragColor RelaxedPrecision
14 OpDecorate %sk_FragColor Location 0
15 OpDecorate %sk_FragColor Index 0
16 OpDecorate %sk_Clockwise BuiltIn FrontFacing
17 OpMemberDecorate %_UniformBuffer 0 Offset 0
18 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
19 OpDecorate %_UniformBuffer Block
20 OpDecorate %10 Binding 0
21 OpDecorate %10 DescriptorSet 0
22 OpDecorate %color RelaxedPrecision
23 OpDecorate %33 RelaxedPrecision
24 OpDecorate %34 RelaxedPrecision
25 OpDecorate %43 RelaxedPrecision
26 OpDecorate %44 RelaxedPrecision
27 OpDecorate %58 RelaxedPrecision
28 OpDecorate %59 RelaxedPrecision
29 OpDecorate %67 RelaxedPrecision
30 OpDecorate %68 RelaxedPrecision
31 OpDecorate %70 RelaxedPrecision
32 %float = OpTypeFloat 32
33 %v4float = OpTypeVector %float 4
34 %_ptr_Output_v4float = OpTypePointer Output %v4float
35 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
36 %bool = OpTypeBool
37 %_ptr_Input_bool = OpTypePointer Input %bool
38 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
39 %_UniformBuffer = OpTypeStruct %v4float
40 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
41 %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
42 %void = OpTypeVoid
43 %15 = OpTypeFunction %void
44 %float_0 = OpConstant %float 0
45 %v2float = OpTypeVector %float 2
46 %19 = OpConstantComposite %v2float %float_0 %float_0
47 %_ptr_Function_v2float = OpTypePointer Function %v2float
48 %23 = OpTypeFunction %v4float %_ptr_Function_v2float
49 %_ptr_Function_v4float = OpTypePointer Function %v4float
50 %28 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
51 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
52 %int = OpTypeInt 32 1
53 %int_0 = OpConstant %int 0
54 %float_1 = OpConstant %float 1
55 %_ptr_Function_float = OpTypePointer Function %float
56 %int_1 = OpConstant %int 1
57 %float_2 = OpConstant %float 2
58 %int_3 = OpConstant %int 3
59 %_entrypoint_v = OpFunction %void None %15
60 %16 = OpLabel
61 %20 = OpVariable %_ptr_Function_v2float Function
62 OpStore %20 %19
63 %22 = OpFunctionCall %v4float %main %20
64 OpStore %sk_FragColor %22
65 OpReturn
66 OpFunctionEnd
67 %main = OpFunction %v4float None %23
68 %24 = OpFunctionParameter %_ptr_Function_v2float
69 %25 = OpLabel
70 %color = OpVariable %_ptr_Function_v4float Function
71 OpStore %color %28
72 %29 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
73 %33 = OpLoad %v4float %29
74 %34 = OpCompositeExtract %float %33 0
75 %36 = OpFOrdEqual %bool %34 %float_1
76 OpSelectionMerge %38 None
77 OpBranchConditional %36 %37 %38
78 %37 = OpLabel
79 %39 = OpAccessChain %_ptr_Function_float %color %int_1
80 OpStore %39 %float_1
81 OpBranch %38
82 %38 = OpLabel
83 %42 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
84 %43 = OpLoad %v4float %42
85 %44 = OpCompositeExtract %float %43 0
86 %46 = OpFOrdEqual %bool %44 %float_2
87 OpSelectionMerge %49 None
88 OpBranchConditional %46 %47 %48
89 %47 = OpLabel
90 OpBranch %49
91 %48 = OpLabel
92 %50 = OpAccessChain %_ptr_Function_float %color %int_3
93 OpStore %50 %float_1
94 OpBranch %49
95 %49 = OpLabel
96 OpBranch %52
97 %52 = OpLabel
98 OpLoopMerge %56 %55 None
99 OpBranch %53
100 %53 = OpLabel
101 %57 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
102 %58 = OpLoad %v4float %57
103 %59 = OpCompositeExtract %float %58 0
104 %60 = OpFOrdEqual %bool %59 %float_2
105 OpBranchConditional %60 %54 %56
106 %54 = OpLabel
107 OpBranch %55
108 %55 = OpLabel
109 OpBranch %52
110 %56 = OpLabel
111 OpBranch %61
112 %61 = OpLabel
113 OpLoopMerge %65 %64 None
114 OpBranch %62
115 %62 = OpLabel
116 OpBranch %63
117 %63 = OpLabel
118 OpBranch %64
119 %64 = OpLabel
120 %66 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
121 %67 = OpLoad %v4float %66
122 %68 = OpCompositeExtract %float %67 0
123 %69 = OpFOrdEqual %bool %68 %float_2
124 OpBranchConditional %69 %61 %65
125 %65 = OpLabel
126 %70 = OpLoad %v4float %color
127 OpReturnValue %70
128 OpFunctionEnd