Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / intrinsics / Unpack.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 OpName %main "main"
11 OpDecorate %sk_FragColor RelaxedPrecision
12 OpDecorate %sk_FragColor Location 0
13 OpDecorate %sk_FragColor Index 0
14 OpDecorate %sk_Clockwise BuiltIn FrontFacing
15 OpMemberDecorate %_UniformBuffer 0 Offset 0
16 OpDecorate %_UniformBuffer Block
17 OpDecorate %10 Binding 0
18 OpDecorate %10 DescriptorSet 0
19 OpDecorate %24 RelaxedPrecision
20 OpDecorate %25 RelaxedPrecision
21 OpDecorate %29 RelaxedPrecision
22 OpDecorate %30 RelaxedPrecision
23 OpDecorate %34 RelaxedPrecision
24 OpDecorate %35 RelaxedPrecision
25 %float = OpTypeFloat 32
26 %v4float = OpTypeVector %float 4
27 %_ptr_Output_v4float = OpTypePointer Output %v4float
28 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
29 %bool = OpTypeBool
30 %_ptr_Input_bool = OpTypePointer Input %bool
31 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
32 %uint = OpTypeInt 32 0
33 %_UniformBuffer = OpTypeStruct %uint
34 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
35 %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
36 %void = OpTypeVoid
37 %15 = OpTypeFunction %void
38 %_ptr_Uniform_uint = OpTypePointer Uniform %uint
39 %int = OpTypeInt 32 1
40 %int_0 = OpConstant %int 0
41 %v2float = OpTypeVector %float 2
42 %main = OpFunction %void None %15
43 %16 = OpLabel
44 %18 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
45 %22 = OpLoad %uint %18
46 %17 = OpExtInst %v2float %1 UnpackHalf2x16 %22
47 %24 = OpLoad %v4float %sk_FragColor
48 %25 = OpVectorShuffle %v4float %24 %17 4 5 2 3
49 OpStore %sk_FragColor %25
50 %27 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
51 %28 = OpLoad %uint %27
52 %26 = OpExtInst %v2float %1 UnpackUnorm2x16 %28
53 %29 = OpLoad %v4float %sk_FragColor
54 %30 = OpVectorShuffle %v4float %29 %26 4 5 2 3
55 OpStore %sk_FragColor %30
56 %32 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
57 %33 = OpLoad %uint %32
58 %31 = OpExtInst %v2float %1 UnpackSnorm2x16 %33
59 %34 = OpLoad %v4float %sk_FragColor
60 %35 = OpVectorShuffle %v4float %34 %31 4 5 2 3
61 OpStore %sk_FragColor %35
62 %37 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
63 %38 = OpLoad %uint %37
64 %36 = OpExtInst %v4float %1 UnpackUnorm4x8 %38
65 OpStore %sk_FragColor %36
66 %40 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
67 %41 = OpLoad %uint %40
68 %39 = OpExtInst %v4float %1 UnpackSnorm4x8 %41
69 OpStore %sk_FragColor %39
70 OpReturn
71 OpFunctionEnd