Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / shared / Uniforms.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 "myHalf"
10 OpMemberName %_UniformBuffer 1 "myHalf4"
11 OpName %_entrypoint_v "_entrypoint_v"
12 OpName %main "main"
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 OpMemberDecorate %_UniformBuffer 1 Offset 16
20 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
21 OpDecorate %_UniformBuffer Block
22 OpDecorate %10 Binding 0
23 OpDecorate %10 DescriptorSet 0
24 OpDecorate %30 RelaxedPrecision
25 OpDecorate %34 RelaxedPrecision
26 OpDecorate %35 RelaxedPrecision
27 %float = OpTypeFloat 32
28 %v4float = OpTypeVector %float 4
29 %_ptr_Output_v4float = OpTypePointer Output %v4float
30 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
31 %bool = OpTypeBool
32 %_ptr_Input_bool = OpTypePointer Input %bool
33 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
34 %_UniformBuffer = OpTypeStruct %float %v4float
35 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
36 %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
37 %void = OpTypeVoid
38 %15 = OpTypeFunction %void
39 %float_0 = OpConstant %float 0
40 %v2float = OpTypeVector %float 2
41 %19 = OpConstantComposite %v2float %float_0 %float_0
42 %_ptr_Function_v2float = OpTypePointer Function %v2float
43 %23 = OpTypeFunction %v4float %_ptr_Function_v2float
44 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
45 %int = OpTypeInt 32 1
46 %int_1 = OpConstant %int 1
47 %_ptr_Uniform_float = OpTypePointer Uniform %float
48 %int_0 = OpConstant %int 0
49 %_entrypoint_v = OpFunction %void None %15
50 %16 = OpLabel
51 %20 = OpVariable %_ptr_Function_v2float Function
52 OpStore %20 %19
53 %22 = OpFunctionCall %v4float %main %20
54 OpStore %sk_FragColor %22
55 OpReturn
56 OpFunctionEnd
57 %main = OpFunction %v4float None %23
58 %24 = OpFunctionParameter %_ptr_Function_v2float
59 %25 = OpLabel
60 %26 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
61 %30 = OpLoad %v4float %26
62 %31 = OpAccessChain %_ptr_Uniform_float %10 %int_0
63 %34 = OpLoad %float %31
64 %35 = OpVectorTimesScalar %v4float %30 %34
65 OpReturnValue %35
66 OpFunctionEnd