blob: b0d3b37095214050df26d32b13c7d4c0651545d9 [file] [log] [blame]
dan sinclair1b77b6c2024-08-06 15:47:05 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 1
4; Bound: 56
5; Schema: 0
6 OpCapability Shader
7 %22 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %fragment_main "fragment_main"
10 OpEntryPoint GLCompute %compute_main "compute_main"
11 OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output
12 OpExecutionMode %fragment_main OriginUpperLeft
13 OpExecutionMode %compute_main LocalSize 1 1 1
14 OpMemberName %tint_symbol_1 0 "tint_symbol"
15 OpName %tint_symbol_1 "tint_symbol_1"
16 OpName %vertex_main_position_Output "vertex_main_position_Output"
17 OpName %vertex_main_loc0_Output "vertex_main_loc0_Output"
18 OpName %vertex_main___point_size_Output "vertex_main___point_size_Output"
19 OpName %max_a93419 "max_a93419"
20 OpName %arg_0 "arg_0"
21 OpName %arg_1 "arg_1"
22 OpName %res "res"
23 OpName %fragment_main "fragment_main"
24 OpName %compute_main "compute_main"
25 OpName %vertex_main_inner "vertex_main_inner"
26 OpMemberName %VertexOutput 0 "pos"
27 OpMemberName %VertexOutput 1 "prevent_dce"
28 OpName %VertexOutput "VertexOutput"
29 OpName %out "out"
30 OpName %vertex_main "vertex_main"
31 OpMemberDecorate %tint_symbol_1 0 Offset 0
32 OpDecorate %tint_symbol_1 Block
33 OpDecorate %1 DescriptorSet 0
34 OpDecorate %1 Binding 0
35 OpDecorate %vertex_main_position_Output BuiltIn Position
36 OpDecorate %vertex_main_loc0_Output Location 0
37 OpDecorate %vertex_main_loc0_Output Flat
38 OpDecorate %vertex_main___point_size_Output BuiltIn PointSize
39 OpMemberDecorate %VertexOutput 0 Offset 0
40 OpMemberDecorate %VertexOutput 1 Offset 16
41 %float = OpTypeFloat 32
42 %v4float = OpTypeVector %float 4
43%tint_symbol_1 = OpTypeStruct %v4float
44%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
45 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
46%_ptr_Output_v4float = OpTypePointer Output %v4float
47%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
48%vertex_main_loc0_Output = OpVariable %_ptr_Output_v4float Output
49%_ptr_Output_float = OpTypePointer Output %float
50%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
51 %12 = OpTypeFunction %v4float
52%_ptr_Function_v4float = OpTypePointer Function %v4float
53 %float_1 = OpConstant %float 1
54 %16 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
55 %void = OpTypeVoid
56 %27 = OpTypeFunction %void
57%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
58 %uint = OpTypeInt 32 0
59 %uint_0 = OpConstant %uint 0
60%VertexOutput = OpTypeStruct %v4float %v4float
61 %40 = OpTypeFunction %VertexOutput
62%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
63 %44 = OpConstantNull %VertexOutput
64 %46 = OpConstantNull %v4float
65 %uint_1 = OpConstant %uint 1
66 %max_a93419 = OpFunction %v4float None %12
67 %13 = OpLabel
68 %arg_0 = OpVariable %_ptr_Function_v4float Function
69 %arg_1 = OpVariable %_ptr_Function_v4float Function
70 %res = OpVariable %_ptr_Function_v4float Function
71 OpStore %arg_0 %16
72 OpStore %arg_1 %16
73 %19 = OpLoad %v4float %arg_0
74 %20 = OpLoad %v4float %arg_1
75 %21 = OpExtInst %v4float %22 FMax %19 %20
76 OpStore %res %21
77 %24 = OpLoad %v4float %res
78 OpReturnValue %24
79 OpFunctionEnd
80%fragment_main = OpFunction %void None %27
81 %28 = OpLabel
82 %29 = OpFunctionCall %v4float %max_a93419
83 %30 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0
84 OpStore %30 %29
85 OpReturn
86 OpFunctionEnd
87%compute_main = OpFunction %void None %27
88 %35 = OpLabel
89 %36 = OpFunctionCall %v4float %max_a93419
90 %37 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0
91 OpStore %37 %36
92 OpReturn
93 OpFunctionEnd
94%vertex_main_inner = OpFunction %VertexOutput None %40
95 %41 = OpLabel
96 %out = OpVariable %_ptr_Function_VertexOutput Function %44
97 %45 = OpAccessChain %_ptr_Function_v4float %out %uint_0
98 OpStore %45 %46
99 %47 = OpAccessChain %_ptr_Function_v4float %out %uint_1
100 %49 = OpFunctionCall %v4float %max_a93419
101 OpStore %47 %49
102 %50 = OpLoad %VertexOutput %out
103 OpReturnValue %50
104 OpFunctionEnd
105%vertex_main = OpFunction %void None %27
106 %52 = OpLabel
107 %53 = OpFunctionCall %VertexOutput %vertex_main_inner
108 %54 = OpCompositeExtract %v4float %53 0
109 OpStore %vertex_main_position_Output %54
110 %55 = OpCompositeExtract %v4float %53 1
111 OpStore %vertex_main_loc0_Output %55
112 OpStore %vertex_main___point_size_Output %float_1
113 OpReturn
114 OpFunctionEnd