blob: 8ac79ea42562ae619cdd457b3ea1922839e60f01 [file] [log] [blame]
James Pricebb0496e2021-06-03 09:38:34 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
James Price11c6fcd2021-08-05 17:34:19 +00004; Bound: 50
James Pricebb0496e2021-06-03 09:38:34 +00005; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
James Price11c6fcd2021-08-05 17:34:19 +00008 OpEntryPoint Fragment %main0 "main0" %value
9 OpEntryPoint Fragment %main1 "main1" %value_1
10 OpEntryPoint Fragment %main2 "main2" %value_2
11 OpEntryPoint Fragment %main3 "main3" %value_3
James Pricebb0496e2021-06-03 09:38:34 +000012 OpExecutionMode %main0 OriginUpperLeft
13 OpExecutionMode %main1 OriginUpperLeft
14 OpExecutionMode %main2 OriginUpperLeft
15 OpExecutionMode %main3 OriginUpperLeft
James Price11c6fcd2021-08-05 17:34:19 +000016 OpName %value "value"
17 OpName %value_1 "value_1"
18 OpName %value_2 "value_2"
19 OpName %value_3 "value_3"
20 OpName %main0_inner "main0_inner"
James Pricebb0496e2021-06-03 09:38:34 +000021 OpName %main0 "main0"
James Price11c6fcd2021-08-05 17:34:19 +000022 OpName %main1_inner "main1_inner"
James Pricebb0496e2021-06-03 09:38:34 +000023 OpName %main1 "main1"
James Price11c6fcd2021-08-05 17:34:19 +000024 OpName %main2_inner "main2_inner"
James Pricebb0496e2021-06-03 09:38:34 +000025 OpName %main2 "main2"
James Price11c6fcd2021-08-05 17:34:19 +000026 OpName %main3_inner "main3_inner"
James Pricebb0496e2021-06-03 09:38:34 +000027 OpName %main3 "main3"
James Price11c6fcd2021-08-05 17:34:19 +000028 OpDecorate %value Location 0
29 OpDecorate %value_1 Location 1
30 OpDecorate %value_2 Location 2
31 OpDecorate %value_3 Location 3
James Pricebb0496e2021-06-03 09:38:34 +000032 %int = OpTypeInt 32 1
33%_ptr_Output_int = OpTypePointer Output %int
34 %4 = OpConstantNull %int
James Price11c6fcd2021-08-05 17:34:19 +000035 %value = OpVariable %_ptr_Output_int Output %4
James Pricebb0496e2021-06-03 09:38:34 +000036 %uint = OpTypeInt 32 0
37%_ptr_Output_uint = OpTypePointer Output %uint
38 %8 = OpConstantNull %uint
James Price11c6fcd2021-08-05 17:34:19 +000039 %value_1 = OpVariable %_ptr_Output_uint Output %8
James Pricebb0496e2021-06-03 09:38:34 +000040 %float = OpTypeFloat 32
41%_ptr_Output_float = OpTypePointer Output %float
42 %12 = OpConstantNull %float
James Price11c6fcd2021-08-05 17:34:19 +000043 %value_2 = OpVariable %_ptr_Output_float Output %12
James Pricebb0496e2021-06-03 09:38:34 +000044 %v4float = OpTypeVector %float 4
45%_ptr_Output_v4float = OpTypePointer Output %v4float
46 %16 = OpConstantNull %v4float
James Price11c6fcd2021-08-05 17:34:19 +000047 %value_3 = OpVariable %_ptr_Output_v4float Output %16
48 %17 = OpTypeFunction %int
James Pricebb0496e2021-06-03 09:38:34 +000049 %int_1 = OpConstant %int 1
James Price11c6fcd2021-08-05 17:34:19 +000050 %void = OpTypeVoid
51 %21 = OpTypeFunction %void
52 %26 = OpTypeFunction %uint
James Pricebb0496e2021-06-03 09:38:34 +000053 %uint_1 = OpConstant %uint 1
James Price11c6fcd2021-08-05 17:34:19 +000054 %33 = OpTypeFunction %float
James Pricebb0496e2021-06-03 09:38:34 +000055 %float_1 = OpConstant %float 1
James Price11c6fcd2021-08-05 17:34:19 +000056 %40 = OpTypeFunction %v4float
James Pricebb0496e2021-06-03 09:38:34 +000057 %float_2 = OpConstant %float 2
58 %float_3 = OpConstant %float 3
59 %float_4 = OpConstant %float 4
James Price11c6fcd2021-08-05 17:34:19 +000060 %46 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
61%main0_inner = OpFunction %int None %17
62 %19 = OpLabel
63 OpReturnValue %int_1
James Pricebb0496e2021-06-03 09:38:34 +000064 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000065 %main0 = OpFunction %void None %21
James Pricebb0496e2021-06-03 09:38:34 +000066 %24 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000067 %25 = OpFunctionCall %int %main0_inner
68 OpStore %value %25
James Pricebb0496e2021-06-03 09:38:34 +000069 OpReturn
70 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000071%main1_inner = OpFunction %uint None %26
72 %28 = OpLabel
73 OpReturnValue %uint_1
74 OpFunctionEnd
75 %main1 = OpFunction %void None %21
76 %31 = OpLabel
77 %32 = OpFunctionCall %uint %main1_inner
78 OpStore %value_1 %32
James Pricebb0496e2021-06-03 09:38:34 +000079 OpReturn
80 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000081%main2_inner = OpFunction %float None %33
82 %35 = OpLabel
83 OpReturnValue %float_1
James Pricebb0496e2021-06-03 09:38:34 +000084 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000085 %main2 = OpFunction %void None %21
James Pricebb0496e2021-06-03 09:38:34 +000086 %38 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000087 %39 = OpFunctionCall %float %main2_inner
88 OpStore %value_2 %39
James Pricebb0496e2021-06-03 09:38:34 +000089 OpReturn
90 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000091%main3_inner = OpFunction %v4float None %40
92 %42 = OpLabel
93 OpReturnValue %46
James Pricebb0496e2021-06-03 09:38:34 +000094 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000095 %main3 = OpFunction %void None %21
James Pricebb0496e2021-06-03 09:38:34 +000096 %48 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000097 %49 = OpFunctionCall %v4float %main3_inner
98 OpStore %value_3 %49
James Pricebb0496e2021-06-03 09:38:34 +000099 OpReturn
100 OpFunctionEnd