blob: 82a21efd296559669f18c9296b2de17fdb94f757 [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: 50
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 %select_4c4738 "select_4c4738"
16 OpName %arg_2 "arg_2"
17 OpName %res "res"
18 OpName %fragment_main "fragment_main"
19 OpName %compute_main "compute_main"
20 OpName %vertex_main_inner "vertex_main_inner"
21 OpMemberName %VertexOutput 0 "pos"
22 OpName %VertexOutput "VertexOutput"
23 OpName %out "out"
24 OpName %vertex_main "vertex_main"
25 OpDecorate %vertex_main_position_Output BuiltIn Position
26 OpDecorate %vertex_main___point_size_Output BuiltIn PointSize
27 OpMemberDecorate %VertexOutput 0 Offset 0
28 %float = OpTypeFloat 32
29 %v4float = OpTypeVector %float 4
30%_ptr_Output_v4float = OpTypePointer Output %v4float
31%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
32%_ptr_Output_float = OpTypePointer Output %float
33%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
34 %void = OpTypeVoid
35 %9 = OpTypeFunction %void
36 %bool = OpTypeBool
37 %v4bool = OpTypeVector %bool 4
38%_ptr_Function_v4bool = OpTypePointer Function %v4bool
39 %true = OpConstantTrue %bool
40 %15 = OpConstantComposite %v4bool %true %true %true %true
41 %int = OpTypeInt 32 1
42 %v4int = OpTypeVector %int 4
43 %int_1 = OpConstant %int 1
44 %21 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
45%_ptr_Function_v4int = OpTypePointer Function %v4int
46%VertexOutput = OpTypeStruct %v4float
47 %33 = OpTypeFunction %VertexOutput
48%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
49 %37 = OpConstantNull %VertexOutput
50%_ptr_Function_v4float = OpTypePointer Function %v4float
51 %uint = OpTypeInt 32 0
52 %uint_0 = OpConstant %uint 0
53 %42 = OpConstantNull %v4float
54 %float_1 = OpConstant %float 1
55%select_4c4738 = OpFunction %void None %9
56 %10 = OpLabel
57 %arg_2 = OpVariable %_ptr_Function_v4bool Function
58 %res = OpVariable %_ptr_Function_v4int Function
59 OpStore %arg_2 %15
dan sinclair50260412024-08-28 19:43:27 +000060 %17 = OpLoad %v4bool %arg_2 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000061 %18 = OpSelect %v4int %17 %21 %21
62 OpStore %res %18
63 OpReturn
64 OpFunctionEnd
65%fragment_main = OpFunction %void None %9
66 %26 = OpLabel
67 %27 = OpFunctionCall %void %select_4c4738
68 OpReturn
69 OpFunctionEnd
70%compute_main = OpFunction %void None %9
71 %29 = OpLabel
72 %30 = OpFunctionCall %void %select_4c4738
73 OpReturn
74 OpFunctionEnd
75%vertex_main_inner = OpFunction %VertexOutput None %33
76 %34 = OpLabel
77 %out = OpVariable %_ptr_Function_VertexOutput Function %37
78 %38 = OpAccessChain %_ptr_Function_v4float %out %uint_0
dan sinclair50260412024-08-28 19:43:27 +000079 OpStore %38 %42 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000080 %43 = OpFunctionCall %void %select_4c4738
dan sinclair50260412024-08-28 19:43:27 +000081 %44 = OpLoad %VertexOutput %out None
dan sinclair1b77b6c2024-08-06 15:47:05 +000082 OpReturnValue %44
83 OpFunctionEnd
84%vertex_main = OpFunction %void None %9
85 %46 = OpLabel
86 %47 = OpFunctionCall %VertexOutput %vertex_main_inner
87 %48 = OpCompositeExtract %v4float %47 0
dan sinclair50260412024-08-28 19:43:27 +000088 OpStore %vertex_main_position_Output %48 None
89 OpStore %vertex_main___point_size_Output %float_1 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000090 OpReturn
91 OpFunctionEnd