Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / intrinsics / CrossNoInline.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 %_UniformBuffer "_UniformBuffer"
9 OpMemberName %_UniformBuffer 0 "ah"
10 OpMemberName %_UniformBuffer 1 "bh"
11 OpMemberName %_UniformBuffer 2 "af"
12 OpMemberName %_UniformBuffer 3 "bf"
13 OpName %cross_length_2d_hh2h2 "cross_length_2d_hh2h2"
14 OpName %cross_length_2d_ff2f2 "cross_length_2d_ff2f2"
15 OpName %main "main"
16 OpDecorate %sk_FragColor RelaxedPrecision
17 OpDecorate %sk_FragColor Location 0
18 OpDecorate %sk_FragColor Index 0
19 OpDecorate %sk_Clockwise BuiltIn FrontFacing
20 OpMemberDecorate %_UniformBuffer 0 Offset 0
21 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
22 OpMemberDecorate %_UniformBuffer 1 Offset 8
23 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
24 OpMemberDecorate %_UniformBuffer 2 Offset 16
25 OpMemberDecorate %_UniformBuffer 3 Offset 24
26 OpDecorate %_UniformBuffer Block
27 OpDecorate %12 Binding 0
28 OpDecorate %12 DescriptorSet 0
29 OpDecorate %21 RelaxedPrecision
30 OpDecorate %22 RelaxedPrecision
31 OpDecorate %23 RelaxedPrecision
32 OpDecorate %24 RelaxedPrecision
33 OpDecorate %25 RelaxedPrecision
34 OpDecorate %26 RelaxedPrecision
35 OpDecorate %27 RelaxedPrecision
36 OpDecorate %28 RelaxedPrecision
37 OpDecorate %29 RelaxedPrecision
38 OpDecorate %30 RelaxedPrecision
39 OpDecorate %31 RelaxedPrecision
40 OpDecorate %53 RelaxedPrecision
41 OpDecorate %57 RelaxedPrecision
42 %float = OpTypeFloat 32
43 %v4float = OpTypeVector %float 4
44 %_ptr_Output_v4float = OpTypePointer Output %v4float
45 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
46 %bool = OpTypeBool
47 %_ptr_Input_bool = OpTypePointer Input %bool
48 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
49 %v2float = OpTypeVector %float 2
50 %_UniformBuffer = OpTypeStruct %v2float %v2float %v2float %v2float
51 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
52 %12 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
53 %_ptr_Function_v2float = OpTypePointer Function %v2float
54 %17 = OpTypeFunction %float %_ptr_Function_v2float %_ptr_Function_v2float
55 %void = OpTypeVoid
56 %47 = OpTypeFunction %void
57 %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
58 %int = OpTypeInt 32 1
59 %int_0 = OpConstant %int 0
60 %int_1 = OpConstant %int 1
61 %_ptr_Output_float = OpTypePointer Output %float
62 %int_2 = OpConstant %int 2
63 %int_3 = OpConstant %int 3
64 %cross_length_2d_hh2h2 = OpFunction %float None %17
65 %18 = OpFunctionParameter %_ptr_Function_v2float
66 %19 = OpFunctionParameter %_ptr_Function_v2float
67 %20 = OpLabel
68 %21 = OpLoad %v2float %18
69 %22 = OpCompositeExtract %float %21 0
70 %23 = OpLoad %v2float %19
71 %24 = OpCompositeExtract %float %23 1
72 %25 = OpFMul %float %22 %24
73 %26 = OpLoad %v2float %18
74 %27 = OpCompositeExtract %float %26 1
75 %28 = OpLoad %v2float %19
76 %29 = OpCompositeExtract %float %28 0
77 %30 = OpFMul %float %27 %29
78 %31 = OpFSub %float %25 %30
79 OpReturnValue %31
80 OpFunctionEnd
81 %cross_length_2d_ff2f2 = OpFunction %float None %17
82 %32 = OpFunctionParameter %_ptr_Function_v2float
83 %33 = OpFunctionParameter %_ptr_Function_v2float
84 %34 = OpLabel
85 %35 = OpLoad %v2float %32
86 %36 = OpCompositeExtract %float %35 0
87 %37 = OpLoad %v2float %33
88 %38 = OpCompositeExtract %float %37 1
89 %39 = OpFMul %float %36 %38
90 %40 = OpLoad %v2float %32
91 %41 = OpCompositeExtract %float %40 1
92 %42 = OpLoad %v2float %33
93 %43 = OpCompositeExtract %float %42 0
94 %44 = OpFMul %float %41 %43
95 %45 = OpFSub %float %39 %44
96 OpReturnValue %45
97 OpFunctionEnd
98 %main = OpFunction %void None %47
99 %48 = OpLabel
100 %54 = OpVariable %_ptr_Function_v2float Function
101 %58 = OpVariable %_ptr_Function_v2float Function
102 %65 = OpVariable %_ptr_Function_v2float Function
103 %69 = OpVariable %_ptr_Function_v2float Function
104 %49 = OpAccessChain %_ptr_Uniform_v2float %12 %int_0
105 %53 = OpLoad %v2float %49
106 OpStore %54 %53
107 %55 = OpAccessChain %_ptr_Uniform_v2float %12 %int_1
108 %57 = OpLoad %v2float %55
109 OpStore %58 %57
110 %59 = OpFunctionCall %float %cross_length_2d_hh2h2 %54 %58
111 %60 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
112 OpStore %60 %59
113 %62 = OpAccessChain %_ptr_Uniform_v2float %12 %int_2
114 %64 = OpLoad %v2float %62
115 OpStore %65 %64
116 %66 = OpAccessChain %_ptr_Uniform_v2float %12 %int_3
117 %68 = OpLoad %v2float %66
118 OpStore %69 %68
119 %70 = OpFunctionCall %float %cross_length_2d_ff2f2 %65 %69
120 %71 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_1
121 OpStore %71 %70
122 OpReturn
123 OpFunctionEnd