blob: 164fdf010a14ecbf0478259ef49f90f49980de2d [file] [log] [blame]
James Pricebb0496e2021-06-03 09:38:34 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 49
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Fragment %main "main" %tint_symbol_1 %tint_symbol_2 %tint_symbol_3 %tint_symbol_4 %tint_symbol_5 %tint_symbol_6
9 OpExecutionMode %main OriginUpperLeft
10 OpExecutionMode %main DepthReplacing
11 OpName %tint_symbol_1 "tint_symbol_1"
12 OpName %tint_symbol_2 "tint_symbol_2"
13 OpName %tint_symbol_3 "tint_symbol_3"
14 OpName %tint_symbol_4 "tint_symbol_4"
15 OpName %tint_symbol_5 "tint_symbol_5"
16 OpName %tint_symbol_6 "tint_symbol_6"
17 OpName %FragmentOutputs "FragmentOutputs"
18 OpMemberName %FragmentOutputs 0 "loc0"
19 OpMemberName %FragmentOutputs 1 "frag_depth"
20 OpMemberName %FragmentOutputs 2 "loc1"
21 OpMemberName %FragmentOutputs 3 "loc2"
22 OpMemberName %FragmentOutputs 4 "sample_mask"
23 OpMemberName %FragmentOutputs 5 "loc3"
24 OpName %tint_symbol_7 "tint_symbol_7"
25 OpName %tint_symbol "tint_symbol"
26 OpName %main "main"
27 OpDecorate %tint_symbol_1 Location 0
28 OpDecorate %tint_symbol_2 BuiltIn FragDepth
29 OpDecorate %tint_symbol_3 Location 1
30 OpDecorate %tint_symbol_4 Location 2
31 OpDecorate %_arr_uint_uint_1 ArrayStride 4
32 OpDecorate %tint_symbol_5 BuiltIn SampleMask
33 OpDecorate %tint_symbol_6 Location 3
34 OpMemberDecorate %FragmentOutputs 0 Offset 0
35 OpMemberDecorate %FragmentOutputs 1 Offset 4
36 OpMemberDecorate %FragmentOutputs 2 Offset 8
37 OpMemberDecorate %FragmentOutputs 3 Offset 12
38 OpMemberDecorate %FragmentOutputs 4 Offset 16
39 OpMemberDecorate %FragmentOutputs 5 Offset 32
40 %int = OpTypeInt 32 1
41%_ptr_Output_int = OpTypePointer Output %int
42 %4 = OpConstantNull %int
43%tint_symbol_1 = OpVariable %_ptr_Output_int Output %4
44 %float = OpTypeFloat 32
45%_ptr_Output_float = OpTypePointer Output %float
46 %8 = OpConstantNull %float
47%tint_symbol_2 = OpVariable %_ptr_Output_float Output %8
48 %uint = OpTypeInt 32 0
49%_ptr_Output_uint = OpTypePointer Output %uint
50 %12 = OpConstantNull %uint
51%tint_symbol_3 = OpVariable %_ptr_Output_uint Output %12
52%tint_symbol_4 = OpVariable %_ptr_Output_float Output %8
53 %uint_1 = OpConstant %uint 1
54%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
55%_ptr_Output__arr_uint_uint_1 = OpTypePointer Output %_arr_uint_uint_1
56 %18 = OpConstantNull %_arr_uint_uint_1
57%tint_symbol_5 = OpVariable %_ptr_Output__arr_uint_uint_1 Output %18
58 %v4float = OpTypeVector %float 4
59%_ptr_Output_v4float = OpTypePointer Output %v4float
60 %22 = OpConstantNull %v4float
61%tint_symbol_6 = OpVariable %_ptr_Output_v4float Output %22
62 %void = OpTypeVoid
63%FragmentOutputs = OpTypeStruct %int %float %uint %float %uint %v4float
64 %23 = OpTypeFunction %void %FragmentOutputs
65 %int_0 = OpConstant %int 0
66 %37 = OpTypeFunction %void
67 %int_1 = OpConstant %int 1
68 %float_2 = OpConstant %float 2
69 %float_1 = OpConstant %float 1
70 %uint_2 = OpConstant %uint 2
71 %float_3 = OpConstant %float 3
72 %float_4 = OpConstant %float 4
73 %47 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
74 %48 = OpConstantComposite %FragmentOutputs %int_1 %float_2 %uint_1 %float_1 %uint_2 %47
75%tint_symbol_7 = OpFunction %void None %23
76%tint_symbol = OpFunctionParameter %FragmentOutputs
77 %28 = OpLabel
78 %29 = OpCompositeExtract %int %tint_symbol 0
79 OpStore %tint_symbol_1 %29
80 %30 = OpCompositeExtract %float %tint_symbol 1
81 OpStore %tint_symbol_2 %30
82 %31 = OpCompositeExtract %uint %tint_symbol 2
83 OpStore %tint_symbol_3 %31
84 %32 = OpCompositeExtract %float %tint_symbol 3
85 OpStore %tint_symbol_4 %32
86 %34 = OpAccessChain %_ptr_Output_uint %tint_symbol_5 %int_0
87 %35 = OpCompositeExtract %uint %tint_symbol 4
88 OpStore %34 %35
89 %36 = OpCompositeExtract %v4float %tint_symbol 5
90 OpStore %tint_symbol_6 %36
91 OpReturn
92 OpFunctionEnd
93 %main = OpFunction %void None %37
94 %39 = OpLabel
95 %40 = OpFunctionCall %void %tint_symbol_7 %48
96 OpReturn
97 OpFunctionEnd