blob: c418795e33460b8521aa9a9cd93fb3596e66bf53 [file] [log] [blame]
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 84
5; Schema: 0
6 OpCapability Shader
7 %33 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %tint_symbol_1
10 OpExecutionMode %main OriginUpperLeft
11 OpName %buf0 "buf0"
12 OpMemberName %buf0 0 "x_GLF_uniform_int_values"
13 OpName %x_6 "x_6"
14 OpName %buf1 "buf1"
15 OpMemberName %buf1 0 "x_GLF_uniform_float_values"
16 OpName %x_8 "x_8"
17 OpName %x_GLF_color "x_GLF_color"
18 OpName %tint_symbol_1 "tint_symbol_1"
19 OpName %main_1 "main_1"
20 OpName %undefined "undefined"
21 OpName %x_45 "x_45"
22 OpName %x_46_phi "x_46_phi"
23 OpName %main_out "main_out"
24 OpMemberName %main_out 0 "x_GLF_color_1"
25 OpName %tint_symbol_2 "tint_symbol_2"
26 OpName %tint_symbol "tint_symbol"
27 OpName %main "main"
28 OpDecorate %buf0 Block
29 OpMemberDecorate %buf0 0 Offset 0
30 OpDecorate %_arr_int_uint_2 ArrayStride 16
31 OpDecorate %x_6 NonWritable
32 OpDecorate %x_6 DescriptorSet 0
33 OpDecorate %x_6 Binding 0
34 OpDecorate %buf1 Block
35 OpMemberDecorate %buf1 0 Offset 0
36 OpDecorate %_arr_float_uint_1 ArrayStride 16
37 OpDecorate %x_8 NonWritable
38 OpDecorate %x_8 DescriptorSet 0
39 OpDecorate %x_8 Binding 1
40 OpDecorate %tint_symbol_1 Location 0
41 OpMemberDecorate %main_out 0 Offset 0
42 %int = OpTypeInt 32 1
43 %uint = OpTypeInt 32 0
44 %uint_2 = OpConstant %uint 2
45%_arr_int_uint_2 = OpTypeArray %int %uint_2
46 %buf0 = OpTypeStruct %_arr_int_uint_2
47%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
48 %x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
49 %float = OpTypeFloat 32
50 %uint_1 = OpConstant %uint 1
51%_arr_float_uint_1 = OpTypeArray %float %uint_1
52 %buf1 = OpTypeStruct %_arr_float_uint_1
53%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
54 %x_8 = OpVariable %_ptr_Uniform_buf1 Uniform
55 %v4float = OpTypeVector %float 4
56%_ptr_Private_v4float = OpTypePointer Private %v4float
57 %17 = OpConstantNull %v4float
58%x_GLF_color = OpVariable %_ptr_Private_v4float Private %17
59%_ptr_Output_v4float = OpTypePointer Output %v4float
60%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %17
61 %void = OpTypeVoid
62 %20 = OpTypeFunction %void
63%_ptr_Function_float = OpTypePointer Function %float
64 %26 = OpConstantNull %float
65 %bool = OpTypeBool
66%_ptr_Function_bool = OpTypePointer Function %bool
67 %30 = OpConstantNull %bool
68%float_0x1_8p_128 = OpConstant %float 0x1.8p+128
69 %uint_0 = OpConstant %uint 0
70 %int_0 = OpConstant %int 0
71%_ptr_Uniform_int = OpTypePointer Uniform %int
72 %int_1 = OpConstant %int 1
73%_ptr_Uniform_float = OpTypePointer Uniform %float
74 %main_out = OpTypeStruct %v4float
75 %72 = OpTypeFunction %void %main_out
76 %main_1 = OpFunction %void None %20
77 %23 = OpLabel
78 %undefined = OpVariable %_ptr_Function_float Function %26
79 %x_45 = OpVariable %_ptr_Function_bool Function %30
80 %x_46_phi = OpVariable %_ptr_Function_bool Function %30
81 %32 = OpExtInst %float %33 Sinh %float_0x1_8p_128
82 OpStore %undefined %32
83 %38 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
84 %39 = OpLoad %int %38
85 %41 = OpIEqual %bool %int_1 %39
86 OpStore %x_46_phi %41
87 %42 = OpLogicalNot %bool %41
88 OpSelectionMerge %43 None
89 OpBranchConditional %42 %44 %43
90 %44 = OpLabel
91 %45 = OpLoad %float %undefined
92 %47 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_0
93 %48 = OpLoad %float %47
94 %49 = OpFOrdGreaterThan %bool %45 %48
95 OpStore %x_45 %49
96 %50 = OpLoad %bool %x_45
97 OpStore %x_46_phi %50
98 OpBranch %43
99 %43 = OpLabel
100 %51 = OpLoad %bool %x_46_phi
101 OpSelectionMerge %52 None
102 OpBranchConditional %51 %53 %54
103 %53 = OpLabel
104 %55 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
105 %56 = OpLoad %int %55
106 %57 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
107 %58 = OpLoad %int %57
108 %59 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
109 %60 = OpLoad %int %59
110 %61 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
111 %62 = OpLoad %int %61
112 %63 = OpConvertSToF %float %56
113 %64 = OpConvertSToF %float %58
114 %65 = OpConvertSToF %float %60
115 %66 = OpConvertSToF %float %62
116 %67 = OpCompositeConstruct %v4float %63 %64 %65 %66
117 OpStore %x_GLF_color %67
118 OpBranch %52
119 %54 = OpLabel
120 %68 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
121 %69 = OpLoad %int %68
122 %70 = OpConvertSToF %float %69
123 %71 = OpCompositeConstruct %v4float %70 %70 %70 %70
124 OpStore %x_GLF_color %71
125 OpBranch %52
126 %52 = OpLabel
127 OpReturn
128 OpFunctionEnd
129%tint_symbol_2 = OpFunction %void None %72
130%tint_symbol = OpFunctionParameter %main_out
131 %76 = OpLabel
132 %77 = OpCompositeExtract %v4float %tint_symbol 0
133 OpStore %tint_symbol_1 %77
134 OpReturn
135 OpFunctionEnd
136 %main = OpFunction %void None %20
137 %79 = OpLabel
138 %80 = OpFunctionCall %void %main_1
139 %82 = OpLoad %v4float %x_GLF_color
140 %83 = OpCompositeConstruct %main_out %82
141 %81 = OpFunctionCall %void %tint_symbol_2 %83
142 OpReturn
143 OpFunctionEnd