Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / intrinsics / Pack.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 "a"
10 OpMemberName %_UniformBuffer 1 "b"
11 OpName %main "main"
12 OpDecorate %sk_FragColor RelaxedPrecision
13 OpDecorate %sk_FragColor Location 0
14 OpDecorate %sk_FragColor Index 0
15 OpDecorate %sk_Clockwise BuiltIn FrontFacing
16 OpMemberDecorate %_UniformBuffer 0 Offset 0
17 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
18 OpMemberDecorate %_UniformBuffer 1 Offset 16
19 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
20 OpDecorate %_UniformBuffer Block
21 OpDecorate %10 Binding 0
22 OpDecorate %10 DescriptorSet 0
23 OpDecorate %22 RelaxedPrecision
24 OpDecorate %24 RelaxedPrecision
25 OpDecorate %29 RelaxedPrecision
26 OpDecorate %30 RelaxedPrecision
27 OpDecorate %34 RelaxedPrecision
28 OpDecorate %35 RelaxedPrecision
29 OpDecorate %41 RelaxedPrecision
30 OpDecorate %42 RelaxedPrecision
31 OpDecorate %46 RelaxedPrecision
32 OpDecorate %47 RelaxedPrecision
33 %float = OpTypeFloat 32
34 %v4float = OpTypeVector %float 4
35 %_ptr_Output_v4float = OpTypePointer Output %v4float
36 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
37 %bool = OpTypeBool
38 %_ptr_Input_bool = OpTypePointer Input %bool
39 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
40 %v2float = OpTypeVector %float 2
41 %_UniformBuffer = OpTypeStruct %v2float %v4float
42 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
43 %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
44 %void = OpTypeVoid
45 %15 = OpTypeFunction %void
46 %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
47 %int = OpTypeInt 32 1
48 %int_0 = OpConstant %int 0
49 %uint = OpTypeInt 32 0
50 %_ptr_Output_float = OpTypePointer Output %float
51 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
52 %int_1 = OpConstant %int 1
53 %main = OpFunction %void None %15
54 %16 = OpLabel
55 %18 = OpAccessChain %_ptr_Uniform_v2float %10 %int_0
56 %22 = OpLoad %v2float %18
57 %17 = OpExtInst %uint %1 PackHalf2x16 %22
58 %24 = OpConvertUToF %float %17
59 %25 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
60 OpStore %25 %24
61 %28 = OpAccessChain %_ptr_Uniform_v2float %10 %int_0
62 %29 = OpLoad %v2float %28
63 %27 = OpExtInst %uint %1 PackUnorm2x16 %29
64 %30 = OpConvertUToF %float %27
65 %31 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
66 OpStore %31 %30
67 %33 = OpAccessChain %_ptr_Uniform_v2float %10 %int_0
68 %34 = OpLoad %v2float %33
69 %32 = OpExtInst %uint %1 PackSnorm2x16 %34
70 %35 = OpConvertUToF %float %32
71 %36 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
72 OpStore %36 %35
73 %38 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
74 %41 = OpLoad %v4float %38
75 %37 = OpExtInst %uint %1 PackUnorm4x8 %41
76 %42 = OpConvertUToF %float %37
77 %43 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
78 OpStore %43 %42
79 %45 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
80 %46 = OpLoad %v4float %45
81 %44 = OpExtInst %uint %1 PackSnorm4x8 %46
82 %47 = OpConvertUToF %float %44
83 %48 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
84 OpStore %48 %47
85 OpReturn
86 OpFunctionEnd