blob: 7079ad1ee7638812c148538a5265056cc2f6b3a2 [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: 41
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 %normalize_584e47 "normalize_584e47"
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 %v2float = OpTypeVector %float 2
36%_ptr_Function_v2float = OpTypePointer Function %v2float
37%float_0_707106769 = OpConstant %float 0.707106769
38 %14 = OpConstantComposite %v2float %float_0_707106769 %float_0_707106769
39%VertexOutput = OpTypeStruct %v4float
40 %24 = OpTypeFunction %VertexOutput
41%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
42 %28 = OpConstantNull %VertexOutput
43%_ptr_Function_v4float = OpTypePointer Function %v4float
44 %uint = OpTypeInt 32 0
45 %uint_0 = OpConstant %uint 0
46 %33 = OpConstantNull %v4float
47 %float_1 = OpConstant %float 1
48%normalize_584e47 = OpFunction %void None %9
49 %10 = OpLabel
50 %res = OpVariable %_ptr_Function_v2float Function
51 OpStore %res %14
52 OpReturn
53 OpFunctionEnd
54%fragment_main = OpFunction %void None %9
55 %17 = OpLabel
56 %18 = OpFunctionCall %void %normalize_584e47
57 OpReturn
58 OpFunctionEnd
59%compute_main = OpFunction %void None %9
60 %20 = OpLabel
61 %21 = OpFunctionCall %void %normalize_584e47
62 OpReturn
63 OpFunctionEnd
64%vertex_main_inner = OpFunction %VertexOutput None %24
65 %25 = OpLabel
66 %out = OpVariable %_ptr_Function_VertexOutput Function %28
67 %29 = OpAccessChain %_ptr_Function_v4float %out %uint_0
68 OpStore %29 %33
69 %34 = OpFunctionCall %void %normalize_584e47
70 %35 = OpLoad %VertexOutput %out
71 OpReturnValue %35
72 OpFunctionEnd
73%vertex_main = OpFunction %void None %9
74 %37 = OpLabel
75 %38 = OpFunctionCall %VertexOutput %vertex_main_inner
76 %39 = OpCompositeExtract %v4float %38 0
77 OpStore %vertex_main_position_Output %39
78 OpStore %vertex_main___point_size_Output %float_1
79 OpReturn
80 OpFunctionEnd