Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / shared / SwizzleScalar.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 "unknownInput"
10 OpName %_entrypoint_v "_entrypoint_v"
11 OpName %main "main"
12 OpName %h4 "h4"
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 %h4 RelaxedPrecision
23 OpDecorate %32 RelaxedPrecision
24 OpDecorate %33 RelaxedPrecision
25 OpDecorate %35 RelaxedPrecision
26 OpDecorate %36 RelaxedPrecision
27 OpDecorate %37 RelaxedPrecision
28 OpDecorate %38 RelaxedPrecision
29 OpDecorate %40 RelaxedPrecision
30 OpDecorate %42 RelaxedPrecision
31 OpDecorate %43 RelaxedPrecision
32 OpDecorate %45 RelaxedPrecision
33 OpDecorate %47 RelaxedPrecision
34 OpDecorate %48 RelaxedPrecision
35 %float = OpTypeFloat 32
36 %v4float = OpTypeVector %float 4
37 %_ptr_Output_v4float = OpTypePointer Output %v4float
38 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
39 %bool = OpTypeBool
40 %_ptr_Input_bool = OpTypePointer Input %bool
41 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
42 %_UniformBuffer = OpTypeStruct %float
43 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
44 %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
45 %void = OpTypeVoid
46 %15 = OpTypeFunction %void
47 %float_0 = OpConstant %float 0
48 %v2float = OpTypeVector %float 2
49 %19 = OpConstantComposite %v2float %float_0 %float_0
50 %_ptr_Function_v2float = OpTypePointer Function %v2float
51 %23 = OpTypeFunction %v4float %_ptr_Function_v2float
52 %_ptr_Function_v4float = OpTypePointer Function %v4float
53 %_ptr_Uniform_float = OpTypePointer Uniform %float
54 %int = OpTypeInt 32 1
55 %int_0 = OpConstant %int 0
56 %float_1 = OpConstant %float 1
57 %_entrypoint_v = OpFunction %void None %15
58 %16 = OpLabel
59 %20 = OpVariable %_ptr_Function_v2float Function
60 OpStore %20 %19
61 %22 = OpFunctionCall %v4float %main %20
62 OpStore %sk_FragColor %22
63 OpReturn
64 OpFunctionEnd
65 %main = OpFunction %v4float None %23
66 %24 = OpFunctionParameter %_ptr_Function_v2float
67 %25 = OpLabel
68 %h4 = OpVariable %_ptr_Function_v4float Function
69 %28 = OpAccessChain %_ptr_Uniform_float %10 %int_0
70 %32 = OpLoad %float %28
71 %33 = OpCompositeConstruct %v4float %32 %32 %32 %32
72 OpStore %h4 %33
73 %34 = OpAccessChain %_ptr_Uniform_float %10 %int_0
74 %35 = OpLoad %float %34
75 %36 = OpCompositeConstruct %v2float %35 %35
76 %37 = OpCompositeExtract %float %36 0
77 %38 = OpCompositeExtract %float %36 1
78 %40 = OpCompositeConstruct %v4float %37 %38 %float_0 %float_1
79 OpStore %h4 %40
80 %41 = OpAccessChain %_ptr_Uniform_float %10 %int_0
81 %42 = OpLoad %float %41
82 %43 = OpCompositeConstruct %v4float %float_0 %42 %float_1 %float_0
83 OpStore %h4 %43
84 %44 = OpAccessChain %_ptr_Uniform_float %10 %int_0
85 %45 = OpLoad %float %44
86 %46 = OpAccessChain %_ptr_Uniform_float %10 %int_0
87 %47 = OpLoad %float %46
88 %48 = OpCompositeConstruct %v4float %float_0 %45 %float_0 %47
89 OpStore %h4 %48
90 OpReturnValue %48
91 OpFunctionEnd