blob: 4b311132f2011b6cb74614628b20103f2fae580a [file] [log] [blame]
Ben Claytonc0af5c52022-06-02 14:36:10 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 33
5; Schema: 0
6 OpCapability Shader
7 %17 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
10 OpEntryPoint Fragment %fragment_main "fragment_main"
11 OpEntryPoint GLCompute %compute_main "compute_main"
12 OpExecutionMode %fragment_main OriginUpperLeft
13 OpExecutionMode %compute_main LocalSize 1 1 1
14 OpName %value "value"
15 OpName %vertex_point_size "vertex_point_size"
16 OpName %sin_b78c91 "sin_b78c91"
17 OpName %arg_0 "arg_0"
18 OpName %res "res"
19 OpName %vertex_main_inner "vertex_main_inner"
20 OpName %vertex_main "vertex_main"
21 OpName %fragment_main "fragment_main"
22 OpName %compute_main "compute_main"
23 OpDecorate %value BuiltIn Position
24 OpDecorate %vertex_point_size BuiltIn PointSize
25 %float = OpTypeFloat 32
26 %v4float = OpTypeVector %float 4
27%_ptr_Output_v4float = OpTypePointer Output %v4float
28 %5 = OpConstantNull %v4float
29 %value = OpVariable %_ptr_Output_v4float Output %5
30%_ptr_Output_float = OpTypePointer Output %float
31 %8 = OpConstantNull %float
32%vertex_point_size = OpVariable %_ptr_Output_float Output %8
33 %void = OpTypeVoid
34 %9 = OpTypeFunction %void
35 %float_1 = OpConstant %float 1
36%_ptr_Function_float = OpTypePointer Function %float
37 %20 = OpTypeFunction %v4float
38 %sin_b78c91 = OpFunction %void None %9
39 %12 = OpLabel
40 %arg_0 = OpVariable %_ptr_Function_float Function %8
41 %res = OpVariable %_ptr_Function_float Function %8
42 OpStore %arg_0 %float_1
43 %18 = OpLoad %float %arg_0
44 %16 = OpExtInst %float %17 Sin %18
45 OpStore %res %16
46 OpReturn
47 OpFunctionEnd
48%vertex_main_inner = OpFunction %v4float None %20
49 %22 = OpLabel
50 %23 = OpFunctionCall %void %sin_b78c91
51 OpReturnValue %5
52 OpFunctionEnd
53%vertex_main = OpFunction %void None %9
54 %25 = OpLabel
55 %26 = OpFunctionCall %v4float %vertex_main_inner
56 OpStore %value %26
57 OpStore %vertex_point_size %float_1
58 OpReturn
59 OpFunctionEnd
60%fragment_main = OpFunction %void None %9
61 %28 = OpLabel
62 %29 = OpFunctionCall %void %sin_b78c91
63 OpReturn
64 OpFunctionEnd
65%compute_main = OpFunction %void None %9
66 %31 = OpLabel
67 %32 = OpFunctionCall %void %sin_b78c91
68 OpReturn
69 OpFunctionEnd