blob: 9540e44d7afbe9550de613b1803a3e2e07c339fb [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: 38
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Fragment %fragment_main "fragment_main"
9 OpEntryPoint GLCompute %compute_main "compute_main"
10 OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main___point_size_Output
11 OpExecutionMode %fragment_main OriginUpperLeft
12 OpExecutionMode %compute_main LocalSize 1 1 1
13 OpName %vertex_main_position_Output "vertex_main_position_Output"
14 OpName %vertex_main___point_size_Output "vertex_main___point_size_Output"
15 OpName %mix_30de36 "mix_30de36"
16 OpName %res "res"
17 OpName %fragment_main "fragment_main"
18 OpName %compute_main "compute_main"
19 OpName %vertex_main_inner "vertex_main_inner"
20 OpMemberName %VertexOutput 0 "pos"
21 OpName %VertexOutput "VertexOutput"
22 OpName %out "out"
23 OpName %vertex_main "vertex_main"
24 OpDecorate %vertex_main_position_Output BuiltIn Position
25 OpDecorate %vertex_main___point_size_Output BuiltIn PointSize
26 OpMemberDecorate %VertexOutput 0 Offset 0
27 %float = OpTypeFloat 32
28 %v4float = OpTypeVector %float 4
29%_ptr_Output_v4float = OpTypePointer Output %v4float
30%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
31%_ptr_Output_float = OpTypePointer Output %float
32%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
33 %void = OpTypeVoid
34 %9 = OpTypeFunction %void
35%_ptr_Function_float = OpTypePointer Function %float
36 %float_1 = OpConstant %float 1
37%VertexOutput = OpTypeStruct %v4float
38 %22 = OpTypeFunction %VertexOutput
39%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
40 %26 = OpConstantNull %VertexOutput
41%_ptr_Function_v4float = OpTypePointer Function %v4float
42 %uint = OpTypeInt 32 0
43 %uint_0 = OpConstant %uint 0
44 %31 = OpConstantNull %v4float
45 %mix_30de36 = OpFunction %void None %9
46 %10 = OpLabel
47 %res = OpVariable %_ptr_Function_float Function
48 OpStore %res %float_1
49 OpReturn
50 OpFunctionEnd
51%fragment_main = OpFunction %void None %9
52 %15 = OpLabel
53 %16 = OpFunctionCall %void %mix_30de36
54 OpReturn
55 OpFunctionEnd
56%compute_main = OpFunction %void None %9
57 %18 = OpLabel
58 %19 = OpFunctionCall %void %mix_30de36
59 OpReturn
60 OpFunctionEnd
61%vertex_main_inner = OpFunction %VertexOutput None %22
62 %23 = OpLabel
63 %out = OpVariable %_ptr_Function_VertexOutput Function %26
64 %27 = OpAccessChain %_ptr_Function_v4float %out %uint_0
65 OpStore %27 %31
66 %32 = OpFunctionCall %void %mix_30de36
67 %33 = OpLoad %VertexOutput %out
68 OpReturnValue %33
69 OpFunctionEnd
70%vertex_main = OpFunction %void None %9
71 %35 = OpLabel
72 %36 = OpFunctionCall %VertexOutput %vertex_main_inner
73 %37 = OpCompositeExtract %v4float %36 0
74 OpStore %vertex_main_position_Output %37
75 OpStore %vertex_main___point_size_Output %float_1
76 OpReturn
77 OpFunctionEnd